feiyu02
2025-08-14 f373bbf83d9d2a7e5f96118d7dcd658c9fea8bc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package cn.flightfeather.supervision.domain.ds3.repository
 
import cn.flightfeather.supervision.domain.ds3.entity.FumeSiteMap
import cn.flightfeather.supervision.domain.ds3.mapper.FumeSiteMapMapper
import cn.flightfeather.supervision.lightshare.vo.DeviceMapVo
import org.springframework.stereotype.Repository
import tk.mybatis.mapper.entity.Example
 
/**
 * 徐汇油烟监测点位和系统用户映射关系数据库相关操作
 */
@Repository
class XHFumeSiteMapRep(
    private val fumeSiteMapMapper: FumeSiteMapMapper,
) {
 
    /**
     * 根据飞羽监管用户id查询
     */
    fun findBySVUserId(idList: List<String?>): List<DeviceMapVo> {
        val res = fumeSiteMapMapper.selectByExample(Example(FumeSiteMap::class.java).apply {
            createCriteria().andIn("svUserId", idList)
        })
        return DeviceMapVo.fromXHFumeSiteMap(res)
    }
}