Explorar el Código

数字化接口对接

csg6 hace 1 año
padre
commit
07a30791af
Se han modificado 38 ficheros con 1301 adiciones y 138 borrados
  1. 10 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/CheckTaskInventoryRecord.java
  2. 44 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/CheckTaskDTOGov.java
  3. 57 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/CheckTaskInventoryRecordDTOGov.java
  4. 216 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/DangerDTOGov.java
  5. 27 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/FourColorDiagramDTOGov.java
  6. 98 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/GovBaseEntity.java
  7. 32 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/RiskEventDTOGov.java
  8. 66 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/RiskMeasureDTOGov.java
  9. 44 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/RiskUnitDTOGov.java
  10. 9 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/CheckTaskInventoryRecordMapper.java
  11. 12 2
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/CheckTaskMapper.java
  12. 9 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/DangerMapper.java
  13. 19 9
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/FourColorDiagramMapper.java
  14. 13 5
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskEventMapper.java
  15. 9 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskMeasureMapper.java
  16. 10 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskUnitMapper.java
  17. 12 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/ICheckTaskInventoryRecordService.java
  18. 19 9
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/ICheckTaskService.java
  19. 25 3
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IDangerService.java
  20. 12 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IFourColorDiagramService.java
  21. 19 7
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskEventService.java
  22. 14 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskMeasureService.java
  23. 18 7
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskUnitService.java
  24. 23 4
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/CheckTaskInventoryRecordServiceImpl.java
  25. 19 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/CheckTaskServiceImpl.java
  26. 18 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/DangerServiceImpl.java
  27. 18 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/FourColorDiagramServiceImpl.java
  28. 2 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/HazardServiceImpl.java
  29. 26 7
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskEventServiceImpl.java
  30. 36 23
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskMeasureServiceImpl.java
  31. 44 34
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskUnitServiceImpl.java
  32. 75 2
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskInventoryRecordMapper.xml
  33. 37 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskMapper.xml
  34. 72 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/DangerMapper.xml
  35. 29 6
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/FourColorDiagramMapper.xml
  36. 31 2
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/RiskEventMapper.xml
  37. 35 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/RiskMeasureMapper.xml
  38. 42 14
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/RiskUnitMapper.xml

+ 10 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/CheckTaskInventoryRecord.java

@@ -3,6 +3,7 @@ package com.ruoyi.doubledefense.domain;
3 3
 import com.baomidou.mybatisplus.annotation.TableField;
4 4
 import com.baomidou.mybatisplus.annotation.TableName;
5 5
 import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.fasterxml.jackson.annotation.JsonIgnore;
6 7
 import com.ruoyi.common.annotation.Excel;
7 8
 import com.ruoyi.common.core.domain.GnhzBaseEntity;
8 9
 import lombok.Data;
