63 lines
1.4 KiB
Java
63 lines
1.4 KiB
Java
package com.whdc.zhdbaqapi.mapper;
|
||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||
import com.whdc.zhdbaqapi.model.dto.FindDeviceDto;
|
||
import com.whdc.zhdbaqapi.model.entity.DeviceInfo;
|
||
import com.whdc.zhdbaqapi.model.entity.DeviceSLInfo;
|
||
import com.whdc.zhdbaqapi.model.entity.SysUser;
|
||
import org.apache.ibatis.annotations.Param;
|
||
|
||
import java.util.List;
|
||
import java.util.Set;
|
||
|
||
/**
|
||
* @author 李赛
|
||
* @date 2022-07-21 23:40
|
||
*/
|
||
public interface DeviceSLInfoMapper extends BaseMapper<DeviceSLInfo> {
|
||
|
||
/**
|
||
* TODO: SKETCH_MAP 的数据类型是 text,不知道为啥非要 IFNULL(SKETCH_MAP, '') SKETCH_MAP 这样处理一下才能正常查询到结果
|
||
*
|
||
* @param id
|
||
* @return
|
||
*/
|
||
DeviceSLInfo get(Integer id);
|
||
|
||
/**
|
||
* 返回查询
|
||
*
|
||
* @return
|
||
*/
|
||
List<DeviceSLInfo> list(String stationCode);
|
||
|
||
List<DeviceSLInfo> listAll();
|
||
|
||
|
||
/**
|
||
* 分页查询
|
||
*
|
||
* @param page
|
||
* @param findDto
|
||
* @return
|
||
*/
|
||
IPage<DeviceSLInfo> page(@Param("page") IPage<SysUser> page, @Param("obj") FindDeviceDto findDto);
|
||
|
||
/**
|
||
* 按 stationCode 查询
|
||
*
|
||
* @param scs
|
||
* @return
|
||
*/
|
||
List<DeviceSLInfo> listBySC(Set<String> scs);
|
||
|
||
/**
|
||
* 检查 station_code 是否有效
|
||
*
|
||
* @param stationCode
|
||
* @return
|
||
*/
|
||
DeviceSLInfo checkValidStationCode(String stationCode);
|
||
}
|