liuxiaolong
2019-05-06 71af9c46c24b562acc00a71ec6c97c04eb048d9c
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
112
113
114
115
116
117
118
119
120
121
package com.cloud.device.dao;
 
import com.cloud.device.model.Device;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
 
import java.util.List;
import java.util.Map;
 
@Repository
@Mapper
public interface DeviceDao {
    /**
     * 根据id删除
     * @param id
     * @return
     */
    int deleteById(String id);
 
    /**
     * 根据集群id删除设备
     * @param id
     * @return
     */
    int deleteByClusterId(String id);
 
    /**
     * 保存
     * @param record
     * @return
     */
    int insert(Device record);
 
    /**
     * 保存
     * @param record
     * @return
     */
    int insertSelective(Device record);
 
    /**
     * 根据Id查询
     * @param id
     * @return
     */
    Device selectById(String id);
 
    /**
     * 编辑
     * @param record
     * @return
     */
    int updateByIdSelective(Device record);
 
    /**
     * 编辑
     * @param record
     * @return
     */
    int updateById(Device record);
 
    /**
     * 根据条件查找设备列表(分页)
     * @param map
     * @return
     */
    List<Device> findPlatDevicePageList(Map<String, Object> map);
 
    /**
     * 查找所有非集群监控设备,不分页
     * @param map
     * @return
     */
    List<Device> findAllPlatDeviceList(Map<String, Object> map);
 
    List<Device> findByNodeId(String nodeId);
 
    List<Device> findByOrgId(Long orgId);
 
    int countPlatDevice(Map<String,Object> param);
 
    int countAllDevice(Map<String, Object> param);
 
    List<Device> findAllDeviceList(Map<String, Object> map);
 
    /**
     * 查找组织机构下的设备
     * @param map
     * @return
     */
    List<Device> findAllOrgDevice(Map<String, Object> map);
 
    /**
     * 根据条件查找所有集群和非集群设备
     * @param param
     * @return
     */
    List<Device> findAllDevice(Map<String, Object> param);
 
    Device findByIp(String ip);
 
    /**
     * 查找无经纬度的设备
     * @return
     */
    List<Device> findNoPosDevices();
 
 
    /**
     * 查找已有经纬度的设备
     * @return
     */
    List<Device> findPosDevices();
 
    /**
     * 查找集群内的设备信息
     * @param param(参数为摄像机位置或名称或ip)
     * @return
     */
    List<Device> findAllClusterDevice(Map<String, Object> param);
}