@@ -60,8 +61,13 @@ public class CheckTaskInventoryRecord extends GnhzBaseEntity {
60 61
      */
61 62
     private Long checkUserId;
62 63
     /**
64
+     * 巡检用户姓名
65
+     */
66
+    private String checkUserNickName;
67
+    /**
63 68
      * 巡检时间
64 69
      */
70
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
65 71
     private Date checkTime;
66 72
 
67 73
 
@@ -75,20 +81,24 @@ public class CheckTaskInventoryRecord extends GnhzBaseEntity {
75 81
     //    @Excel(name = "开始时间查询条件大于等于")
76 82
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
77 83
     @TableField(exist = false)
84
+    @JsonIgnore
78 85
     private Date startDateGt;
79 86
 
80 87
     //    @ApiModelProperty("开始时间查询条件小于等于")
81 88
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
82 89
     @TableField(exist = false)
90
+    @JsonIgnore
83 91
     private Date startDateLt;
84 92
 
85 93
     //    @ApiModelProperty("结束时间查询条件大于等于")
86 94
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
87 95
     @TableField(exist = false)
96
+    @JsonIgnore
88 97
     private Date endDateGt;
89 98
 
90 99
     //    @ApiModelProperty("结束时间查询条件小于等于")
91 100
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
92 101
     @TableField(exist = false)
102
+    @JsonIgnore
93 103
     private Date endDateLt;
94 104
 }

+ 44 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/CheckTaskDTOGov.java

@@ -0,0 +1,44 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonProperty;
4
+import lombok.Data;
5
+
6
+/**
7
+ * 双重预防汇聚计算节点
8
+ * 隐患排查要求:tb_check_task
9
+ */
10
+@Data
11
+public class CheckTaskDTOGov extends GovBaseEntity {
12
+
13
+    private static final long serialVersionUID = 4551382039921901075L;
14
+    /**
15
+     * 主键
16
+     */
17
+    @JsonProperty("ID")
18
+    private String id;
19
+
20
+    /**
21
+     * 管控措施 id
22
+     */
23
+    @JsonProperty("RISK_MEASURE_ID")
24
+    private String riskMeasureId;
25
+
26
+    /**
27
+     * 风险事件名称
28
+     */
29
+    @JsonProperty("TROUBLESHOOT_CONTENT")
30
+    private String troubleshootContent;
31
+
32
+    /**
33
+     * 巡检周期
34
+     */
35
+    @JsonProperty("CHECK_CYCLE")
36
+    private String checkCycle;
37
+
38
+    /**
39
+     * 巡检周期周期单位
40
+     */
41
+    @JsonProperty("CHECK_CYCLE_UNIT")
42
+    private String checkCycleUnit;
43
+
44
+}

+ 57 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/CheckTaskInventoryRecordDTOGov.java

@@ -0,0 +1,57 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.fasterxml.jackson.annotation.JsonProperty;
5
+import lombok.Data;
6
+
7
+import java.util.Date;
8
+
9
+/**
10
+ * 巡检打卡记录:tb_check_task_inventory_record
11
+ * 双重预防汇聚计算节点
12
+ */
13
+@Data
14
+public class CheckTaskInventoryRecordDTOGov extends GovBaseEntity {
15
+
16
+    private static final long serialVersionUID = 4551382039921901075L;
17
+    /**
18
+     * 主键
19
+     */
20
+    @JsonProperty("ID")
21
+    private String id;
22
+
23
+    /**
24
+     * 隐患排查任务ID
25
+     */
26
+    @JsonProperty("CHECK_TASK_ID")
27
+    private String checkTaskId;
28
+
29
+    /**
30
+     * 排查时间
31
+     */
32
+    @JsonProperty("CHECK_TIME")
33
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
34
+    private Date checkTime;
35
+
36
+
37
+    /**
38
+     * 排查结果
39
+     * 排查结果(正常:0;1-存在隐患;2-未排查;3-其他)
40
+     */
41
+    @JsonProperty("CHECK_STATUS")
42
+    private Integer status;
43
+
44
+
45
+    /**
46
+     * 创建人手机号
47
+     */
48
+    @JsonProperty("CREATE_BY_MOBILE")
49
+    private String createByMobile;
50
+
51
+    /**
52
+     * 修改人手机号
53
+     */
54
+    @JsonProperty("UPDATE_BY_MOBILE")
55
+    private String updateByMobile;
56
+
57
+}

+ 216 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/DangerDTOGov.java

@@ -0,0 +1,216 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.fasterxml.jackson.annotation.JsonProperty;
5
+import lombok.Data;
6
+
7
+import java.util.Date;
8
+
9
+/**
10
+ * 四色图:tb_four_color_diagram
11
+ * 双重预防汇聚计算节点
12
+ */
13
+@Data
14
+public class DangerDTOGov extends GovBaseEntity {
15
+
16
+    private static final long serialVersionUID = 4551382039921901075L;
17
+    /**
18
+     * 主键
19
+     */
20
+    @JsonProperty("ID")
21
+    private String id;
22
+
23
+    /**
24
+     * 风险分析对象编码
25
+     */
26
+    @JsonProperty("HAZARD_CODE")
27
+    private String hazardCode;
28
+
29
+    /**
30
+     * 管控措施主键
31
+     */
32
+    @JsonProperty("RISK_MEASURE_ID")
33
+    private String riskMeasureId;
34
+
35
+    /**
36
+     * 隐患排查记录ID巡检ID
37
+     */
38
+    @JsonProperty("CHECK_RECORD_ID")
39
+    private String checkTaskInventoryRecordId;
40
+
41
+    /**
42
+     * 隐患名称
43
+     */
44
+    @JsonProperty("DANGER_NAME")
45
+    private String dangerName;
46
+
47
+    /**
48
+     * 隐患等级
49
+     * 隐患等级(一般隐
50
+     * 患:0;重大隐患:
51
+     * 1)
52
+     */
53
+    @JsonProperty("DANGER_LEVEL")
54
+    private Integer dangerLevel;
55
+
56
+    /**
57
+     * 登记时间
58
+     */
59
+    @JsonProperty("REGIST_TIME")
60
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
61
+    private Date registTime;
62
+
63
+    /**
64
+     * 登记人姓名
65
+     */
66
+    @JsonProperty("REGISTRANT")
67
+    private String registRant;
68
+
69
+    /**
70
+     * 隐患来源
71
+     */
72
+    @JsonProperty("DANGER_SRC")
73
+    private String dangerSrc;
74
+
75
+    /**
76
+     * 治理类型
77
+     * 隐患治理类型(
78
+     * 即查即改:0;
79
+     * 限期整改:1
80
+     * )
81
+     */
82
+    @JsonProperty("DANGER_MANAGE_TYPE")
83
+    private Integer dangerManageType;
84
+
85
+    /**
86
+     * 隐患类型
87
+     * 隐患类型(安全:1;工艺:2;电气:3;仪表:4;消防:5;总图:6;设备:7;其他:8)
88
+     */
89
+    @JsonProperty("HAZARD_DANGER_TYPE")
90
+    private Integer hazardDangerType;
91
+
92
+    /**
93
+     * 隐患描述
94
+     */
95
+    @JsonProperty("DANGER_DESC")
96
+    private String dangerDesc;
97
+
98
+    /**
99
+     * 原因分析(没有对应的值,始终为空)
100
+     */
101
+    @JsonProperty("DANGER_REASON")
102
+    private String dangerReason;
103
+
104
+    /**
105
+     * 控制措施_管控措施主键对应的文字说明
106
+     */
107
+    @JsonProperty("CONTROL_MEASURES")
108
+    private String riskMeasureDesc;
109
+
110
+    /**
111
+     * 资金
112
+     */
113
+    @JsonProperty("COST")
114
+    private String cost;
115
+
116
+    /**
117
+     * 整改责任人
118
+     */
119
+    @JsonProperty("LIABLE_PERSON")
120
+    private String liablePerson;
121
+
122
+    /**
123
+     * 隐患治理期限
124
+     */
125
+    @JsonProperty("DANGER_MANAGE_DEADLINE")
126
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
127
+    private Date dangerManageDeaddline;
128
+
129
+    /**
130
+     * 验收人姓名
131
+     */
132
+    @JsonProperty("CHECK_ACCEPT_PERSON")
133
+    private String checkAcceptPerson;
134
+
135
+    /**
136
+     * 验收时间
137
+     */
138
+    @JsonProperty("CHECK_ACCEPT_TIME")
139
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
140
+    private Date checkAcceptTime;
141
+
142
+    /**
143
+     * 验收情况
144
+     */
145
+    @JsonProperty("CHECK_ACCEPT_COMMENT")
146
+    private String checkAcceptComment;
147
+
148
+    /**
149
+     * 验收状态
150
+     */
151
+    @JsonProperty("DANGER_STATE")
152
+    private Integer dangerState;
153
+
154
+    /*
155
+    SELECT
156
+      hazard.hazard_code 风险分析对象编码,
157
+      t1.risk_measure_id 管控措施主键,
158
+      t1.check_task_inventory_record_id 隐患排查记录ID巡检ID,
159
+
160
+      t1.id,
161
+      t1.danger_name 隐患名称,
162
+      t1.danger_level 隐患等级,
163
+      t1.regist_time 登记时间,
164
+      c_user.nick_name 登记人姓名,
165
+      t1.danger_src 隐患来源,
166
+      t1.danger_manage_type 治理类型,
167
+      t1.hazard_danger_type 隐患类型,
168
+      t1.danger_desc 隐患描述,
169
+    --   t1. 原因分析,
170
+      risk_measure.risk_measure_desc 控制措施_管控措施主键对应的文字说明,
171
+      t2.cost 资金,
172
+      m_user.nick_name 整改责任人,
173
+      t2.danger_manage_deaddline 隐患治理期限,
174
+      check_user.nick_name 验收人姓名,
175
+      t2.check_accept_time 验收时间,
176
+      t2.check_accept_comment 验收情况,
177
+     -- danger_status 隐患状态:10待审核,20认领中,30整改中,40待验收,50已验收,60取消
178
+     -- 隐患状态(0-整改中:1-待验收:9-已验收)
179
+      CASE t1.danger_status
180
+        WHEN 30 THEN 0
181
+        WHEN 40 THEN 1
182
+        WHEN 50 THEN 9
183
+        END
184
+        AS 验收状态,
185
+
186
+
187
+      t1.is_del,
188
+      t1.create_date,
189
+      IFNULL(c_user.nick_name, '管理员') AS createBy,
190
+      t1.update_date,
191
+      IFNULL(u_user.nick_name, '管理员') AS updateBy,
192
+      t1.company_code AS companyCode
193
+    FROM tb_danger t1
194
+    INNER JOIN tb_danger_manage t2 ON t2.danger_id = t1.id
195
+
196
+    LEFT JOIN tb_hazard hazard ON hazard.id = t1.hazard_id
197
+
198
+    LEFT JOIN tb_risk_measure risk_measure ON risk_measure.id = t1.risk_measure_id
199
+
200
+    INNER JOIN sys_user m_user ON m_user.user_id = t2.manage_user_id
201
+
202
+    LEFT JOIN sys_user check_user ON check_user.user_id = t2.check_user_id
203
+
204
+    LEFT JOIN tb_risk_measure risk_m ON risk_m.id = t1.risk_measure_id
205
+
206
+    INNER JOIN sys_user c_user ON c_user.user_id = t1.create_user_id
207
+    LEFT JOIN sys_user u_user ON u_user.user_id = t1.update_user_id
208
+    WHERE t1.is_del = 0
209
+    AND t1.danger_status IN (30,40,50)
210
+
211
+    -- GROUP BY t1.id
212
+    ORDER BY t1.create_date, t1.update_date
213
+
214
+     */
215
+
216
+}

+ 27 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/FourColorDiagramDTOGov.java

@@ -0,0 +1,27 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonProperty;
4
+import lombok.Data;
5
+
6
+/**
7
+ * 四色图:tb_four_color_diagram
8
+ * 双重预防汇聚计算节点
9
+ */
10
+@Data
11
+public class FourColorDiagramDTOGov extends GovBaseEntity {
12
+
13
+    private static final long serialVersionUID = 4551382039921901075L;
14
+    /**
15
+     * 主键
16
+     */
17
+    @JsonProperty("ID")
18
+    private String id;
19
+
20
+    /**
21
+     * 安全风险空间分布图
22
+     *
23
+     * 图片的base64 编码。图片格式为 PNG 或JPEG,图片大小不超过5M。每家企业最多上传 20张图片。
24
+     */
25
+    @JsonProperty("IMG")
26
+    private String colorImg;
27
+}

+ 98 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/GovBaseEntity.java

@@ -0,0 +1,98 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.alibaba.fastjson2.annotation.JSONField;
4
+import com.baomidou.mybatisplus.annotation.TableField;
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+import com.fasterxml.jackson.annotation.JsonIgnore;
7
+import com.fasterxml.jackson.annotation.JsonProperty;
8
+import lombok.Data;
9
+
10
+import java.io.Serializable;
11
+import java.util.Date;
12
+
13
+/**
14
+ * 双重预防汇聚计算节点的基础对象
15
+ */
16
+@Data
17
+public class GovBaseEntity implements Serializable {
18
+
19
+    private static final long serialVersionUID = 503274936000629249L;
20
+    /**
21
+     * 删除标志(正常:0;已删除:1)同步的数据不可物理删除,如需删除,标志记为1。
22
+     */
23
+    @JsonProperty("DELETED")
24
+    private Integer isDel;
25
+    /**
26
+     * 创建时间
27
+     */
28
+    @JsonProperty("CREATE_DATE")
29
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
30
+    private Date createDate;
31
+
32
+    /**
33
+     * 创建人姓名 varchar(50)
34
+     */
35
+    @JsonProperty("CREATE_BY")
36
+    private String createBy;
37
+
38
+    /**
39
+     * 更新时间
40
+     */
41
+    @JsonProperty("UPDATE_DATE")
42
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
43
+    private Date updateDate;
44
+
45
+    /**
46
+     * 更新人姓名 varchar(50)
47
+     */
48
+    @JsonProperty("UPDATE_BY")
49
+    private String updateBy;
50
+
51
+    /**
52
+     * 企业编码 varchar(9)
53
+     */
54
+    @JsonProperty("COMPANY_CODE")
55
+    private String companyCode;
56
+
57
+
58
+    /**
59
+     * 分页:页码
60
+     */
61
+    @TableField(exist = false)
62
+    //FastJSON序列化排除该属性
63
+    @JSONField(serialize = false)
64
+    //Jack序列化排除该属性
65
+    @JsonIgnore
66
+    private Integer pageNo;
67
+
68
+    /**
69
+     * 分页:每页条数
70
+     */
71
+    @TableField(exist = false)
72
+    //FastJSON序列化排除该属性
73
+    @JSONField(serialize = false)
74
+    //Jack序列化排除该属性
75
+    @JsonIgnore
76
+    private Integer pageSize;
77
+
78
+    /**
79
+     * 开始时间
80
+     */
81
+    @TableField(exist = false)
82
+    //FastJSON序列化排除该属性
83
+    @JSONField(serialize = false)
84
+    //Jack序列化排除该属性
85
+    @JsonIgnore
86
+    private Date startUpdateDate;
87
+
88
+    /**
89
+     * 结束时间
90
+     */
91
+    @TableField(exist = false)
92
+    //FastJSON序列化排除该属性
93
+    @JSONField(serialize = false)
94
+    //Jack序列化排除该属性
95
+    @JsonIgnore
96
+    private Date endUpdateDate;
97
+
98
+}

+ 32 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/RiskEventDTOGov.java

@@ -0,0 +1,32 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonProperty;
4
+import lombok.Data;
5
+
6
+/**
7
+ * 风险事件:tb_risk_event
8
+ * 双重预防汇聚计算节点
9
+ */
10
+@Data
11
+public class RiskEventDTOGov extends GovBaseEntity {
12
+
13
+    private static final long serialVersionUID = 4551382039921901075L;
14
+    /**
15
+     * 主键
16
+     */
17
+    @JsonProperty("ID")
18
+    private String id;
19
+
20
+    /**
21
+     * 分析单元ID
22
+     */
23
+    @JsonProperty("RISK_UNIT_ID")
24
+    private String riskUnitId;
25
+
26
+    /**
27
+     * 风险事件名称
28
+     */
29
+    @JsonProperty("RISK_EVENT_NAME")
30
+    private String riskEventName;
31
+
32
+}

+ 66 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/RiskMeasureDTOGov.java

@@ -0,0 +1,66 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonProperty;
4
+import lombok.Data;
5
+
6
+/**
7
+ * 管控措施:tb_risk_measure
8
+ * 双重预防汇聚计算节点
9
+ */
10
+@Data
11
+public class RiskMeasureDTOGov extends GovBaseEntity {
12
+
13
+    private static final long serialVersionUID = 4551382039921901075L;
14
+    /**
15
+     * 主键
16
+     */
17
+    @JsonProperty("ID")
18
+    private String id;
19
+
20
+    /**
21
+     * 风险事件 ID
22
+     */
23
+    @JsonProperty("RISK_EVENT_ID")
24
+    private String riskEventId;
25
+
26
+    /**
27
+     * 管控方式:自动化监控:1;隐患排查:2
28
+     */
29
+    @JsonProperty("DATA_SRC")
30
+    private String dataSrc;
31
+
32
+    /**
33
+     * 管控措施描述
34
+     */
35
+    @JsonProperty("RISK_MEASURE_DESC")
36
+    private String riskMeasureDesc;
37
+
38
+    /**
39
+     * 管控措施分类1:工程技术:1;维护保养:2;操作行为:3;应急措施:4
40
+     */
41
+    @JsonProperty("CLASSIFY1")
42
+    private String classify1;
43
+
44
+    /**
45
+     * 管控措施分类2
46
+     * 工艺控制:
47
+     * 1-1;关键设备/部件:1-2;安全附件:1-3;安全仪表:1-4;其它:1-5;动设备:
48
+     * 2-1;静设备:2-2;其它:2-3;人员资质:
49
+     * 3-1;操作记录:3-2;交接班:3-3;其它:3-4;应急设施:
50
+     * 4-1;个体防护:4-2;消防设施:4-3;应急预案:4-4。其它:4-5;
51
+     */
52
+    @JsonProperty("CLASSIFY2")
53
+    private String classify2;
54
+
55
+    /**
56
+     * 管控措施分类3:由 企 业 自 行 定义
57
+     */
58
+    @JsonProperty("CLASSIFY3")
59
+    private String classify3;
60
+
61
+    /**
62
+     * 隐患排查内容
63
+     */
64
+    @JsonProperty("TROUBLESHOOT_CONTENT")
65
+    private String troubleshootContent;
66
+}

+ 44 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dtoGov/RiskUnitDTOGov.java

@@ -0,0 +1,44 @@
1
+package com.ruoyi.doubledefense.dtoGov;
2
+
3
+import com.fasterxml.jackson.annotation.JsonProperty;
4
+import lombok.Data;
5
+
6
+
7
+/**
8
+ *  分析单元:tb_risk_unit
9
+ * 双重预防汇聚计算节点
10
+ */
11
+@Data
12
+public class RiskUnitDTOGov extends GovBaseEntity {
13
+    /**
14
+     * 主键 UUID
15
+     */
16
+    @JsonProperty("ID")
17
+    private String id;
18
+
19
+    /**
20
+     * 风险分析对象编码即危险化学品登记信息管理系统中的危险源编码
21
+     */
22
+    @JsonProperty("HAZARD_CODE")
23
+    private String hazardCode;
24
+
25
+    /**
26
+     * 风险分析对象所属部门名称
27
+     * 责任部门(必选)-> 区域对应的岗位
28
+     */
29
+    @JsonProperty("HAZARD_DEP")
30
+    private String postName;
31
+
32
+    /**
33
+     * 风险分析对象所属部门负责人姓名
34
+     * 责任人(必选) -> 岗位下的所有人员逗号拼接一下,注意不要超过200个字符
35
+     */
36
+    @JsonProperty("HAZARD_LIABLE_PERSON")
37
+    private String hazardLiablePerson;
38
+
39
+    /**
40
+     * 风险分析单元名称
41
+     */
42
+    @JsonProperty("RISK_UNIT_NAME")
43
+    private String riskUnitName;
44
+}

+ 9 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/CheckTaskInventoryRecordMapper.java

@@ -11,6 +11,7 @@ import com.ruoyi.doubledefense.dto.CheckTaskInventoryStatisticsPCDTO;
11 11
 import com.ruoyi.doubledefense.dto.res.CheckTasRiskUnitkListDTOForApp;
12 12
 import com.ruoyi.doubledefense.dto.res.CheckTaskListDTOForApp;
13 13
 import com.ruoyi.doubledefense.dto.res.CheckUserCountStatisticsDTO;
14
+import com.ruoyi.doubledefense.dtoGov.CheckTaskInventoryRecordDTOGov;
14 15
 import org.apache.ibatis.annotations.Param;
15 16
 
16 17
 /**
@@ -125,4 +126,12 @@ public interface CheckTaskInventoryRecordMapper extends BaseMapper<CheckTaskInve
125 126
      * @return
126 127
      */
127 128
     List<CheckUserCountStatisticsDTO> checkUserCountStatistics(@Param("checkTimeStatr") Date checkTimeStatr, @Param("checkTimeEnd") Date checkTimeEnd);
129
+    /**
130
+     * 重预防汇聚计算节点
131
+     * 查询巡检打卡记录
132
+     *
133
+     * @param checkTaskInventoryRecordDTOGov
134
+     * @return
135
+     */
136
+    List<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList(CheckTaskInventoryRecordDTOGov checkTaskInventoryRecordDTOGov);
128 137
 }

+ 12 - 2
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/CheckTaskMapper.java

@@ -7,11 +7,12 @@ import com.ruoyi.doubledefense.domain.CheckTask;
7 7
 import com.ruoyi.doubledefense.domain.CheckTaskInventory;
8 8
 import com.ruoyi.doubledefense.dto.CheckTaskDTO;
9 9
 import com.ruoyi.doubledefense.dto.res.CheckTaskResultDTO;
10
+import com.ruoyi.doubledefense.dtoGov.CheckTaskDTOGov;
10 11
 
11 12
 
