|
@@ -7,16 +7,16 @@ import org.apache.ibatis.annotations.Select;
|
7
|
7
|
|
8
|
8
|
/**
|
9
|
9
|
* 设备信息Mapper接口
|
10
|
|
- *
|
|
10
|
+ *
|
11
|
11
|
* @author lqkj
|
12
|
12
|
* @date 2024-11-12
|
13
|
13
|
*/
|
14
|
14
|
@Mapper
|
15
|
|
-public interface EquipmentInfoMapper
|
|
15
|
+public interface EquipmentInfoMapper
|
16
|
16
|
{
|
17
|
17
|
/**
|
18
|
18
|
* 查询设备信息
|
19
|
|
- *
|
|
19
|
+ *
|
20
|
20
|
* @param equipmentId 设备信息主键
|
21
|
21
|
* @return 设备信息
|
22
|
22
|
*/
|
|
@@ -24,7 +24,7 @@ public interface EquipmentInfoMapper
|
24
|
24
|
|
25
|
25
|
/**
|
26
|
26
|
* 查询设备信息列表
|
27
|
|
- *
|
|
27
|
+ *
|
28
|
28
|
* @param equipmentInfo 设备信息
|
29
|
29
|
* @return 设备信息集合
|
30
|
30
|
*/
|
|
@@ -32,7 +32,7 @@ public interface EquipmentInfoMapper
|
32
|
32
|
|
33
|
33
|
/**
|
34
|
34
|
* 新增设备信息
|
35
|
|
- *
|
|
35
|
+ *
|
36
|
36
|
* @param equipmentInfo 设备信息
|
37
|
37
|
* @return 结果
|
38
|
38
|
*/
|
|
@@ -40,7 +40,7 @@ public interface EquipmentInfoMapper
|
40
|
40
|
|
41
|
41
|
/**
|
42
|
42
|
* 修改设备信息
|
43
|
|
- *
|
|
43
|
+ *
|
44
|
44
|
* @param equipmentInfo 设备信息
|
45
|
45
|
* @return 结果
|
46
|
46
|
*/
|
|
@@ -48,7 +48,7 @@ public interface EquipmentInfoMapper
|
48
|
48
|
|
49
|
49
|
/**
|
50
|
50
|
* 删除设备信息
|
51
|
|
- *
|
|
51
|
+ *
|
52
|
52
|
* @param equipmentId 设备信息主键
|
53
|
53
|
* @return 结果
|
54
|
54
|
*/
|
|
@@ -56,13 +56,15 @@ public interface EquipmentInfoMapper
|
56
|
56
|
|
57
|
57
|
/**
|
58
|
58
|
* 批量删除设备信息
|
59
|
|
- *
|
|
59
|
+ *
|
60
|
60
|
* @param equipmentIds 需要删除的数据主键集合
|
61
|
61
|
* @return 结果
|
62
|
62
|
*/
|
63
|
63
|
public int deleteEquipmentInfoByEquipmentIds(Integer[] equipmentIds);
|
64
|
64
|
|
65
|
|
- @Select("SELECT * FROM equipment_info ei " +
|
66
|
|
- "WHERE ei.type_id IN (SELECT et.type_id FROM equipment_type et WHERE et.parent_id = 1)")
|
|
65
|
+// @Select("SELECT * FROM equipment_info ei " +
|
|
66
|
+// "WHERE ei.type_id IN (SELECT et.type_id FROM equipment_type et WHERE et.parent_id = 1)")
|
|
67
|
+ //只查重点区域监控
|
|
68
|
+ @Select("SELECT * FROM equipment_info WHERE ei.type_id = 5 ")
|
67
|
69
|
List<EquipmentInfo> getAllMonitors();
|
68
|
|
-}
|
|
70
|
+}
|