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