12 13
 /**
13 14
  * 隐患排查任务Mapper接口
14
- * 
15
+ *
15 16
  * @author ruoyi
16 17
  * @date 2023-08-03
17 18
  */
@@ -20,9 +21,18 @@ public interface CheckTaskMapper extends BaseMapper<CheckTask>
20 21
 
21 22
     /**
22 23
      * 查询隐患排查任务列表
23
-     * 
24
+     *
24 25
      * @param checkTask 隐患排查任务
25 26
      * @return 隐患排查任务集合
26 27
      */
27 28
     public List<CheckTaskResultDTO> selectCheckTaskList(CheckTaskDTO checkTask);
29
+
30
+    /**
31
+     * 重预防汇聚计算节点
32
+     * 查询隐患排查要求
33
+     *
34
+     * @param checkTaskDTOGov
35
+     * @return
36
+     */
37
+    List<CheckTaskDTOGov> govSelectCheckTaskList(CheckTaskDTOGov checkTaskDTOGov);
28 38
 }

+ 9 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/DangerMapper.java

@@ -10,6 +10,7 @@ import com.ruoyi.doubledefense.dto.DangerDTO;
10 10
 import com.ruoyi.doubledefense.dto.DangerStatisticsDTO;
11 11
 import com.ruoyi.doubledefense.dto.DangerStatisticsPCDTO;
12 12
 import com.ruoyi.doubledefense.dto.res.DangerResultDTO;
13
+import com.ruoyi.doubledefense.dtoGov.DangerDTOGov;
13 14
 import org.apache.ibatis.annotations.Param;
14 15
 
15 16
 
@@ -52,4 +53,12 @@ public interface DangerMapper extends BaseMapper<Danger> {
52 53
      * @return
53 54
      */
54 55
     List<DangerResultDTO> pcHomePageDangerList(DangerDTO danger);
56
+    /**
57
+     * 重预防汇聚计算节点
58
+     * 查询隐患列表
59
+     *
60
+     * @param dangerDTOGov
61
+     * @return
62
+     */
63
+    List<DangerDTOGov> govSelectDangerList(DangerDTOGov dangerDTOGov);
55 64
 }

+ 19 - 9
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/FourColorDiagramMapper.java

@@ -1,19 +1,29 @@
1 1
 package com.ruoyi.doubledefense.mapper;
2 2
 
3 3
 import java.util.List;
4
+
4 5
 import com.ruoyi.doubledefense.domain.FourColorDiagram;
6
+import com.ruoyi.doubledefense.dtoGov.FourColorDiagramDTOGov;
5 7
 
6 8
 /**
7 9
  * 四色图Mapper接口
8
- * 
10
+ *
9 11
  * @author lyp
10 12
  * @date 2023-09-16
11 13
  */
