liusuyi
2024-07-17 2ab35000026ccd58238e6a504b1b5f79f8c262c3
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package com.ruoyi.device.camera.mapper;
 
import java.util.List;
import java.util.Map;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.device.camera.domain.ArdCameras;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
 
/**
 * 相机设备Mapper接口
 *
 * @author 刘苏义
 * @date 2023-02-11
 */
public interface ArdCamerasMapper extends BaseMapper<ArdCameras>
{
    /**
     * 查询相机设备
     *
     * @param id 相机设备主键
     * @return 相机设备
     */
    public ArdCameras selectArdCamerasById(String id);
 
    /**
     * 查询相机设备列表
     *
     * @param ardCameras 相机设备
     * @return 相机设备集合
     */
    @DataScope(deptAlias = "d")
    public List<ArdCameras> selectArdCamerasList(ArdCameras ardCameras);
    /**
     * 查询相机设备列表(不过滤)
     *
     * @param ardCameras 相机设备
     * @return 相机设备集合
     */
    public List<ArdCameras>selectArdCamerasListNoDataScope(ArdCameras ardCameras);
    /**
     * 新增相机设备
     *
     * @param ardCameras 相机设备
     * @return 结果
     */
    public int insertArdCameras(ArdCameras ardCameras);
 
    /**
     * 修改相机设备
     *
     * @param ardCameras 相机设备
     * @return 结果
     */
    public int updateArdCameras(ArdCameras ardCameras);
 
    /**
     * 删除相机设备
     *
     * @param id 相机设备主键
     * @return 结果
     */
    public int deleteArdCamerasById(String id);
 
    /**
     * 批量删除相机设备
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteArdCamerasByIds(String[] ids);
    public List findOptions(ArdCameras ardCameras);
 
    /**
     * 根据部门ID查询挂载的相机
     *
     * @param deptId 部门ID
     * @return 部门列表
     */
    public List<ArdCameras> selectArdCamerasByDeptId(Long deptId);
 
    /**
     * 校验相机是否唯一
     *
     * @param ip 相机ip
     * @param port 相机端口
     * @return 相机信息
     */
    public ArdCameras checkCameraIpAndPortUnique(@Param("ip") String ip, @Param("port")Integer port);
 
    public List<Map<String, Object>> getCamerasByDeptId(@Param("deptIdList")List<Long> deptIdList,@Param("userId")String userId);
 
    public Boolean getCameraOperationByCameraId(@Param("id") String id, @Param("userId") String userId);
 
    public List<Map<String, Object>> getChannelByCameraId(String id);
 
    public List<ArdCameras> findTowerCamerasBySubAndOwnDeptIds(@Param("deptIdList")List<Long> deptIdList);
 
    /**
     * @Author 刘苏义
     * @Description 重置所有相机登录id为-1
     * @Date   2024/7/17 10:17
     * @Param
     * @return
     */
    public int resetCameraLoginId();
}