feiyu02
2025-09-19 7cbe1610b87da19ed8a146a09b1117f92d9d3d98
src/main/kotlin/cn/flightfeather/supervision/lightshare/service/UserMapService.kt
@@ -4,7 +4,9 @@
import cn.flightfeather.supervision.domain.ds1.entity.Userinfo
import cn.flightfeather.supervision.domain.ds2.entity.UserMap
import cn.flightfeather.supervision.lightshare.vo.AreaVo
import cn.flightfeather.supervision.lightshare.vo.DataHead
import cn.flightfeather.supervision.lightshare.vo.DeviceMapVo
import cn.flightfeather.supervision.lightshare.vo.DeviceSiteVo
interface UserMapService {
@@ -18,7 +20,23 @@
     */
    fun getSceneByTZId(tzUserId: String): Scense?
    /**
     * 自动创建飞羽监管和飞羽环境的账户匹配记录
     */
    fun autoCreateMap(userList: List<Userinfo?>)
    /**
     * 获取监测设备和监管账户的匹配记录
     */
    fun fetchDeviceMap(page: Int?, perPage: Int?, areaVo: AreaVo): List<DeviceMapVo?>
    /**
     * 新增或更新
     */
    fun insertOrUpdate(param: Pair<AreaVo, DeviceMapVo>): Int
    /**
     * 搜索第三方设备
     */
    fun searchThirdPartyDevice(areaVo: AreaVo, keyword: String, page: Int?, perPage: Int?): Pair<DataHead, List<DeviceSiteVo>>
}