12
-public interface FourColorDiagramMapper 
13
-{
14
+public interface FourColorDiagramMapper {
15
+    /**
16
+     * 四色图
17
+     * 重预防汇聚计算节点
18
+     *
19
+     * @param fourColorDiagramDTOGov
20
+     * @return
21
+     */
22
+    List<FourColorDiagramDTOGov> govSelectFourColorDiagramList(FourColorDiagramDTOGov fourColorDiagramDTOGov);
23
+
14 24
     /**
15 25
      * 查询四色图
16
-     * 
26
+     *
17 27
      * @param id 四色图主键
18 28
      * @return 四色图
19 29
      */
@@ -21,7 +31,7 @@ public interface FourColorDiagramMapper
21 31
 
22 32
     /**
23 33
      * 查询四色图列表
24
-     * 
34
+     *
25 35
      * @param fourColorDiagram 四色图
26 36
      * @return 四色图集合
27 37
      */
@@ -29,7 +39,7 @@ public interface FourColorDiagramMapper
29 39
 
30 40
     /**
31 41
      * 新增四色图
32
-     * 
42
+     *
33 43
      * @param fourColorDiagram 四色图
34 44
      * @return 结果
35 45
      */
@@ -37,7 +47,7 @@ public interface FourColorDiagramMapper
37 47
 
38 48
     /**
39 49
      * 修改四色图
40
-     * 
50
+     *
41 51
      * @param fourColorDiagram 四色图
42 52
      * @return 结果
43 53
      */
@@ -45,7 +55,7 @@ public interface FourColorDiagramMapper
45 55
 
46 56
     /**
47 57
      * 删除四色图
48
-     * 
58
+     *
49 59
      * @param id 四色图主键
50 60
      * @return 结果
51 61
      */
@@ -53,7 +63,7 @@ public interface FourColorDiagramMapper
53 63
 
54 64
     /**
55 65
      * 批量删除四色图
56
-     * 
66
+     *
57 67
      * @param ids 需要删除的数据主键集合
58 68
      * @return 结果
59 69
      */

+ 13 - 5
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskEventMapper.java

@@ -7,22 +7,30 @@ import com.ruoyi.doubledefense.domain.Hazard;
7 7
 import com.ruoyi.doubledefense.domain.RiskEvent;
8 8
 import com.ruoyi.doubledefense.dto.RiskEventDTO;
9 9
 import com.ruoyi.doubledefense.dto.res.RiskEventResultDTO;
10
+import com.ruoyi.doubledefense.dtoGov.RiskEventDTOGov;
10 11
 
11 12
 /**
12 13
  * 风险事件Mapper接口
13
- * 
14
+ *
14 15
  * @author ruoyi
15 16
  * @date 2023-08-03
16 17
  */
17
-public interface RiskEventMapper extends BaseMapper<RiskEvent>
18
-{
18
+public interface RiskEventMapper extends BaseMapper<RiskEvent> {
19 19
 
20 20
     /**
21 21
      * 查询风险事件列表
22
-     * 
22
+     *
23 23
      * @param riskEvent 风险事件
24 24
      * @return 风险事件集合
25 25
      */
26
-    public List<RiskEventResultDTO> selectRiskEventList(RiskEventDTO riskEvent);
26
+    List<RiskEventResultDTO> selectRiskEventList(RiskEventDTO riskEvent);
27
+
28
+    /**
29
+     * 重预防汇聚计算节点
30
+     * 查询风险事件
31
+     * @param riskEvent
32
+     * @return
33
+     */
34
+    List<RiskEventDTOGov> govSelectRiskEventList(RiskEventDTOGov riskEvent);
27 35
 
28 36
 }

+ 9 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskMeasureMapper.java

@@ -7,6 +7,7 @@ import com.ruoyi.doubledefense.domain.RiskEvent;
7 7
 import com.ruoyi.doubledefense.domain.RiskMeasure;
8 8
 import com.ruoyi.doubledefense.dto.RiskMeasureDTO;
9 9
 import com.ruoyi.doubledefense.dto.res.RiskMeasureResultDTO;
10
+import com.ruoyi.doubledefense.dtoGov.RiskMeasureDTOGov;
10 11
 
11 12
 /**
12 13
  * 风险管控措施Mapper接口
@@ -24,4 +25,12 @@ public interface RiskMeasureMapper extends BaseMapper<RiskMeasure> {
24 25
      */
25 26
     public List<RiskMeasureResultDTO> selectRiskMeasureList(RiskMeasureDTO riskMeasure);
26 27
 
28
+    /**
29
+     * 管控措施
30
+     * 重预防汇聚计算节点
31
+     * @param riskMeasureDTOGov
32
+     * @return
33
+     */
34
+    List<RiskMeasureDTOGov> govSelectRiskMeasureList(RiskMeasureDTOGov riskMeasureDTOGov);
35
+
27 36
 }

+ 10 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskUnitMapper.java

@@ -7,10 +7,11 @@ import com.ruoyi.doubledefense.domain.RiskMeasure;
7 7
 import com.ruoyi.doubledefense.domain.RiskUnit;
8 8
 import com.ruoyi.doubledefense.dto.RiskUnitDTO;
9 9
 import com.ruoyi.doubledefense.dto.res.RiskUnitResultDTO;
10
+import com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov;
10 11
 
11 12
 /**
12 13
  * 风险分析单元Mapper接口
13
- * 
14
+ *
14 15
  * @author ruoyi
15 16
  * @date 2023-08-03
16 17
  */
@@ -22,4 +23,12 @@ public interface RiskUnitMapper extends BaseMapper<RiskUnit>
22 23
      * @return
23 24
      */
24 25
     List<RiskUnitResultDTO> selectRiskUnitList(RiskUnitDTO riskUnit);
26
+
27
+    /**
28
+     * 重预防汇聚计算节点
29
+     * 查询风险分析单元
30
+     * @param riskUnit
31
+     * @return
32
+     */
33
+    List<RiskUnitDTOGov> govSelectRiskUnitList(RiskUnitDTOGov riskUnit);
25 34
 }

+ 12 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/ICheckTaskInventoryRecordService.java

@@ -4,11 +4,13 @@ import java.util.Date;
4 4
 import java.util.List;
5 5
 
6 6
 import com.baomidou.mybatisplus.extension.service.IService;
7
+import com.github.pagehelper.PageInfo;
7 8
 import com.ruoyi.doubledefense.domain.CheckTaskInventory;
8 9
 import com.ruoyi.doubledefense.domain.CheckTaskInventoryRecord;
9 10
 import com.ruoyi.doubledefense.dto.CheckTaskInventoryStatisticsDTO;
10 11
 import com.ruoyi.doubledefense.dto.CheckTaskInventoryStatisticsPCDTO;
11 12
 import com.ruoyi.doubledefense.dto.res.CheckUserCountStatisticsDTO;
13
+import com.ruoyi.doubledefense.dtoGov.CheckTaskInventoryRecordDTOGov;
12 14
 
13 15
 /**
14 16
  * 巡查记录Service接口
@@ -18,6 +20,14 @@ import com.ruoyi.doubledefense.dto.res.CheckUserCountStatisticsDTO;
18 20
  */
19 21
 public interface ICheckTaskInventoryRecordService extends IService<CheckTaskInventoryRecord> {
20 22
     /**
23
+     * 重预防汇聚计算节点
24
+     * 查询巡检打卡记录
25
+     * @param checkTaskInventoryRecordDTOGov
26
+     * @return
27
+     */
28
+    PageInfo<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList(CheckTaskInventoryRecordDTOGov checkTaskInventoryRecordDTOGov);
29
+
30
+    /**
21 31
      * 查询巡查记录
22 32
      *
23 33
      * @param id 巡查记录主键
@@ -101,4 +111,6 @@ public interface ICheckTaskInventoryRecordService extends IService<CheckTaskInve
101 111
      * @return
102 112
      */
103 113
     List<CheckUserCountStatisticsDTO> checkUserCountStatistics(Date checkTimeStatr, Date checkTimeEnd);
114
+
115
+
104 116
 }

+ 19 - 9
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/ICheckTaskService.java

@@ -1,21 +1,32 @@
1 1
 package com.ruoyi.doubledefense.service;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.github.pagehelper.PageInfo;
4 6
 import com.ruoyi.doubledefense.domain.CheckTask;
5 7
 import com.ruoyi.doubledefense.dto.CheckTaskDTO;
6 8
 import com.ruoyi.doubledefense.dto.res.CheckTaskResultDTO;
9
+import com.ruoyi.doubledefense.dtoGov.CheckTaskDTOGov;
7 10
 
8 11
 /**
9 12
  * 隐患排查任务Service接口
10
- * 
13
+ *
11 14
  * @author ruoyi
12 15
  * @date 2023-08-03
13 16
  */
14
-public interface ICheckTaskService 
15
-{
17
+public interface ICheckTaskService {
18
+    /**
19
+     * 重预防汇聚计算节点
20
+     * 查询隐患排查要求
21
+     *
22
+     * @param checkTaskDTOGov
23
+     * @return
24
+     */
25
+    PageInfo<CheckTaskDTOGov> govSelectCheckTaskList(CheckTaskDTOGov checkTaskDTOGov);
26
+
16 27
     /**
17 28
      * 查询隐患排查任务
18
-     * 
29
+     *
19 30
      * @param id 隐患排查任务主键
20 31
      * @return 隐患排查任务
21 32
      */
@@ -23,7 +34,7 @@ public interface ICheckTaskService
23 34
 
24 35
     /**
25 36
      * 查询隐患排查任务列表
26
-     * 
37
+     *
27 38
      * @param checkTaskDTO 隐患排查任务
28 39
      * @return 隐患排查任务集合
29 40
      */
@@ -31,7 +42,7 @@ public interface ICheckTaskService
31 42
 
32 43
     /**
33 44
      * 新增隐患排查任务
34
-     * 
45
+     *
35 46
      * @param checkTask 隐患排查任务
36 47
      * @return 结果
37 48
      */
@@ -39,7 +50,7 @@ public interface ICheckTaskService
39 50
 
40 51
     /**
41 52
      * 修改隐患排查任务
42
-     * 
53
+     *
43 54
      * @param checkTask 隐患排查任务
44 55
      * @return 结果
45 56
      */
@@ -47,10 +58,9 @@ public interface ICheckTaskService
47 58
 
48 59
     /**
49 60
      * 批量删除隐患排查任务
50
-     * 
61
+     *
51 62
      * @param ids 需要删除的隐患排查任务主键集合
52 63
      * @return 结果
53 64
      */
54 65
     public int deleteCheckTaskByIds(String[] ids);
55
-
56 66
 }

+ 25 - 3
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IDangerService.java

@@ -3,12 +3,14 @@ package com.ruoyi.doubledefense.service;
3 3
 import java.util.Date;
4 4
 import java.util.List;
5 5
 
6
+import com.github.pagehelper.PageInfo;
6 7
 import com.ruoyi.common.core.domain.AjaxResult;
7 8
 import com.ruoyi.doubledefense.domain.Danger;
8 9
 import com.ruoyi.doubledefense.dto.DangerDTO;
9 10
 import com.ruoyi.doubledefense.dto.DangerStatisticsDTO;
10 11
 import com.ruoyi.doubledefense.dto.DangerStatisticsPCDTO;
11 12
 import com.ruoyi.doubledefense.dto.res.DangerResultDTO;
13
+import com.ruoyi.doubledefense.dtoGov.DangerDTOGov;
12 14
 import org.springframework.transaction.annotation.Transactional;
13 15
 
14 16
 /**
@@ -17,8 +19,16 @@ import org.springframework.transaction.annotation.Transactional;
17 19
  * @author ruoyi
18 20
  * @date 2023-08-03
19 21
  */
20
-public interface IDangerService
21
-{
22
+public interface IDangerService {
23
+    /**
24
+     * 重预防汇聚计算节点
25
+     * 查询隐患列表
26
+     *
27
+     * @param dangerDTOGov
28
+     * @return
29
+     */
30
+    PageInfo<DangerDTOGov> govSelectDangerList(DangerDTOGov dangerDTOGov);
31
+
22 32
     /**
23 33
      * 查询隐患信息
24 34
      *
@@ -34,6 +44,7 @@ public interface IDangerService
34 44
      * @return 隐患信息集合
35 45
      */
36 46
     public List<DangerResultDTO> selectDangerList(DangerDTO danger);
47
+
37 48
     /**
38 49
      * PC首页统计-双重防御机制:查询隐患列表
39 50
      *
@@ -68,6 +79,7 @@ public interface IDangerService
68 79
 
69 80
     /**
70 81
      * 上报隐患
82
+     *
71 83
      * @param dangerDTO
72 84
      * @return
73 85
      */
@@ -75,19 +87,23 @@ public interface IDangerService
75 87
 
76 88
     /**
77 89
      * 修改隐患
90
+     *
78 91
      * @param dangerDTO
79 92
      * @return
80 93
      */
81
-    int updateDangerForApp(DangerDTO dangerDTO,boolean isStatusUpdate);
94
+    int updateDangerForApp(DangerDTO dangerDTO, boolean isStatusUpdate);
82 95
 
83 96
     /**
84 97
      * 审核隐患
98
+     *
85 99
      * @param dangerDTO
86 100
      * @return
87 101
      */
88 102
     AjaxResult dangerReview(DangerDTO dangerDTO);
103
+
89 104
     /**
90 105
      * 认领隐患
106
+     *
91 107
      * @param dangerId
92 108
      * @return
93 109
      */
@@ -95,6 +111,7 @@ public interface IDangerService
95 111
 
96 112
     /**
97 113
      * 提交整改信息(完成整改)
114
+     *
98 115
      * @param dangerDTO
99 116
      * @return
100 117
      */
@@ -102,6 +119,7 @@ public interface IDangerService
102 119
 
103 120
     /**
104 121
      * 整改验收
122
+     *
105 123
      * @param dangerDTO
106 124
      * @return
107 125
      */
@@ -109,14 +127,18 @@ public interface IDangerService
109 127
 
110 128
     /**
111 129
      * APP首页统计-隐患排查
130
+     *
112 131
      * @return
113 132
      */
114 133
     DangerStatisticsDTO dangerStatistics();
115 134
 
116 135
     /**
117 136
      * PC首页统计-双重预防机制
137
+     *
118 138
      * @param endDate 今天的0点0分的时间
119 139
      * @return
120 140
      */
121 141
     DangerStatisticsPCDTO dangerStatisticsPC(Date endDate);
142
+
143
+
122 144
 }

+ 12 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IFourColorDiagramService.java

@@ -2,7 +2,9 @@ package com.ruoyi.doubledefense.service;
2 2
 
3 3
 import java.util.List;
4 4
 
5
+import com.github.pagehelper.PageInfo;
5 6
 import com.ruoyi.doubledefense.domain.FourColorDiagram;
7
+import com.ruoyi.doubledefense.dtoGov.FourColorDiagramDTOGov;
6 8
 
7 9
 /**
8 10
  * 四色图Service接口
@@ -11,6 +13,16 @@ import com.ruoyi.doubledefense.domain.FourColorDiagram;
11 13
  * @date 2023-09-16
12 14
  */
13 15
 public interface IFourColorDiagramService {
16
+
17
+    /**
18
+     * 四色图
19
+     * 重预防汇聚计算节点
20
+     *
21
+     * @param fourColorDiagramDTOGov
22
+     * @return
23
+     */
24
+    PageInfo<FourColorDiagramDTOGov> govSelectFourColorDiagramList(FourColorDiagramDTOGov fourColorDiagramDTOGov);
25
+
14 26
     /**
15 27
      * 查询四色图
16 28
      *

+ 19 - 7
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskEventService.java

@@ -1,21 +1,33 @@
1 1
 package com.ruoyi.doubledefense.service;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.github.pagehelper.PageInfo;
4 6
 import com.ruoyi.doubledefense.domain.RiskEvent;
5 7
 import com.ruoyi.doubledefense.dto.RiskEventDTO;
6 8
 import com.ruoyi.doubledefense.dto.res.RiskEventResultDTO;
9
+import com.ruoyi.doubledefense.dtoGov.RiskEventDTOGov;
7 10
 
8 11
 /**
9 12
  * 风险事件Service接口
10
- * 
13
+ *
11 14
  * @author ruoyi
12 15
  * @date 2023-08-03
13 16
  */
14
-public interface IRiskEventService 
17
+public interface IRiskEventService
15 18
 {
19
+
20
+    /**
21
+     * 重预防汇聚计算节点
22
+     * 查询风险事件
23
+     * @param riskEvent
24
+     * @return
25
+     */
26
+    PageInfo<RiskEventDTOGov> govSelectRiskEventList(RiskEventDTOGov riskEvent);
27
+
16 28
     /**
17 29
      * 查询风险事件
18
-     * 
30
+     *
19 31
      * @param id 风险事件主键
20 32
      * @return 风险事件
21 33
      */
@@ -23,7 +35,7 @@ public interface IRiskEventService
23 35
 
24 36
     /**
25 37
      * 查询风险事件列表
26
-     * 
38
+     *
27 39
      * @param riskEvent 风险事件
28 40
      * @return 风险事件集合
29 41
      */
@@ -31,7 +43,7 @@ public interface IRiskEventService
31 43
 
32 44
     /**
33 45
      * 新增风险事件
34
-     * 
46
+     *
35 47
      * @param riskEvent 风险事件
36 48
      * @return 结果
37 49
      */
@@ -39,7 +51,7 @@ public interface IRiskEventService
39 51
 
40 52
     /**
41 53
      * 修改风险事件
42
-     * 
54
+     *
43 55
      * @param riskEvent 风险事件
44 56
      * @return 结果
45 57
      */
@@ -47,7 +59,7 @@ public interface IRiskEventService
47 59
 
48 60
     /**
49 61
      * 批量删除风险事件
50
-     * 
62
+     *
51 63
      * @param ids 需要删除的风险事件主键集合
52 64
      * @return 结果
53 65
      */

+ 14 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskMeasureService.java

@@ -1,17 +1,30 @@
1 1
 package com.ruoyi.doubledefense.service;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.github.pagehelper.PageInfo;
4 6
 import com.ruoyi.doubledefense.domain.RiskMeasure;
5 7
 import com.ruoyi.doubledefense.dto.RiskMeasureDTO;
6 8
 import com.ruoyi.doubledefense.dto.res.RiskMeasureResultDTO;
9
+import com.ruoyi.doubledefense.dtoGov.RiskMeasureDTOGov;
7 10
 
8 11
 /**
9 12
  * 风险管控措施Service接口
10
- * 
13
+ *
11 14
  * @author ruoyi
12 15
  * @date 2023-08-03
13 16
  */
14 17
 public interface IRiskMeasureService {
18
+
19
+    /**
20
+     * 管控措施
21
+     * 重预防汇聚计算节点
22
+     * @param riskMeasureDTOGov
23
+     * @return
24
+     */
25
+    PageInfo<RiskMeasureDTOGov> govSelectRiskMeasureList(RiskMeasureDTOGov riskMeasureDTOGov);
26
+
27
+
15 28
     /**
16 29
      * 查询风险管控措施
17 30
      *

+ 18 - 7
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskUnitService.java

@@ -1,21 +1,32 @@
1 1
 package com.ruoyi.doubledefense.service;
2 2
 
3 3
 import java.util.List;
4
+
5
+import com.github.pagehelper.PageInfo;
4 6
 import com.ruoyi.doubledefense.domain.RiskUnit;
5 7
 import com.ruoyi.doubledefense.dto.RiskUnitDTO;
6 8
 import com.ruoyi.doubledefense.dto.res.RiskUnitResultDTO;
9
+import com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov;
7 10
 
8 11
 /**
9 12
  * 风险分析单元Service接口
10
- * 
13
+ *
11 14
  * @author ruoyi
12 15
  * @date 2023-08-03
13 16
  */
14
-public interface IRiskUnitService 
17
+public interface IRiskUnitService
15 18
 {
16 19
     /**
20
+     * 重预防汇聚计算节点
21
+     * 查询风险分析单元
22
+     * @param riskUnit
23
+     * @return
24
+     */
25
+    PageInfo<RiskUnitDTOGov> govSelectRiskUnitList(RiskUnitDTOGov riskUnit);
26
+
27
+    /**
17 28
      * 查询风险分析单元
18
-     * 
29
+     *
19 30
      * @param id 风险分析单元主键
20 31
      * @return 风险分析单元
21 32
      */
@@ -23,7 +34,7 @@ public interface IRiskUnitService
23 34
 
24 35
     /**
25 36
      * 查询风险分析单元列表
26
-     * 
37
+     *
27 38
      * @param riskUnit 风险分析单元
28 39
      * @return 风险分析单元集合
29 40
      */
@@ -31,7 +42,7 @@ public interface IRiskUnitService
31 42
 
32 43
     /**
33 44
      * 新增风险分析单元
34
-     * 
45
+     *
35 46
      * @param riskUnit 风险分析单元
36 47
      * @return 结果
37 48
      */
@@ -39,7 +50,7 @@ public interface IRiskUnitService
39 50
 
40 51
     /**
41 52
      * 修改风险分析单元
42
-     * 
53
+     *
43 54
      * @param riskUnit 风险分析单元
44 55
      * @return 结果
45 56
      */
@@ -47,7 +58,7 @@ public interface IRiskUnitService
47 58
 
48 59
     /**
49 60
      * 批量删除风险分析单元
50
-     * 
61
+     *
51 62
      * @param ids 需要删除的风险分析单元主键集合
52 63
      * @return 结果
53 64
      */

+ 23 - 4
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/CheckTaskInventoryRecordServiceImpl.java

@@ -4,11 +4,14 @@ import java.util.Date;
4 4
 import java.util.List;
5 5
 
6 6
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import com.github.pagehelper.PageHelper;
8
+import com.github.pagehelper.PageInfo;
7 9
 import com.ruoyi.common.constant.DeletedEnum;
8 10
 import com.ruoyi.doubledefense.domain.CheckTaskInventory;
9 11
 import com.ruoyi.doubledefense.dto.CheckTaskInventoryStatisticsDTO;
10 12
 import com.ruoyi.doubledefense.dto.CheckTaskInventoryStatisticsPCDTO;
11 13
 import com.ruoyi.doubledefense.dto.res.CheckUserCountStatisticsDTO;
14
+import com.ruoyi.doubledefense.dtoGov.CheckTaskInventoryRecordDTOGov;
12 15
 import org.springframework.beans.factory.annotation.Autowired;
13 16
 import org.springframework.stereotype.Service;
14 17
 import com.ruoyi.doubledefense.mapper.CheckTaskInventoryRecordMapper;
@@ -22,11 +25,27 @@ import com.ruoyi.doubledefense.service.ICheckTaskInventoryRecordService;
22 25
  * @date 2023-08-03
23 26
  */
24 27
 @Service
25
-public class CheckTaskInventoryRecordServiceImpl extends ServiceImpl<CheckTaskInventoryRecordMapper,CheckTaskInventoryRecord> implements ICheckTaskInventoryRecordService {
28
+public class CheckTaskInventoryRecordServiceImpl extends ServiceImpl<CheckTaskInventoryRecordMapper, CheckTaskInventoryRecord> implements ICheckTaskInventoryRecordService {
26 29
     @Autowired
27 30
     private CheckTaskInventoryRecordMapper checkTaskInventoryRecordMapper;
28 31
 
29 32
     /**
33
+     * 重预防汇聚计算节点
34
+     * 查询巡检打卡记录
35
+     *
36
+     * @param checkTaskInventoryRecordDTOGov
37
+     * @return
38
+     */
39
+    @Override
40
+    public PageInfo<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList(CheckTaskInventoryRecordDTOGov checkTaskInventoryRecordDTOGov) {
41
+        PageHelper.startPage(checkTaskInventoryRecordDTOGov.getPageNo(), checkTaskInventoryRecordDTOGov.getPageSize());
42
+
43
+        List<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList = checkTaskInventoryRecordMapper.govSelectCheckTaskInventoryRecordList(checkTaskInventoryRecordDTOGov);
44
+        PageInfo<CheckTaskInventoryRecordDTOGov> pageInfo = new PageInfo<>(govSelectCheckTaskInventoryRecordList);
45
+        return pageInfo;
46
+    }
47
+
48
+    /**
30 49
      * 查询巡查记录
31 50
      *
32 51
      * @param id 巡查记录主键
@@ -116,8 +135,8 @@ public class CheckTaskInventoryRecordServiceImpl extends ServiceImpl<CheckTaskIn
116 135
      * @return
117 136
      */
118 137
     @Override
119
-    public List<CheckTaskInventoryRecord> selectCheckTaskInventoryRecordListByRistUnitId(String riskUnitId,Integer status) {
120
-        return checkTaskInventoryRecordMapper.selectCheckTaskInventoryRecordListByRistUnitId(riskUnitId,status);
138
+    public List<CheckTaskInventoryRecord> selectCheckTaskInventoryRecordListByRistUnitId(String riskUnitId, Integer status) {
139
+        return checkTaskInventoryRecordMapper.selectCheckTaskInventoryRecordListByRistUnitId(riskUnitId, status);
121 140
     }
122 141
 
123 142
     /**
@@ -160,6 +179,6 @@ public class CheckTaskInventoryRecordServiceImpl extends ServiceImpl<CheckTaskIn
160 179
      */
161 180
     @Override
162 181
     public List<CheckUserCountStatisticsDTO> checkUserCountStatistics(Date checkTimeStatr, Date checkTimeEnd) {
163
-        return checkTaskInventoryRecordMapper.checkUserCountStatistics(checkTimeStatr,checkTimeEnd);
182
+        return checkTaskInventoryRecordMapper.checkUserCountStatistics(checkTimeStatr, checkTimeEnd);
164 183
     }
165 184
 }

+ 19 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/CheckTaskServiceImpl.java

@@ -2,10 +2,13 @@ package com.ruoyi.doubledefense.service.impl;
2 2
 
3 3
 import com.baomidou.mybatisplus.core.conditions.Wrapper;
4 4
 import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
5
+import com.github.pagehelper.PageHelper;
6
+import com.github.pagehelper.PageInfo;
5 7
 import com.ruoyi.common.exception.base.BaseException;
6 8
 import com.ruoyi.doubledefense.domain.CheckTask;
7 9
 import com.ruoyi.doubledefense.dto.CheckTaskDTO;
8 10
 import com.ruoyi.doubledefense.dto.res.CheckTaskResultDTO;
11
+import com.ruoyi.doubledefense.dtoGov.CheckTaskDTOGov;
9 12
 import com.ruoyi.doubledefense.mapper.CheckTaskMapper;
10 13
 import com.ruoyi.doubledefense.service.ICheckTaskService;
11 14
 import org.springframework.beans.BeanUtils;
@@ -29,7 +32,22 @@ public class CheckTaskServiceImpl implements ICheckTaskService {
29 32
     @Autowired
30 33
     private CheckTaskMapper checkTaskMapper;
31 34
 
32
-//    @Autowired
35
+    /**
36
+     * 重预防汇聚计算节点
37
+     * 查询隐患排查要求
38
+     *
39
+     * @param checkTaskDTOGov
40
+     * @return
41
+     */
42
+    @Override
43
+    public PageInfo<CheckTaskDTOGov> govSelectCheckTaskList(CheckTaskDTOGov checkTaskDTOGov) {
44
+        PageHelper.startPage(checkTaskDTOGov.getPageNo(), checkTaskDTOGov.getPageSize());
45
+        List<CheckTaskDTOGov> dataList =checkTaskMapper.govSelectCheckTaskList(checkTaskDTOGov);
46
+        PageInfo<CheckTaskDTOGov> pageInfo = new PageInfo<>(dataList);
47
+        return pageInfo;
48
+    }
49
+
50
+    //    @Autowired
33 51
 //    private CheckTaskPostRelationMapper checkTaskPostRelationMapper;
34 52
 
35 53
     /**

+ 18 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/DangerServiceImpl.java

@@ -2,6 +2,8 @@ package com.ruoyi.doubledefense.service.impl;
2 2
 
3 3
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4 4
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
5
+import com.github.pagehelper.PageHelper;
6
+import com.github.pagehelper.PageInfo;
5 7
 import com.ruoyi.common.constant.AppUserTypeEnum;
6 8
 import com.ruoyi.common.constant.DangerStatusEnum;
7 9
 import com.ruoyi.common.constant.DeletedEnum;
@@ -18,6 +20,7 @@ import com.ruoyi.doubledefense.dto.DangerDTO;
18 20
 import com.ruoyi.doubledefense.dto.DangerStatisticsDTO;
19 21
 import com.ruoyi.doubledefense.dto.DangerStatisticsPCDTO;
20 22
 import com.ruoyi.doubledefense.dto.res.DangerResultDTO;
23
+import com.ruoyi.doubledefense.dtoGov.DangerDTOGov;
21 24
 import com.ruoyi.doubledefense.mapper.DangerManageMapper;
22 25
 import com.ruoyi.doubledefense.mapper.DangerMapper;
23 26
 import com.ruoyi.doubledefense.mapper.DangerOperateRecordMapper;
@@ -73,6 +76,20 @@ public class DangerServiceImpl implements IDangerService {
73 76
     @Autowired
74 77
     private TbSysAreaMapper tbSysAreaMapper;
75 78
 
79
+    /**
80
+     * 重预防汇聚计算节点
81
+     * 查询隐患列表
82
+     *
83
+     * @param dangerDTOGov
84
+     * @return
85
+     */
86
+    @Override
87
+    public PageInfo<DangerDTOGov> govSelectDangerList(DangerDTOGov dangerDTOGov) {
88
+        PageHelper.startPage(dangerDTOGov.getPageNo(),dangerDTOGov.getPageSize());
89
+        List<DangerDTOGov> dangerDTOGovList = dangerMapper.govSelectDangerList(dangerDTOGov);
90
+        PageInfo<DangerDTOGov> pageInfo = new PageInfo<>(dangerDTOGovList);
91
+        return pageInfo;
92
+    }
76 93
 
77 94
     /**
78 95
      * 查询隐患信息
@@ -765,4 +782,5 @@ public class DangerServiceImpl implements IDangerService {
765 782
     public DangerStatisticsPCDTO dangerStatisticsPC(Date endDate) {
766 783
         return dangerMapper.dangerStatisticsPC(endDate);
767 784
     }
785
+
768 786
 }

+ 18 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/FourColorDiagramServiceImpl.java

@@ -3,7 +3,10 @@ package com.ruoyi.doubledefense.service.impl;
3 3
 import java.util.List;
4 4
 import java.util.UUID;
5 5
 
6
+import com.github.pagehelper.PageHelper;
7
+import com.github.pagehelper.PageInfo;
6 8
 import com.ruoyi.common.utils.StringUtils;
9
+import com.ruoyi.doubledefense.dtoGov.FourColorDiagramDTOGov;
7 10
 import org.springframework.beans.factory.annotation.Autowired;
8 11
 import org.springframework.stereotype.Service;
9 12
 import com.ruoyi.doubledefense.mapper.FourColorDiagramMapper;
@@ -22,6 +25,21 @@ public class FourColorDiagramServiceImpl implements IFourColorDiagramService {
22 25
     private FourColorDiagramMapper fourColorDiagramMapper;
23 26
 
24 27
     /**
28
+     * 四色图
29
+     * 重预防汇聚计算节点
30
+     *
31
+     * @param fourColorDiagramDTOGov
32
+     * @return
33
+     */
34
+    @Override
35
+    public PageInfo<FourColorDiagramDTOGov> govSelectFourColorDiagramList(FourColorDiagramDTOGov fourColorDiagramDTOGov) {
36
+        PageHelper.startPage(fourColorDiagramDTOGov.getPageNo(),fourColorDiagramDTOGov.getPageSize());
37
+        List<FourColorDiagramDTOGov> fourColorDiagramDTOGovList = fourColorDiagramMapper.govSelectFourColorDiagramList(fourColorDiagramDTOGov);
38
+        PageInfo<FourColorDiagramDTOGov> pageInfo = new PageInfo<>(fourColorDiagramDTOGovList);
39
+        return pageInfo;
40
+    }
41
+
42
+    /**
25 43
      * 查询四色图
26 44
      *
27 45
      * @param id 四色图主键

+ 2 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/HazardServiceImpl.java

@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
6 6
 import com.ruoyi.common.constant.DeletedEnum;
7 7
 import com.ruoyi.common.core.domain.entity.TbSysArea;
8 8
 import com.ruoyi.common.core.domain.entity.TbSysAreaUser;
9
+import com.ruoyi.common.utils.CodeUtils;
9 10
 import com.ruoyi.common.utils.DateUtils;
10 11
 import com.ruoyi.common.utils.StringUtils;
11 12
 import com.ruoyi.doubledefense.domain.Hazard;
@@ -144,7 +145,7 @@ public class HazardServiceImpl implements IHazardService {
144 145
         Hazard hazard = new Hazard();
145 146
         BeanUtils.copyProperties(hazardDTO, hazard);
146 147
         hazard.setId(UUID.randomUUID().toString());
147
-        hazard.setHazardCode(System.currentTimeMillis() + "");
148
+        hazard.setHazardCode(CodeUtils.getHazardCode());
148 149
         hazard.setCreateDefault();
149 150
         return hazardMapper.insert(hazard);
150 151
     }

+ 26 - 7
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskEventServiceImpl.java

@@ -5,10 +5,13 @@ import java.util.List;
5 5
 import java.util.UUID;
6 6
 
7 7
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
8
+import com.github.pagehelper.PageHelper;
9
+import com.github.pagehelper.PageInfo;
8 10
 import com.ruoyi.common.constant.DeletedEnum;
9 11
 import com.ruoyi.doubledefense.domain.Hazard;
10 12
 import com.ruoyi.doubledefense.dto.RiskEventDTO;
11 13
 import com.ruoyi.doubledefense.dto.res.RiskEventResultDTO;
14
+import com.ruoyi.doubledefense.dtoGov.RiskEventDTOGov;
12 15
 import org.springframework.beans.BeanUtils;
13 16
 import org.springframework.beans.factory.annotation.Autowired;
14 17
 import org.springframework.stereotype.Service;
@@ -19,19 +22,35 @@ import org.springframework.util.CollectionUtils;
19 22
 
20 23
 /**
21 24
  * 风险事件Service业务层处理
22
- * 
25
+ *
23 26
  * @author ruoyi
24 27
  * @date 2023-08-03
25 28
  */
26 29
 @Service
27
-public class RiskEventServiceImpl implements IRiskEventService 
30
+public class RiskEventServiceImpl implements IRiskEventService
28 31
 {
29 32
     @Autowired
30 33
     private RiskEventMapper riskEventMapper;
31 34
 
32 35
     /**
36
+     * 重预防汇聚计算节点
33 37
      * 查询风险事件
34
-     * 
38
+     *
39
+     * @param riskEvent
40
+     * @return
41
+     */
42
+    @Override
43
+    public PageInfo<RiskEventDTOGov> govSelectRiskEventList(RiskEventDTOGov riskEvent) {
44
+        PageHelper.startPage(riskEvent.getPageNo(),riskEvent.getPageSize());
45
+        List<RiskEventDTOGov> riskEventDTOGovList = riskEventMapper.govSelectRiskEventList(riskEvent);
46
+
47
+        PageInfo<RiskEventDTOGov> pageInfo = new PageInfo<>(riskEventDTOGovList);
48
+        return pageInfo;
49
+    }
50
+
51
+    /**
52
+     * 查询风险事件
53
+     *
35 54
      * @param id 风险事件主键
36 55
      * @return 风险事件
37 56
      */
@@ -49,7 +68,7 @@ public class RiskEventServiceImpl implements IRiskEventService
49 68
 
50 69
     /**
51 70
      * 查询风险事件列表
52
-     * 
71
+     *
53 72
      * @param riskEventDTO 风险事件
54 73
      * @return 风险事件
55 74
      */
@@ -61,7 +80,7 @@ public class RiskEventServiceImpl implements IRiskEventService
61 80
 
62 81
     /**
63 82
      * 新增风险事件
64
-     * 
83
+     *
65 84
      * @param riskEventDTO 风险事件
66 85
      * @return 结果
67 86
      */
@@ -77,7 +96,7 @@ public class RiskEventServiceImpl implements IRiskEventService
77 96
 
78 97
     /**
79 98
      * 修改风险事件
80
-     * 
99
+     *
81 100
      * @param riskEventDTO 风险事件
82 101
      * @return 结果
83 102
      */
@@ -92,7 +111,7 @@ public class RiskEventServiceImpl implements IRiskEventService
92 111
 
93 112
     /**
94 113
      * 批量删除风险事件
95
-     * 
114
+     *
96 115
      * @param ids 需要删除的风险事件主键
97 116
      * @return 结果
98 117
      */

+ 36 - 23
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskMeasureServiceImpl.java

@@ -5,10 +5,13 @@ import java.util.List;
5 5
 import java.util.UUID;
6 6
 
7 7
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
8
+import com.github.pagehelper.PageHelper;
9
+import com.github.pagehelper.PageInfo;
8 10
 import com.ruoyi.common.constant.DeletedEnum;
9 11
 import com.ruoyi.doubledefense.domain.RiskEvent;
10 12
 import com.ruoyi.doubledefense.dto.RiskMeasureDTO;
11 13
 import com.ruoyi.doubledefense.dto.res.RiskMeasureResultDTO;
14
+import com.ruoyi.doubledefense.dtoGov.RiskMeasureDTOGov;
12 15
 import org.springframework.beans.BeanUtils;
13 16
 import org.springframework.beans.factory.annotation.Autowired;
14 17
 import org.springframework.stereotype.Service;
@@ -19,29 +22,43 @@ import org.springframework.util.CollectionUtils;
19 22
 
20 23
 /**
21 24
  * 风险管控措施Service业务层处理
22
- * 
25
+ *
23 26
  * @author ruoyi
24 27
  * @date 2023-08-03
25 28
  */
26 29
 @Service
27
-public class RiskMeasureServiceImpl implements IRiskMeasureService 
28
-{
30
+public class RiskMeasureServiceImpl implements IRiskMeasureService {
29 31
     @Autowired
30 32
     private RiskMeasureMapper riskMeasureMapper;
31 33
 
34
+
35
+    /**
36
+     * 管控措施
37
+     * 重预防汇聚计算节点
38
+     *
39
+     * @param riskMeasureDTOGov
40
+     * @return
41
+     */
42
+    @Override
43
+    public PageInfo<RiskMeasureDTOGov> govSelectRiskMeasureList(RiskMeasureDTOGov riskMeasureDTOGov) {
44
+        PageHelper.startPage(riskMeasureDTOGov.getPageNo(), riskMeasureDTOGov.getPageSize());
45
+        List<RiskMeasureDTOGov> riskMeasureDTOGovList = riskMeasureMapper.govSelectRiskMeasureList(riskMeasureDTOGov);
46
+        PageInfo<RiskMeasureDTOGov> riskMeasureDTOGovPageInfo = new PageInfo<>(riskMeasureDTOGovList);
47
+        return riskMeasureDTOGovPageInfo;
48
+    }
49
+
32 50
     /**
33 51
      * 查询风险管控措施
34
-     * 
52
+     *
35 53
      * @param id 风险管控措施主键
36 54
      * @return 风险管控措施
37 55
      */
38 56
     @Override
39
-    public RiskMeasureResultDTO selectRiskMeasureById(String id)
40
-    {
57
+    public RiskMeasureResultDTO selectRiskMeasureById(String id) {
41 58
         RiskMeasureDTO riskMeasureDTO = new RiskMeasureDTO();
42 59
         riskMeasureDTO.setId(id);
43 60
         List<RiskMeasureResultDTO> riskMeasureResultDTOS = selectRiskMeasureList(riskMeasureDTO);
44
-        if(CollectionUtils.isEmpty(riskMeasureResultDTOS)){
61
+        if (CollectionUtils.isEmpty(riskMeasureResultDTOS)) {
45 62
             return null;
46 63
         }
47 64
         return riskMeasureResultDTOS.get(0);
@@ -49,27 +66,25 @@ public class RiskMeasureServiceImpl implements IRiskMeasureService
49 66
 
50 67
     /**
51 68
      * 查询风险管控措施列表
52
-     * 
69
+     *
53 70
      * @param riskMeasure 风险管控措施
54 71
      * @return 风险管控措施
55 72
      */
56 73
     @Override
57
-    public List<RiskMeasureResultDTO> selectRiskMeasureList(RiskMeasureDTO riskMeasure)
58
-    {
74
+    public List<RiskMeasureResultDTO> selectRiskMeasureList(RiskMeasureDTO riskMeasure) {
59 75
         return riskMeasureMapper.selectRiskMeasureList(riskMeasure);
60 76
     }
61 77
 
62 78
     /**
63 79
      * 新增风险管控措施
64
-     * 
80
+     *
65 81
      * @param riskMeasureDTO 风险管控措施
66 82
      * @return 结果
67 83
      */
68 84
     @Override
69
-    public int insertRiskMeasure(RiskMeasureDTO riskMeasureDTO)
70
-    {
85
+    public int insertRiskMeasure(RiskMeasureDTO riskMeasureDTO) {
71 86
         RiskMeasure riskMeasure = new RiskMeasure();
72
-        BeanUtils.copyProperties(riskMeasureDTO,riskMeasure);
87
+        BeanUtils.copyProperties(riskMeasureDTO, riskMeasure);
73 88
         riskMeasure.setId(UUID.randomUUID().toString());
74 89
         riskMeasure.setCreateDefault();
75 90
         return riskMeasureMapper.insert(riskMeasure);
@@ -77,34 +92,32 @@ public class RiskMeasureServiceImpl implements IRiskMeasureService
77 92
 
78 93
     /**
79 94
      * 修改风险管控措施
80
-     * 
95
+     *
81 96
      * @param riskMeasureDTO 风险管控措施
82 97
      * @return 结果
83 98
      */
84 99
     @Override
85
-    public int updateRiskMeasure(RiskMeasureDTO riskMeasureDTO)
86
-    {
100
+    public int updateRiskMeasure(RiskMeasureDTO riskMeasureDTO) {
87 101
         RiskMeasure riskMeasure = new RiskMeasure();
88
-        BeanUtils.copyProperties(riskMeasureDTO,riskMeasure);
102
+        BeanUtils.copyProperties(riskMeasureDTO, riskMeasure);
89 103
         riskMeasure.setUpdateDefault();
90 104
         return riskMeasureMapper.updateById(riskMeasure);
91 105
     }
92 106
 
93 107
     /**
94 108
      * 批量删除风险管控措施
95
-     * 
109
+     *
96 110
      * @param ids 需要删除的风险管控措施主键
97 111
      * @return 结果
98 112
      */
99 113
     @Override
100
-    public int deleteRiskMeasureByIds(String[] ids)
101
-    {
114
+    public int deleteRiskMeasureByIds(String[] ids) {
102 115
         RiskMeasure riskMeasure = new RiskMeasure();
103 116
         riskMeasure.setUpdateDefault();
104 117
         riskMeasure.setIsDel(DeletedEnum.INVALID.getValue());
105 118
         QueryWrapper<RiskMeasure> queryWrapper = new QueryWrapper<>();
106
-        queryWrapper.in("id",ids);
107
-        return riskMeasureMapper.update(riskMeasure,queryWrapper);
119
+        queryWrapper.in("id", ids);
120
+        return riskMeasureMapper.update(riskMeasure, queryWrapper);
108 121
     }
109 122
 
110 123
 }

+ 44 - 34
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskUnitServiceImpl.java

@@ -1,51 +1,65 @@
1 1
 package com.ruoyi.doubledefense.service.impl;
2 2
 
3
-import java.sql.Wrapper;
4
-import java.util.Arrays;
5
-import java.util.Date;
6
-import java.util.List;
7
-
8
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
9 3
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.github.pagehelper.PageHelper;
5
+import com.github.pagehelper.PageInfo;
10 6
 import com.ruoyi.common.constant.DeletedEnum;
11 7
 import com.ruoyi.common.utils.uuid.UUID;
12
-import com.ruoyi.doubledefense.domain.Hazard;
13
-import com.ruoyi.doubledefense.domain.RiskMeasure;
8
+import com.ruoyi.doubledefense.domain.RiskUnit;
14 9
 import com.ruoyi.doubledefense.dto.RiskUnitDTO;
15 10
 import com.ruoyi.doubledefense.dto.res.RiskUnitResultDTO;
11
+import com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov;
12
+import com.ruoyi.doubledefense.mapper.RiskUnitMapper;
13
+import com.ruoyi.doubledefense.service.IRiskUnitService;
16 14
 import org.springframework.beans.BeanUtils;
17 15
 import org.springframework.beans.factory.annotation.Autowired;
18 16
 import org.springframework.stereotype.Service;
19
-import com.ruoyi.doubledefense.mapper.RiskUnitMapper;
20
-import com.ruoyi.doubledefense.domain.RiskUnit;
21
-import com.ruoyi.doubledefense.service.IRiskUnitService;
22 17
 import org.springframework.util.CollectionUtils;
23 18
 
19
+import java.util.List;
20
+
24 21
 /**
25 22
  * 风险分析单元Service业务层处理
26
- * 
23
+ *
27 24
  * @author ruoyi
28 25
  * @date 2023-08-03
29 26
  */
30 27
 @Service
31
-public class RiskUnitServiceImpl implements IRiskUnitService 
32
-{
28
+public class RiskUnitServiceImpl implements IRiskUnitService {
33 29
     @Autowired
34 30
     private RiskUnitMapper riskUnitMapper;
35 31
 
32
+
33
+    /**
34
+     * 重预防汇聚计算节点
35
+     * 查询风险分析单元
36
+     *
37
+     * @param riskUnit
38
+     * @return
39
+     */
40
+    @Override
41
+    public PageInfo<RiskUnitDTOGov> govSelectRiskUnitList(RiskUnitDTOGov riskUnit) {
42
+        PageHelper.startPage(riskUnit.getPageNo(), riskUnit.getPageSize());
43
+
44
+        List<RiskUnitDTOGov> riskUnitDTOGovList = riskUnitMapper.govSelectRiskUnitList(riskUnit);
45
+
46
+        PageInfo<RiskUnitDTOGov> pageInfo = new PageInfo<>(riskUnitDTOGovList);
47
+
48
+        return pageInfo;
49
+    }
50
+
36 51
     /**
37 52
      * 查询风险分析单元
38
-     * 
53
+     *
39 54
      * @param id 风险分析单元主键
40 55
      * @return 风险分析单元
41 56
      */
42 57
     @Override
43
-    public RiskUnitResultDTO selectRiskUnitById(String id)
44
-    {
58
+    public RiskUnitResultDTO selectRiskUnitById(String id) {
45 59
         RiskUnitDTO riskUnitDTO = new RiskUnitDTO();
46 60
         riskUnitDTO.setId(id);
47 61
         List<RiskUnitResultDTO> riskUnitResultDTOS = riskUnitMapper.selectRiskUnitList(riskUnitDTO);
48
-        if(CollectionUtils.isEmpty(riskUnitResultDTOS)){
62
+        if (CollectionUtils.isEmpty(riskUnitResultDTOS)) {
49 63
             return null;
50 64
         }
51 65
         return riskUnitResultDTOS.get(0);
@@ -53,27 +67,25 @@ public class RiskUnitServiceImpl implements IRiskUnitService
53 67
 
54 68
     /**
55 69
      * 查询风险分析单元列表
56
-     * 
70
+     *
57 71
      * @param riskUnitDTO 风险分析单元
58 72
      * @return 风险分析单元
59 73
      */
60 74
     @Override
61
-    public List<RiskUnitResultDTO> selectRiskUnitList(RiskUnitDTO riskUnitDTO)
62
-    {
75
+    public List<RiskUnitResultDTO> selectRiskUnitList(RiskUnitDTO riskUnitDTO) {
63 76
         return riskUnitMapper.selectRiskUnitList(riskUnitDTO);
64 77
     }
65 78
 
66 79
     /**
67 80
      * 新增风险分析单元
68
-     * 
81
+     *
69 82
      * @param riskUnitDTO 风险分析单元
70 83
      * @return 结果
71 84
      */
72 85
     @Override
73
-    public int insertRiskUnit(RiskUnitDTO riskUnitDTO)
74
-    {
86
+    public int insertRiskUnit(RiskUnitDTO riskUnitDTO) {
75 87
         RiskUnit riskUnit = new RiskUnit();
76
-        BeanUtils.copyProperties(riskUnitDTO,riskUnit);
88
+        BeanUtils.copyProperties(riskUnitDTO, riskUnit);
77 89
         riskUnit.setId(UUID.randomUUID().toString());
78 90
         riskUnit.setCreateDefault();
79 91
         return riskUnitMapper.insert(riskUnit);
@@ -81,34 +93,32 @@ public class RiskUnitServiceImpl implements IRiskUnitService
81 93
 
82 94
     /**
83 95
      * 修改风险分析单元
84
-     * 
96
+     *
85 97
      * @param riskUnitDTO 风险分析单元
86 98
      * @return 结果
87 99
      */
88 100
     @Override
89
-    public int updateRiskUnit(RiskUnitDTO riskUnitDTO)
90
-    {
101
+    public int updateRiskUnit(RiskUnitDTO riskUnitDTO) {
91 102
         RiskUnit riskUnit = new RiskUnit();
92
-        BeanUtils.copyProperties(riskUnitDTO,riskUnit);
103
+        BeanUtils.copyProperties(riskUnitDTO, riskUnit);
93 104
         riskUnit.setUpdateDefault();
94 105
         return riskUnitMapper.updateById(riskUnit);
95 106
     }
96 107
 
97 108
     /**
98 109
      * 批量删除风险分析单元
99
-     * 
110
+     *
100 111
      * @param ids 需要删除的风险分析单元主键
101 112
      * @return 结果
102 113
      */
103 114
     @Override
104
-    public int deleteRiskUnitByIds(String[] ids)
105
-    {
115
+    public int deleteRiskUnitByIds(String[] ids) {
106 116
         RiskUnit riskUnit = new RiskUnit();
107 117
         riskUnit.setUpdateDefault();
108 118
         riskUnit.setIsDel(DeletedEnum.INVALID.getValue());
109 119
         QueryWrapper<RiskUnit> queryWrapper = new QueryWrapper<>();
110
-        queryWrapper.in("id",ids);
111
-        return riskUnitMapper.update(riskUnit,queryWrapper);
120
+        queryWrapper.in("id", ids);
121
+        return riskUnitMapper.update(riskUnit, queryWrapper);
112 122
     }
113 123
 
114 124
 

+ 75 - 2
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskInventoryRecordMapper.xml

@@ -9,8 +9,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
9 9
         <result property="checkTaskId"    column="check_task_id"    />
10 10
         <!--
11 11
         <result property="checkTaskInventoryId"    column="check_task_inventory_id"/>
12
-        -->
13 12
         <result property="checkStatus"    column="check_status"    />
13
+        -->
14 14
         <result property="remarkInfo"    column="remark_info"    />
15 15
         <result property="isDel"    column="is_del"    />
16 16
         <result property="createDate"    column="create_date"    />
@@ -124,12 +124,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
124 124
             tcti.end_date,
125 125
             tcti.status,
126 126
             tcti.remark_info,
127
+            tcti.check_user_id,
128
+            tcti.check_time,
129
+
127 130
             tcti.is_del,
128 131
             tcti.create_date,
129 132
             tcti.create_user_id,
130 133
             tcti.update_date,
131 134
             tcti.update_user_id,
132
-            tcti.company_code
135
+            tcti.company_code,
136
+            c_user.nick_name as checkUserNickName
133 137
         FROM tb_check_task_inventory_record tcti
134 138
         INNER JOIN tb_check_task tct on tct.id = tcti.check_task_id AND tct.is_del =0
135 139
         INNER JOIN tb_risk_measure trm on trm.id = tct.risk_measure_id AND trm.is_del =0
@@ -137,6 +141,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
137 141
         INNER join tb_risk_unit tru on tru.id = tre.risk_unit_id AND tru.is_del =0
138 142
         INNER join tb_hazard th ON th.id = tru.hazard_id AND th.is_del =0
139 143
         INNER join tb_sys_area tsa on tsa.id = th.area_id AND tsa.is_del =0
144
+        LEFT JOIN tb_app_login app_c_user ON app_c_user.id = tcti.check_user_id
145
+        LEFT JOIN sys_user c_user ON c_user.user_id = app_c_user.user_id
140 146
         where tcti.is_del = 0
141 147
         <if test="checkTaskId != null  and checkTaskId != ''">
142 148
             and tcti.check_task_id = #{checkTaskId}
@@ -178,12 +184,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
178 184
         <if test="startDateLt != null ">
179 185
             and tcti.start_date <![CDATA[<=]]> #{startDateLt}
180 186
         </if>
187
+
181 188
         <if test="endDateGt != null ">
182 189
             and tcti.end_date >= #{endDateGt}
183 190
         </if>
184 191
         <if test="endDateLt != null ">
185 192
             and tcti.end_date <![CDATA[<=]]> #{endDateLt}
186 193
         </if>
194
+
187 195
         <if test="areaId != null  and areaId != ''">
188 196
             AND tsa.id = #{areaId}
189 197
         </if>
@@ -291,6 +299,71 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
291 299
         GROUP BY th.id
292 300
     </select>
293 301
 
302
+    <select id="govSelectCheckTaskInventoryRecordList" parameterType="com.ruoyi.doubledefense.dtoGov.CheckTaskInventoryRecordDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.CheckTaskInventoryRecordDTOGov">
303
+        SELECT
304
+            <!--
305
+            trm.id 管控措施ID,
306
+            tct.troubleshoot_content 隐患排查内容,
307
+            tct.check_cycle 巡检周期,
308
+            tct.check_cycle_unit 巡检周期单位,
309
+            CASE
310
+                WHEN danger.check_task_inventory_record_id IS NULL THEN (
311
+                                                                            CASE tcti.status
312
+                                                                            WHEN 1 THEN '0正常'
313
+                                                                            WHEN 2 THEN '2未排查'
314
+                                                                            ELSE '3其他'
315
+                                                                            END
316
+                                                                        )
317
+                ELSE '1存在隐患'
318
+            END AS `status`,
319
+
320
+            INNER JOIN tb_risk_measure trm on trm.id = tct.risk_measure_id AND trm.is_del =0
321
+            INNER join tb_risk_event tre on tre.id = trm.risk_event_id AND tre.is_del =0
322
+            INNER join tb_risk_unit tru on tru.id = tre.risk_unit_id AND tru.is_del =0
323
+            INNER join tb_hazard th ON th.id = tru.hazard_id AND th.is_del =0
324
+            INNER join tb_sys_area tsa on tsa.id = th.area_id AND tsa.is_del =0
325
+
326
+            -->
327
+            tcti.id,
328
+            tct.id check_task_id,
329
+            tcti.check_time,
330
+            CASE
331
+                WHEN danger.check_task_inventory_record_id IS NULL THEN (
332
+                                                                            CASE tcti.status
333
+                                                                            WHEN 1 THEN 0
334
+                                                                            WHEN 2 THEN 2
335
+                                                                            ELSE 3
336
+                                                                            END
337
+                                                                        )
338
+                ELSE 1
339
+            END AS `status`,
340
+            check_user.nick_name,
341
+            IFNULL(c_user.phonenumber, '13888261766') createByMobile,
342
+            IFNULL(u_user.phonenumber, '13888261766') updateByMobile,
343
+            tcti.is_del,
344
+            tcti.create_date,
345
+            IFNULL(c_user.nick_name, '管理员') AS createBy,
346
+            tcti.update_date,
347
+            IFNULL(u_user.nick_name, '管理员') AS updateBy,
348
+            tcti.company_code AS companyCode
349
+        FROM tb_check_task_inventory_record tcti
350
+        INNER JOIN tb_check_task tct ON tct.id = tcti.check_task_id AND tct.is_del =0
351
+        LEFT JOIN sys_user c_user ON c_user.user_id = tct.create_user_id
352
+        LEFT JOIN sys_user u_user ON u_user.user_id = tcti.update_user_id
353
+        LEFT JOIN tb_app_login app_check_user ON app_check_user.id = tcti.check_user_id
354
+        LEFT JOIN sys_user check_user ON check_user.user_id = app_check_user.user_id
355
+        LEFT JOIN tb_danger danger ON danger.check_task_inventory_record_id = tcti.id
356
+        WHERE tcti.is_del = 0
357
+        AND tcti.end_date <![CDATA[ < ]]> DATE_ADD(NOW(), INTERVAL -1 HOUR)
358
+        <if test="startUpdateDate != null">
359
+            and tcti.update_date >= #{startUpdateDate}
360
+        </if>
361
+        <if test="endUpdateDate != null">
362
+            and tcti.update_date <![CDATA[<=]]> #{endUpdateDate}
363
+        </if>
364
+        GROUP BY tcti.id
365
+    </select>
366
+
294 367
 
295 368
     <insert id="insertCheckTaskInventoryRecord" parameterType="CheckTaskInventoryRecord">
296 369
         insert into tb_check_task_inventory_record

+ 37 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskMapper.xml

@@ -110,4 +110,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
110 110
         order by tct.create_date desc
111 111
     </select>
112 112
 
113
+    <select id="govSelectCheckTaskList" parameterType="com.ruoyi.doubledefense.dtoGov.CheckTaskDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.CheckTaskDTOGov">
114
+        SELECT
115
+           t1.id,
116
+           t1.risk_measure_id,
117
+           t1.troubleshoot_content,
118
+           t1.check_cycle,
119
+           t1.check_cycle_unit,
120
+
121
+           t1.is_del,
122
+
123
+           t1.create_date,
124
+           IFNULL(c_user.nick_name, '管理员') AS createBy,
125
+
126
+           t1.update_date,
127
+           IFNULL(u_user.nick_name, '管理员') AS updateBy,
128
+           t1.company_code AS companyCode
129
+        FROM tb_check_task t1
130
+
131
+        LEFT JOIN sys_user c_user ON c_user.user_id = t1.create_user_id
132
+
133
+        LEFT JOIN sys_user u_user ON u_user.user_id = t1.update_user_id
134
+
135
+        WHERE t1.is_del = 0
136
+        <!--
137
+        巡查方式:1-单位周期N次;2-时间段内1次;
138
+        金同步周期同步任务
139
+        -->
140
+        AND t1.check_type_count = 1
141
+        <if test="startUpdateDate != null">
142
+            and t1.update_date >= #{startUpdateDate}
143
+        </if>
144
+        <if test="endUpdateDate != null">
145
+            and t1.update_date <![CDATA[<=]]> #{endUpdateDate}
146
+        </if>
147
+        GROUP BY t1.id
148
+        ORDER BY t1.update_date
149
+    </select>
113 150
 </mapper>

+ 72 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/DangerMapper.xml

@@ -169,4 +169,76 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
169 169
         INNER JOIN tb_danger_manage t2 ON t2.danger_id = t1.id
170 170
         WHERE t1.is_del = 0
171 171
     </select>
172
+
173
+    <!--
174
+    重预防汇聚计算节点
175
+    查询隐患列表
176
+    -->
177
+    <select id="govSelectDangerList" parameterType="com.ruoyi.doubledefense.dtoGov.DangerDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.DangerDTOGov">
178
+        SELECT
179
+          hazard.hazard_code,
180
+          t1.risk_measure_id,
181
+          t1.check_task_inventory_record_id,
182
+
183
+          t1.id,
184
+          t1.danger_name,
185
+          t1.danger_level,
186
+          t1.regist_time,
187
+          c_user.nick_name as registRant,
188
+          t1.danger_src,
189
+          t1.danger_manage_type,
190
+          t1.hazard_danger_type,
191
+          t1.danger_desc,
192
+            <!-- t1. 原因分析, -->
193
+          risk_measure.risk_measure_desc,
194
+          t2.cost,
195
+          m_user.nick_name as liablePerson,
196
+          t2.danger_manage_deaddline,
197
+          check_user.nick_name as checkAcceptPerson,
198
+          t2.check_accept_time,
199
+          t2.check_accept_comment,
200
+          <!--
201
+            danger_status 隐患状态:10待审核,20认领中,30整改中,40待验收,50已验收,60取消
202
+            隐患状态(0-整改中:1-待验收:9-已验收)
203
+          -->
204
+         CASE t1.danger_status
205
+           WHEN 30 THEN 0
206
+           WHEN 40 THEN 1
207
+           WHEN 50 THEN 9
208
+           END
209
+           AS dangerState,
210
+
211
+         t1.is_del,
212
+         t1.create_date,
213
+         IFNULL(c_user.nick_name, '管理员') AS createBy,
214
+         t1.update_date,
215
+         IFNULL(u_user.nick_name, '管理员') AS updateBy,
216
+         t1.company_code AS companyCode
217
+       FROM tb_danger t1
218
+       INNER JOIN tb_danger_manage t2 ON t2.danger_id = t1.id
219
+
220
+       LEFT JOIN tb_hazard hazard ON hazard.id = t1.hazard_id
221
+
222
+       LEFT JOIN tb_risk_measure risk_measure ON risk_measure.id = t1.risk_measure_id
223
+
224
+       INNER JOIN sys_user m_user ON m_user.user_id = t2.manage_user_id
225
+
226
+       LEFT JOIN sys_user check_user ON check_user.user_id = t2.check_user_id
227
+
228
+       LEFT JOIN tb_risk_measure risk_m ON risk_m.id = t1.risk_measure_id
229
+
230
+       INNER JOIN sys_user c_user ON c_user.user_id = t1.create_user_id
231
+
232
+       LEFT JOIN sys_user u_user ON u_user.user_id = t1.update_user_id
233
+
234
+       WHERE t1.is_del = 0
235
+       AND t1.danger_status IN (30,40,50)
236
+        <if test="startUpdateDate != null">
237
+            and t1.update_date >= #{startUpdateDate}
238
+        </if>
239
+        <if test="endUpdateDate != null">
240
+            and t1.update_date <![CDATA[<=]]> #{endUpdateDate}
241
+        </if>
242
+       ORDER BY t1.create_date, t1.update_date
243
+   </select>
172 244
 </mapper>

+ 29 - 6
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/FourColorDiagramMapper.xml

@@ -3,7 +3,7 @@
3 3
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4 4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 5
 <mapper namespace="com.ruoyi.doubledefense.mapper.FourColorDiagramMapper">
6
-    
6
+
7 7
     <resultMap type="FourColorDiagram" id="FourColorDiagramResult">
8 8
         <result property="id"    column="id"    />
9 9
         <result property="colorCode"    column="color_code"    />
@@ -24,18 +24,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
24 24
 
25 25
     <select id="selectFourColorDiagramList" parameterType="FourColorDiagram" resultMap="FourColorDiagramResult">
26 26
         <include refid="selectFourColorDiagramVo"/>
27
-        <where>  
27
+        <where>
28 28
             <if test="colorCode != null  and colorCode != ''"> and color_code = #{colorCode}</if>
29 29
             <if test="colorName != null  and colorName != ''"> and color_name like concat('%', #{colorName}, '%')</if>
30 30
             <if test="remarkInfo != null  and remarkInfo != ''"> and remark_info like concat('%', #{remarkInfo}, '%')</if>
31 31
         </where>
32 32
     </select>
33
-    
33
+
34 34
     <select id="selectFourColorDiagramById" parameterType="String" resultMap="FourColorDiagramResult">
35 35
         <include refid="selectFourColorDiagramVo"/>
36 36
         where id = #{id}
37 37
     </select>
38
-        
38
+    <select id="govSelectFourColorDiagramList" parameterType="com.ruoyi.doubledefense.dtoGov.FourColorDiagramDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.FourColorDiagramDTOGov">
39
+        SELECT
40
+          t1.id,
41
+          t1.color_img,
42
+          t1.is_del,
43
+          t1.create_date,
44
+          IFNULL(c_user.nick_name, '管理员') AS createBy,
45
+          t1.update_date,
46
+          IFNULL(u_user.nick_name, '管理员') AS updateBy,
47
+          t1.company_code AS companyCode
48
+        FROM tb_four_color_diagram t1
49
+        LEFT JOIN sys_user c_user ON c_user.user_id = t1.create_user_id
50
+        LEFT JOIN sys_user u_user ON u_user.user_id = t1.update_user_id
51
+        WHERE t1.is_del = 0
52
+        <if test="startUpdateDate != null">
53
+            and t1.update_date >= #{startUpdateDate}
54
+        </if>
55
+        <if test="endUpdateDate != null">
56
+            and t1.update_date <![CDATA[<=]]> #{endUpdateDate}
57
+        </if>
58
+        GROUP BY t1.id
59
+        ORDER BY t1.create_date, t1.update_date
60
+    </select>
61
+
39 62
     <insert id="insertFourColorDiagram" parameterType="FourColorDiagram">
40 63
         insert into tb_four_color_diagram
41 64
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -88,9 +111,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
88 111
     </delete>
89 112
 
90 113
     <delete id="deleteFourColorDiagramByIds" parameterType="String">
91
-        delete from tb_four_color_diagram where id in 
114
+        delete from tb_four_color_diagram where id in
92 115
         <foreach item="id" collection="array" open="(" separator="," close=")">
93 116
             #{id}
94 117
         </foreach>
95 118
     </delete>
96
-</mapper>
119
+</mapper>

+ 31 - 2
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/RiskEventMapper.xml

@@ -3,7 +3,7 @@
3 3
 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4 4
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 5
 <mapper namespace="com.ruoyi.doubledefense.mapper.RiskEventMapper">
6
-    
6
+
7 7
     <resultMap type="RiskEvent" id="RiskEventResult">
8 8
         <result property="id"    column="id"    />
9 9
         <result property="riskUnitId"    column="risk_unit_id"    />
@@ -35,4 +35,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
35 35
         order by re.create_date desc
36 36
     </select>
37 37
 
38
-</mapper>
38
+
39
+    <select id="govSelectRiskEventList" parameterType="com.ruoyi.doubledefense.dtoGov.RiskEventDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.RiskEventDTOGov">
40
+        SELECT
41
+           t1.id,
42
+           t1.risk_unit_id,
43
+           t1.risk_event_name,
44
+
45
+           t1.is_del,
46
+
47
+           t1.create_date,
48
+           IFNULL(c_user.nick_name, '管理员') AS createBy,
49
+
50
+           t1.update_date,
51
+           IFNULL(u_user.nick_name, '管理员') AS updateBy,
52
+           t1.company_code AS companyCode
53
+        FROM tb_risk_event t1
54
+        LEFT JOIN sys_user c_user ON c_user.user_id = t1.create_user_id
55
+        LEFT JOIN sys_user u_user ON u_user.user_id = t1.update_user_id
56
+        WHERE t1.is_del = 0
57
+        <if test="startUpdateDate != null">
58
+            and t1.update_date >= #{startUpdateDate}
59
+        </if>
60
+        <if test="endUpdateDate != null">
61
+            and t1.update_date <![CDATA[<=]]> #{endUpdateDate}
62
+        </if>
63
+        GROUP BY t1.id
64
+        ORDER BY t1.update_date
65
+    </select>
66
+
67
+</mapper>

+ 35 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/RiskMeasureMapper.xml

@@ -44,4 +44,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
44 44
         order by trm.create_date desc
45 45
     </select>
46 46
 
47
+    <select id="govSelectRiskMeasureList" parameterType="com.ruoyi.doubledefense.dtoGov.RiskMeasureDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.RiskMeasureDTOGov">
48
+        SELECT
49
+           t1.id,
50
+           t1.risk_event_id,
51
+           t1.data_src,
52
+           t1.risk_measure_desc,
53
+           t1.classify1,
54
+           t1.classify2,
55
+           t1.troubleshoot_content,
56
+
57
+           t1.is_del,
58
+
59
+           t1.create_date,
60
+           IFNULL(c_user.nick_name, '管理员') AS createBy,
61
+
62
+           t1.update_date,
63
+           IFNULL(u_user.nick_name, '管理员') AS updateBy,
64
+           t1.company_code AS companyCode
65
+        FROM tb_risk_measure t1
66
+
67
+        LEFT JOIN sys_user c_user ON c_user.user_id = t1.create_user_id
68
+
69
+        LEFT JOIN sys_user u_user ON u_user.user_id = t1.update_user_id
70
+
71
+        WHERE t1.is_del = 0
72
+        <if test="startUpdateDate != null">
73
+            and t1.update_date >= #{startUpdateDate}
74
+        </if>
75
+        <if test="endUpdateDate != null">
76
+            and t1.update_date <![CDATA[<=]]> #{endUpdateDate}
77
+        </if>
78
+        GROUP BY t1.id
79
+        ORDER BY t1.update_date
80
+    </select>
81
+
47 82
 </mapper>

+ 42 - 14
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/RiskUnitMapper.xml

@@ -43,19 +43,47 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
43 43
         order by ru.create_date desc
44 44
     </select>
45 45
 
46
-    <!--
47
-    <select id="selectRiskUnitByAreaIdAndPostId" resultType="com.ruoyi.doubledefense.dto.res.RiskUnitListForApp">
48
-        select tru.id,tru.risk_unit_name ,count(trm.id) checkTaskCount
49
-        from tb_hazard th
50
-         left join tb_sys_area tsa on th.area_id = tsa.id
51
-         left join tb_risk_unit tru on th.id = tru.hazard_id
52
-         left join tb_risk_event tre on tre.risk_unit_id = tru.id
53
-         left join tb_risk_measure trm on trm.risk_event_id = tre.id
54
-         left join tb_check_task tct on trm.id = tct.risk_measure_id
55
-         left join tb_check_task_inventory tcti on tcti.check_task_id = tct.id
56
-        where exists(select 1 from tb_check_task_post_relation tctpr  where tctpr.check_task_id = tct.id and tctpr.post_id=#{postId})
57
-          and th.is_del=0 and tru.is_del=0 and tre.is_del=0 and trm.is_del = 0 and tct.is_del = 0 and th.area_id = #{areaId}
58
-        group by trm.id
46
+
47
+
48
+    <select id="govSelectRiskUnitList" parameterType="com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov">
49
+        SELECT
50
+            <!--
51
+            h.hazard_name 管控对象,
52
+            ru.hazard_id,
53
+            ru.remark_info 分析单元备注,
54
+            t3.area_name 区域,
55
+            -->
56
+                h.hazard_code,
57
+
58
+                ru.id,
59
+                ru.risk_unit_name,
60
+                t4.post_name,
61
+                GROUP_CONCAT(t6.nick_name) AS hazardLiablePerson,
62
+
63
+                ru.is_del,
64
+
65
+                ru.create_date,
66
+                IFNULL(c_user.nick_name, '管理员') AS createBy,
67
+
68
+                ru.update_date,
69
+                IFNULL(u_user.nick_name, '管理员') AS updateBy,
70
+                ru.company_code as companyCode
71
+            FROM tb_risk_unit ru
72
+            INNER JOIN tb_hazard h ON ru.hazard_id = h.id AND h.is_del = 0
73
+            INNER JOIN tb_sys_area t3 ON h.area_id =  t3.id
74
+            INNER JOIN sys_post t4 ON t4.post_id = t3.post_id
75
+            INNER JOIN sys_user_post t5 ON t5.post_id = t4.post_id
76
+            INNER JOIN sys_user t6 ON t6.user_id = t5.user_id
77
+            LEFT JOIN sys_user c_user ON c_user.user_id = ru.create_user_id
78
+            LEFT JOIN sys_user u_user ON u_user.user_id = ru.update_user_id
79
+            WHERE ru.is_del = 0
80
+            <if test="startUpdateDate != null">
81
+                and ru.update_date >= #{startUpdateDate}
82
+            </if>
83
+            <if test="endUpdateDate != null">
84
+                and ru.update_date <![CDATA[<=]]> #{endUpdateDate}
85
+            </if>
86
+            GROUP BY ru.id
87
+            ORDER BY ru.update_date
59 88
     </select>
60
-    -->
61 89
 </mapper>