feiyu02
2025-09-30 a3cc1d220f8a1de11874bebceba0130d32157ff1
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package cn.flightfeather.supervision.lightshare.service
 
import cn.flightfeather.supervision.domain.ds1.entity.Scense
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 {
 
    /**
     * 根据飞羽监管系统中的场景id,获取与飞羽环境系统中的关联用户
     */
    fun getTZIdBySceneId(sceneId: String): UserMap
 
    /**
     * 根据飞羽环境系统中的场景id,获取与飞羽监管系统中的关联用户
     */
    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>>
}