package cn.flightfeather.supervision.domain.ds3.repository
|
|
import cn.flightfeather.supervision.domain.ds3.entity.JSDustSiteMap
|
import cn.flightfeather.supervision.domain.ds3.mapper.JSDustSiteMapMapper
|
import cn.flightfeather.supervision.lightshare.vo.DeviceMapVo
|
import org.springframework.stereotype.Repository
|
import tk.mybatis.mapper.entity.Example
|
|
/**
|
* 金山扬尘监测点位和系统用户映射关系数据库相关操作
|
*/
|
@Repository
|
class JSDustSiteMapRep(
|
private val jsDustSiteMapMapper: JSDustSiteMapMapper,
|
) {
|
|
/**
|
* 根据飞羽监管用户id查询
|
*/
|
fun findBySVUserId(idList: List<String?>): List<DeviceMapVo> {
|
val res = jsDustSiteMapMapper.selectByExample(Example(JSDustSiteMap::class.java).apply {
|
createCriteria().andIn("svUserId", idList)
|
})
|
return DeviceMapVo.fromJSDustSiteMap(res)
|
}
|
}
|