DeviceMapper.java 508 Bytes
package cn.com.glsx.admin.modules.mapper;

import cn.com.glsx.admin.modules.entity.Device;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DeviceMapper extends CommonBaseMapper<Device> {
    /**
     * 根据设备号查找设备信息
     * @param sn
     * @return
     */
    @Select("select * from t_device where del_flag = 0 and sn = #{sn}")
    Device getDeviceBySn(String sn);
}