Преглед изворни кода

1、PC巡检打卡列表
2、PC菜单权限-风险分级管控
3、政府数数字化对接优化

csg6 пре 1 година
родитељ
комит
f1b37e521b
36 измењених фајлова са 390 додато и 225 уклоњено
  1. 33 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/CheckTaskInventory.java
  2. 11 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/CheckTaskInventoryRecord.java
  3. 60 22
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/Danger.java
  4. 19 0
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dto/DangerDTO.java
  5. 9 8
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/CheckTaskInventoryRecordMapper.java
  6. 8 8
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/CheckTaskMapper.java
  7. 9 9
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/DangerMapper.java
  8. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/FourColorDiagramMapper.java
  9. 8 8
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskEventMapper.java
  10. 7 7
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskMeasureMapper.java
  11. 10 7
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/mapper/RiskUnitMapper.java
  12. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/ICheckTaskInventoryRecordService.java
  13. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/ICheckTaskService.java
  14. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IDangerService.java
  15. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IFourColorDiagramService.java
  16. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskEventService.java
  17. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskMeasureService.java
  18. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/IRiskUnitService.java
  19. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/CheckTaskInventoryRecordServiceImpl.java
  20. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/CheckTaskServiceImpl.java
  21. 31 34
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/DangerServiceImpl.java
  22. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/FourColorDiagramServiceImpl.java
  23. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskEventServiceImpl.java
  24. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskMeasureServiceImpl.java
  25. 1 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/service/impl/RiskUnitServiceImpl.java
  26. 3 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskInventoryMapper.xml
  27. 3 1
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskInventoryRecordMapper.xml
  28. 4 2
      RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/DangerMapper.xml
  29. 54 0
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/app/controller/doubleDefense/HazardForAppController.java
  30. 13 10
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/BasicSafetyCategoryController.java
  31. 2 18
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/BasicSafetyDocumentController.java
  32. 4 4
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/HazardController.java
  33. 14 21
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/RiskEventController.java
  34. 6 6
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/RiskMeasureController.java
  35. 10 10
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/RiskUnitController.java
  36. 58 34
      RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/GovSyncTask.java

+ 33 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/CheckTaskInventory.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 org.apache.commons.lang3.builder.ToStringBuilder;
@@ -69,21 +70,25 @@ public class CheckTaskInventory extends GnhzBaseEntity {
69 70
     //    @Excel(name = "开始时间查询条件大于等于")
70 71
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
71 72
     @TableField(exist = false)
73
+    @JsonIgnore
72 74
     private Date startDateGt;
73 75
 
74 76
     //    @ApiModelProperty("开始时间查询条件小于等于")
75 77
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
76 78
     @TableField(exist = false)
79
+    @JsonIgnore
77 80
     private Date startDateLt;
78 81
 
79 82
     //    @ApiModelProperty("结束时间查询条件大于等于")
80 83
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
81 84
     @TableField(exist = false)
85
+    @JsonIgnore
82 86
     private Date endDateGt;
83 87
 
84 88
     //    @ApiModelProperty("结束时间查询条件小于等于")
85 89
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
86 90
     @TableField(exist = false)
91
+    @JsonIgnore
87 92
     private Date endDateLt;
88 93
 
89 94
     /**
@@ -99,9 +104,36 @@ public class CheckTaskInventory extends GnhzBaseEntity {
99 104
      * 岗位ID集合(排查措施关联的岗位)
100 105
      */
101 106
     @TableField(exist = false)
102
-    List<Long> postIdList;
107
+    private List<Long> postIdList;
103 108
 
104 109
 
110
+    /**
111
+     * 风险分析对象ID
112
+     */
113
+    @TableField(exist = false)
114
+    private String hazardId;
115
+    /**
116
+     * 管控措施ID
117
+     */
118
+    @TableField(exist = false)
119
+    private String riskMeasureId;
120
+
121
+    public String getHazardId() {
122
+        return hazardId;
123
+    }
124
+
125
+    public void setHazardId(String hazardId) {
126
+        this.hazardId = hazardId;
127
+    }
128
+
129
+    public String getRiskMeasureId() {
130
+        return riskMeasureId;
131
+    }
132
+
133
+    public void setRiskMeasureId(String riskMeasureId) {
134
+        this.riskMeasureId = riskMeasureId;
135
+    }
136
+
105 137
     public Long getCheckUserId() {
106 138
         return checkUserId;
107 139
     }

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

@@ -101,4 +101,15 @@ public class CheckTaskInventoryRecord extends GnhzBaseEntity {
101 101
     @TableField(exist = false)
102 102
     @JsonIgnore
103 103
     private Date endDateLt;
104
+
105
+    /**
106
+     * 风险分析对象ID
107
+     */
108
+    @TableField(exist = false)
109
+    private String hazardId;
110
+    /**
111
+     * 管控措施ID
112
+     */
113
+    @TableField(exist = false)
114
+    private String riskMeasureId;
104 115
 }

+ 60 - 22
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/domain/Danger.java

@@ -4,6 +4,7 @@ import java.io.Serializable;
4 4
 import java.util.Date;
5 5
 
6 6
 import com.baomidou.mybatisplus.annotation.IdType;
7
+import com.baomidou.mybatisplus.annotation.TableField;
7 8
 import com.baomidou.mybatisplus.annotation.TableId;
8 9
 import com.baomidou.mybatisplus.annotation.TableName;
9 10
 import com.fasterxml.jackson.annotation.JsonFormat;
@@ -23,67 +24,94 @@ import com.ruoyi.common.core.domain.BaseEntity;
23 24
  */
24 25
 @TableName("tb_danger")
25 26
 @Data
26
-public class Danger extends GnhzBaseEntity
27
-{
27
+public class Danger extends GnhzBaseEntity {
28 28
     private static final long serialVersionUID = 1L;
29 29
 
30
-    /** 主键UUID */
30
+    /**
31
+     * 主键UUID
32
+     */
31 33
     @TableId(type = IdType.INPUT)
32 34
     private String id;
33 35
 
34 36
 
35
-    /** 隐患编号(后台自动生成) */
37
+    /**
38
+     * 隐患编号(后台自动生成)
39
+     */
36 40
     @ApiModelProperty("隐患编号(后台自动生成)")
37 41
     @Excel(name = "隐患编号")
38 42
     private String dangerNo;
39 43
 
40 44
 
41
-    /** 设备UUID */
45
+    /**
46
+     * 设备UUID
47
+     */
42 48
     @Excel(name = "设备UUID")
43 49
     private String deviceId;
44 50
 
45
-    /** 排查记录ID */
51
+    /**
52
+     * 排查记录ID
53
+     */
46 54
     @Excel(name = "排查记录ID")
47 55
     private String checkRecordId;
48 56
 
49
-    /** 隐患名称 */
57
+    /**
58
+     * 隐患名称
59
+     */
50 60
     @Excel(name = "隐患名称")
51 61
     private String dangerName;
52 62
 
53
-    /** 隐患描述 */
63
+    /**
64
+     * 隐患描述
65
+     */
54 66
     @Excel(name = "隐患描述")
55 67
     private String dangerDesc;
56 68
 
57
-    /** 隐患等级:0一般隐患,1重大隐患 */
69
+    /**
70
+     * 隐患等级:0一般隐患,1重大隐患
71
+     */
58 72
     @Excel(name = "隐患等级:0一般隐患,1重大隐患")
59 73
     private Long dangerLevel;
60 74
 
61
-    /** 登记时间 */
75
+    /**
76
+     * 登记时间
77
+     */
62 78
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
63 79
     @Excel(name = "登记时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
64 80
     private Date registTime;
65 81
 
66
-    /** 所属区域ID */
82
+    /**
83
+     * 所属区域ID
84
+     */
67 85
     @Excel(name = "所属区域ID")
68 86
     private Long areaId;
69 87
 
70
-    /** 隐患图片,多张以逗号分割 */
88
+    /**
89
+     * 隐患图片,多张以逗号分割
90
+     */
71 91
     @Excel(name = "隐患图片,多张以逗号分割")
72 92
     private String dangerImage;
73 93
 
74
-    /** 隐患来源:1日常排查,2综合排查,3专业性排查,4季节性排查,5重点时段及节假日前排查,6事故类比排查,7复产复工前排查,8外聘专家诊断式排查,9管控措施失效,10其它 */
94
+    /**
95
+     * 隐患来源:1日常排查,2综合排查,3专业性排查,4季节性排查,5重点时段及节假日前排查,6事故类比排查,7复产复工前排查,8外聘专家诊断式排查,9管控措施失效,10其它
96
+     */
75 97
     @Excel(name = "隐患来源:1日常排查,2综合排查,3专业性排查,4季节性排查,5重点时段及节假日前排查,6事故类比排查,7复产复工前排查,8外聘专家诊断式排查,9管控措施失效,10其它")
76 98
     private String dangerSrc;
77 99
 
78
-    /** 隐患类型:1安全,2工艺,3电气,4仪表,5消防,6总图,7设备,8其它 */
100
+    /**
101
+     * 隐患类型:1安全,2工艺,3电气,4仪表,5消防,6总图,7设备,8其它
102
+     */
79 103
     @Excel(name = "隐患类型:1安全,2工艺,3电气,4仪表,5消防,6总图,7设备,8其它")
80 104
     private String hazardDangerType;
81 105
 
82
-    /** 治理类型:0即查即改,1限期整改 */
106
+    /**
107
+     * 治理类型:0即查即改,1限期整改
108
+     */
83 109
     @Excel(name = "治理类型:0即查即改,1限期整改")
84 110
     private Long dangerManageType;
85 111
 
86
-    /** 隐患状态:隐患状态:10审核中,20认领中,30整改中,40待验收,50已验收,60取消 */
112
+    /**
113
+     * 隐患状态:隐患状态:10审核中,20认领中,30整改中,40待验收,50已验收,60取消
114
+     */
87 115
     @Excel(name = "隐患状态:隐患状态:10审核中,20认领中,30整改中,40待验收,50已验收,60取消", readConverterExp = "即=查即改")
88 116
     private Integer dangerStatus;
89 117
 
@@ -96,12 +124,22 @@ public class Danger extends GnhzBaseEntity
96 124
     @Excel(name = "驳回人用户名")
97 125
     private String rejectUserName;
98 126
 
99
-    /** 备注 */
127
+    /**
128
+     * 备注
129
+     */
100 130
     @Excel(name = "备注")
101 131
     private String remarkInfo;
102
-
103
-
104
-
105
-
106
-
132
+    /**
133
+     * 风险分析对象ID
134
+     */
135
+    private String hazardId;
136
+    /**
137
+     * 管控措施ID
138
+     */
139
+    private String riskMeasureId;
140
+
141
+    /**
142
+     * (选填->巡检上报时需要设置值)隐患排查记录ID
143
+     */
144
+    private String checkTaskInventoryRecordId;
107 145
 }

+ 19 - 0
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/java/com/ruoyi/doubledefense/dto/DangerDTO.java

@@ -180,4 +180,23 @@ public class DangerDTO extends GnhzBaseEntity
180 180
     @ApiModelProperty("筛选发现时间-结束时间")
181 181
     private Date registEndTime;
182 182
 
183
+    /**
184
+     * 风险分析对象ID
185
+     */
186
+    private String hazardId;
187
+    /**
188
+     * 风险分析对象名称
189
+     */
190
+    private String hazardName;
191
+    /**
192
+     * 管控措施ID
193
+     */
194
+    private String riskMeasureId;
195
+
196
+    /**
197
+     * (选填->巡检上报时需要设置值)隐患排查记录ID
198
+     */
199
+    private String checkTaskInventoryRecordId;
200
+
201
+
183 202
 }

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

@@ -22,6 +22,14 @@ import org.apache.ibatis.annotations.Param;
22 22
  */
23 23
 public interface CheckTaskInventoryRecordMapper extends BaseMapper<CheckTaskInventoryRecord> {
24 24
     /**
25
+     * 双重预防汇聚计算节点
26
+     * 查询巡检打卡记录
27
+     *
28
+     * @param checkTaskInventoryRecordDTOGov
29
+     * @return
30
+     */
31
+    List<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList(CheckTaskInventoryRecordDTOGov checkTaskInventoryRecordDTOGov);
32
+    /**
25 33
      * 查询巡查记录
26 34
      *
27 35
      * @param id 巡查记录主键
@@ -126,12 +134,5 @@ public interface CheckTaskInventoryRecordMapper extends BaseMapper<CheckTaskInve
126 134
      * @return
127 135
      */
128 136
     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);
137
+
137 138
 }

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

@@ -20,6 +20,14 @@ public interface CheckTaskMapper extends BaseMapper<CheckTask>
20 20
 {
21 21
 
22 22
     /**
23
+     * 双重预防汇聚计算节点
24
+     * 查询隐患排查要求
25
+     *
26
+     * @param checkTaskDTOGov
27
+     * @return
28
+     */
29
+    List<CheckTaskDTOGov> govSelectCheckTaskList(CheckTaskDTOGov checkTaskDTOGov);
30
+    /**
23 31
      * 查询隐患排查任务列表
24 32
      *
25 33
      * @param checkTask 隐患排查任务
@@ -27,12 +35,4 @@ public interface CheckTaskMapper extends BaseMapper<CheckTask>
27 35
      */
28 36
     public List<CheckTaskResultDTO> selectCheckTaskList(CheckTaskDTO checkTask);
29 37
 
30
-    /**
31
-     * 重预防汇聚计算节点
32
-     * 查询隐患排查要求
33
-     *
34
-     * @param checkTaskDTOGov
35
-     * @return
36
-     */
37
-    List<CheckTaskDTOGov> govSelectCheckTaskList(CheckTaskDTOGov checkTaskDTOGov);
38 38
 }

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

@@ -21,7 +21,14 @@ import org.apache.ibatis.annotations.Param;
21 21
  * @date 2023-08-03
22 22
  */
23 23
 public interface DangerMapper extends BaseMapper<Danger> {
24
-
24
+    /**
25
+     * 双重预防汇聚计算节点
26
+     * 查询隐患列表
27
+     *
28
+     * @param dangerDTOGov
29
+     * @return
30
+     */
31
+    List<DangerDTOGov> govSelectDangerList(DangerDTOGov dangerDTOGov);
25 32
 
26 33
     /**
27 34
      * 查询隐患信息列表
@@ -53,12 +60,5 @@ public interface DangerMapper extends BaseMapper<Danger> {
53 60
      * @return
54 61
      */
55 62
     List<DangerResultDTO> pcHomePageDangerList(DangerDTO danger);
56
-    /**
57
-     * 重预防汇聚计算节点
58
-     * 查询隐患列表
59
-     *
60
-     * @param dangerDTOGov
61
-     * @return
62
-     */
63
-    List<DangerDTOGov> govSelectDangerList(DangerDTOGov dangerDTOGov);
63
+
64 64
 }

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

@@ -14,7 +14,7 @@ import com.ruoyi.doubledefense.dtoGov.FourColorDiagramDTOGov;
14 14
 public interface FourColorDiagramMapper {
15 15
     /**
16 16
      * 四色图
17
-     * 重预防汇聚计算节点
17
+     * 重预防汇聚计算节点
18 18
      *
19 19
      * @param fourColorDiagramDTOGov
20 20
      * @return

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

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

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

@@ -18,6 +18,13 @@ import com.ruoyi.doubledefense.dtoGov.RiskMeasureDTOGov;
18 18
 public interface RiskMeasureMapper extends BaseMapper<RiskMeasure> {
19 19
 
20 20
     /**
21
+     * 管控措施
22
+     * 双重预防汇聚计算节点
23
+     * @param riskMeasureDTOGov
24
+     * @return
25
+     */
26
+    List<RiskMeasureDTOGov> govSelectRiskMeasureList(RiskMeasureDTOGov riskMeasureDTOGov);
27
+    /**
21 28
      * 查询风险管控措施列表
22 29
      *
23 30
      * @param riskMeasure 风险管控措施
@@ -25,12 +32,5 @@ public interface RiskMeasureMapper extends BaseMapper<RiskMeasure> {
25 32
      */
26 33
     public List<RiskMeasureResultDTO> selectRiskMeasureList(RiskMeasureDTO riskMeasure);
27 34
 
28
-    /**
29
-     * 管控措施
30
-     * 重预防汇聚计算节点
31
-     * @param riskMeasureDTOGov
32
-     * @return
33
-     */
34
-    List<RiskMeasureDTOGov> govSelectRiskMeasureList(RiskMeasureDTOGov riskMeasureDTOGov);
35 35
 
36 36
 }

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

@@ -15,20 +15,23 @@ import com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov;
15 15
  * @author ruoyi
16 16
  * @date 2023-08-03
17 17
  */
18
-public interface RiskUnitMapper extends BaseMapper<RiskUnit>
19
-{
18
+public interface RiskUnitMapper extends BaseMapper<RiskUnit> {
19
+
20 20
     /**
21
-     * 查询分析单元列表
21
+     * 双重预防汇聚计算节点
22
+     * 查询风险分析单元
23
+     *
22 24
      * @param riskUnit
23 25
      * @return
24 26
      */
25
-    List<RiskUnitResultDTO> selectRiskUnitList(RiskUnitDTO riskUnit);
27
+    List<RiskUnitDTOGov> govSelectRiskUnitList(RiskUnitDTOGov riskUnit);
26 28
 
27 29
     /**
28
-     * 重预防汇聚计算节点
29
-     * 查询风险分析单元
30
+     * 查询分析单元列表
31
+     *
30 32
      * @param riskUnit
31 33
      * @return
32 34
      */
33
-    List<RiskUnitDTOGov> govSelectRiskUnitList(RiskUnitDTOGov riskUnit);
35
+    List<RiskUnitResultDTO> selectRiskUnitList(RiskUnitDTO riskUnit);
36
+
34 37
 }

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

@@ -20,7 +20,7 @@ import com.ruoyi.doubledefense.dtoGov.CheckTaskInventoryRecordDTOGov;
20 20
  */
21 21
 public interface ICheckTaskInventoryRecordService extends IService<CheckTaskInventoryRecord> {
22 22
     /**
23
-     * 重预防汇聚计算节点
23
+     * 重预防汇聚计算节点
24 24
      * 查询巡检打卡记录
25 25
      * @param checkTaskInventoryRecordDTOGov
26 26
      * @return

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

@@ -16,7 +16,7 @@ import com.ruoyi.doubledefense.dtoGov.CheckTaskDTOGov;
16 16
  */
17 17
 public interface ICheckTaskService {
18 18
     /**
19
-     * 重预防汇聚计算节点
19
+     * 重预防汇聚计算节点
20 20
      * 查询隐患排查要求
21 21
      *
22 22
      * @param checkTaskDTOGov

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

@@ -21,7 +21,7 @@ import org.springframework.transaction.annotation.Transactional;
21 21
  */
22 22
 public interface IDangerService {
23 23
     /**
24
-     * 重预防汇聚计算节点
24
+     * 重预防汇聚计算节点
25 25
      * 查询隐患列表
26 26
      *
27 27
      * @param dangerDTOGov

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

@@ -16,7 +16,7 @@ public interface IFourColorDiagramService {
16 16
 
17 17
     /**
18 18
      * 四色图
19
-     * 重预防汇聚计算节点
19
+     * 重预防汇聚计算节点
20 20
      *
21 21
      * @param fourColorDiagramDTOGov
22 22
      * @return

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

@@ -18,7 +18,7 @@ public interface IRiskEventService
18 18
 {
19 19
 
20 20
     /**
21
-     * 重预防汇聚计算节点
21
+     * 重预防汇聚计算节点
22 22
      * 查询风险事件
23 23
      * @param riskEvent
24 24
      * @return

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

@@ -18,7 +18,7 @@ public interface IRiskMeasureService {
18 18
 
19 19
     /**
20 20
      * 管控措施
21
-     * 重预防汇聚计算节点
21
+     * 重预防汇聚计算节点
22 22
      * @param riskMeasureDTOGov
23 23
      * @return
24 24
      */

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

@@ -17,7 +17,7 @@ import com.ruoyi.doubledefense.dtoGov.RiskUnitDTOGov;
17 17
 public interface IRiskUnitService
18 18
 {
19 19
     /**
20
-     * 重预防汇聚计算节点
20
+     * 重预防汇聚计算节点
21 21
      * 查询风险分析单元
22 22
      * @param riskUnit
23 23
      * @return

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

@@ -30,7 +30,7 @@ public class CheckTaskInventoryRecordServiceImpl extends ServiceImpl<CheckTaskIn
30 30
     private CheckTaskInventoryRecordMapper checkTaskInventoryRecordMapper;
31 31
 
32 32
     /**
33
-     * 重预防汇聚计算节点
33
+     * 重预防汇聚计算节点
34 34
      * 查询巡检打卡记录
35 35
      *
36 36
      * @param checkTaskInventoryRecordDTOGov

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

@@ -33,7 +33,7 @@ public class CheckTaskServiceImpl implements ICheckTaskService {
33 33
     private CheckTaskMapper checkTaskMapper;
34 34
 
35 35
     /**
36
-     * 重预防汇聚计算节点
36
+     * 重预防汇聚计算节点
37 37
      * 查询隐患排查要求
38 38
      *
39 39
      * @param checkTaskDTOGov

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

@@ -77,7 +77,7 @@ public class DangerServiceImpl implements IDangerService {
77 77
     private TbSysAreaMapper tbSysAreaMapper;
78 78
 
79 79
     /**
80
-     * 重预防汇聚计算节点
80
+     * 重预防汇聚计算节点
81 81
      * 查询隐患列表
82 82
      *
83 83
      * @param dangerDTOGov
@@ -85,7 +85,7 @@ public class DangerServiceImpl implements IDangerService {
85 85
      */
86 86
     @Override
87 87
     public PageInfo<DangerDTOGov> govSelectDangerList(DangerDTOGov dangerDTOGov) {
88
-        PageHelper.startPage(dangerDTOGov.getPageNo(),dangerDTOGov.getPageSize());
88
+        PageHelper.startPage(dangerDTOGov.getPageNo(), dangerDTOGov.getPageSize());
89 89
         List<DangerDTOGov> dangerDTOGovList = dangerMapper.govSelectDangerList(dangerDTOGov);
90 90
         PageInfo<DangerDTOGov> pageInfo = new PageInfo<>(dangerDTOGovList);
91 91
         return pageInfo;
@@ -182,15 +182,12 @@ public class DangerServiceImpl implements IDangerService {
182 182
      */
183 183
     @Override
184 184
     public List<DangerResultDTO> selectDangerList(DangerDTO danger) {
185
-        //TODO 待发布:开发环境时才生效,线上环境依旧显示全部数据
186
-        HttpServletRequest request = ServletUtils.getRequest();
187
-        String localAddr = request.getLocalAddr();
188
-        if (localAddr.startsWith("192.168.3.")) {
189
-            //需要查看的人:
190
-            //如果领导角色就查看全部
191
-            //上报人:创建人
192
-            //区域负责人
193
-            //整改负责人:审核完成以后才可以查看
185
+
186
+        //需要查看的人:
187
+        //如果领导角色就查看全部
188
+        //上报人:创建人
189
+        //区域负责人
190
+        //整改负责人:审核完成以后才可以查看
194 191
        /* LoginUser loginUser = null;
195 192
         try {
196 193
             loginUser = SecurityUtils.getLoginUser();
@@ -203,36 +200,36 @@ public class DangerServiceImpl implements IDangerService {
203 200
 //        1、上报人:创建人
204 201
 //        2、区域负责人
205 202
 //        3、整改负责人:审核完成以后才可以查看(待审核和取消的状态不让查看)
206
-            String requestToken = JWTUtil.getRequestToken();
203
+        String requestToken = JWTUtil.getRequestToken();
207 204
 
208
-            String appUserType = null;
209
-            try {
210
-                appUserType = JWTUtil.getAppUserType();
211
-            } catch (Exception e) {
205
+        String appUserType = null;
206
+        try {
207
+            appUserType = JWTUtil.getAppUserType();
208
+        } catch (Exception e) {
212 209
 
210
+        }
211
+        //承包商不让查看,直接返回空集合
212
+        if (appUserType != null && AppUserTypeEnum.CONTRACTOR.getValue() == Integer.parseInt(appUserType)) {
213
+            return new ArrayList<>();
214
+        }
215
+        // APP请求时
216
+        else if (StringUtils.isNotBlank(requestToken)) {
217
+            boolean leader = JWTUtil.isLeader();
218
+            String pcUserId = JWTUtil.getPCUserId();
219
+            //APP登录人员的岗位集合
220
+            List<Long> postIdList = JWTUtil.getPostIdList();
221
+            // 非领导角色不能查看全部,需要筛选
222
+            if (!leader) {
223
+                danger.setDataUserId(Long.parseLong(pcUserId));
224
+                danger.setPostIdList(postIdList);
213 225
             }
214
-            //承包商不让查看,直接返回空集合
215
-            if (appUserType != null && AppUserTypeEnum.CONTRACTOR.getValue() == Integer.parseInt(appUserType)) {
216
-                return new ArrayList<>();
217
-            }
218
-            // APP请求时
219
-            else if (StringUtils.isNotBlank(requestToken)) {
220
-                boolean leader = JWTUtil.isLeader();
221
-                String pcUserId = JWTUtil.getPCUserId();
222
-                //APP登录人员的岗位集合
223
-                List<Long> postIdList = JWTUtil.getPostIdList();
224
-                // 非领导角色不能查看全部,需要筛选
225
-                if (!leader) {
226
-                    danger.setDataUserId(Long.parseLong(pcUserId));
227
-                    danger.setPostIdList(postIdList);
228
-                }
229
-            }
230
-            //WEB请求
226
+        }
227
+        //WEB请求
231 228
 //        else if (loginUser != null) {
232 229
 //            Long userId = SecurityUtils.getUserId();
233 230
 //            String username = SecurityUtils.getUsername();
234 231
 //        }
235
-        }
232
+//        }
236 233
 
237 234
         return dangerMapper.selectDangerList(danger);
238 235
     }

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

@@ -26,7 +26,7 @@ public class FourColorDiagramServiceImpl implements IFourColorDiagramService {
26 26
 
27 27
     /**
28 28
      * 四色图
29
-     * 重预防汇聚计算节点
29
+     * 重预防汇聚计算节点
30 30
      *
31 31
      * @param fourColorDiagramDTOGov
32 32
      * @return

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

@@ -33,7 +33,7 @@ public class RiskEventServiceImpl implements IRiskEventService
33 33
     private RiskEventMapper riskEventMapper;
34 34
 
35 35
     /**
36
-     * 重预防汇聚计算节点
36
+     * 重预防汇聚计算节点
37 37
      * 查询风险事件
38 38
      *
39 39
      * @param riskEvent

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

@@ -34,7 +34,7 @@ public class RiskMeasureServiceImpl implements IRiskMeasureService {
34 34
 
35 35
     /**
36 36
      * 管控措施
37
-     * 重预防汇聚计算节点
37
+     * 重预防汇聚计算节点
38 38
      *
39 39
      * @param riskMeasureDTOGov
40 40
      * @return

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

@@ -31,7 +31,7 @@ public class RiskUnitServiceImpl implements IRiskUnitService {
31 31
 
32 32
 
33 33
     /**
34
-     * 重预防汇聚计算节点
34
+     * 重预防汇聚计算节点
35 35
      * 查询风险分析单元
36 36
      *
37 37
      * @param riskUnit

+ 3 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskInventoryMapper.xml

@@ -125,7 +125,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
125 125
             tcti.start_date,
126 126
             tcti.end_date,
127 127
             tcti.status,
128
-            tsa.id as areaId
128
+            tsa.id as areaId,
129
+            th.id AS hazard_id,
130
+            trm.id AS risk_measure_id
129 131
         FROM tb_hazard th
130 132
         LEFT JOIN tb_sys_area tsa ON th.area_id = tsa.id AND tsa.is_del = 0
131 133
         LEFT JOIN tb_risk_unit tru ON th.id = tru.hazard_id AND tru.is_del = 0

+ 3 - 1
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/CheckTaskInventoryRecordMapper.xml

@@ -93,7 +93,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
93 93
             tcti.start_date,
94 94
             tcti.end_date,
95 95
             tcti.status,
96
-            tsa.id as areaId
96
+            tsa.id as areaId,
97
+            th.id AS hazard_id,
98
+            trm.id AS risk_measure_id
97 99
         FROM tb_hazard th
98 100
         LEFT JOIN tb_sys_area tsa ON th.area_id = tsa.id AND tsa.is_del = 0
99 101
         LEFT JOIN tb_risk_unit tru ON th.id = tru.hazard_id AND tru.is_del = 0

+ 4 - 2
RuoYi-Vue-master/RuoYi-Vue-master/doubleDefense/src/main/resources/mapper/doubledefense/DangerMapper.xml

@@ -51,13 +51,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
51 51
 
52 52
             sd.dept_name ,
53 53
 
54
-            sum.nick_name as manageUserName
54
+            sum.nick_name as manageUserName,
55
+            th.hazard_name
55 56
         from tb_danger td
56 57
         left join sys_user su on td.create_user_id = su.user_id
57 58
         left join tb_danger_manage tdm on td.id = tdm.danger_id
58 59
         left join sys_dept sd on tdm.dept_id = sd.dept_id
59 60
         left join sys_user sum on tdm.manage_user_id = sum.user_id
60 61
         left join tb_sys_area tsa on tsa.id = td.area_id
62
+        LEFT JOIN tb_hazard th ON th.id = td.hazard_id
61 63
         where td.is_del = 0
62 64
         <if test="dangerName != null  and dangerName != ''"> and td.danger_name like concat('%', #{dangerName}, '%')</if>
63 65
         <if test="dangerDesc != null  and dangerDesc != ''"> and td.danger_desc like concat('%',  #{dangerDesc}, '%')</if>
@@ -171,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
171 173
     </select>
172 174
 
173 175
     <!--
174
-    重预防汇聚计算节点
176
+    重预防汇聚计算节点
175 177
     查询隐患列表
176 178
     -->
177 179
     <select id="govSelectDangerList" parameterType="com.ruoyi.doubledefense.dtoGov.DangerDTOGov" resultType="com.ruoyi.doubledefense.dtoGov.DangerDTOGov">

+ 54 - 0
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/app/controller/doubleDefense/HazardForAppController.java

@@ -0,0 +1,54 @@
1
+package com.ruoyi.app.controller.doubleDefense;
2
+
3
+import com.ruoyi.common.annotation.Log;
4
+import com.ruoyi.common.core.controller.BaseController;
5
+import com.ruoyi.common.core.domain.AjaxResult;
6
+import com.ruoyi.common.core.domain.entity.SysUser;
7
+import com.ruoyi.common.core.page.TableDataInfo;
8
+import com.ruoyi.common.enums.BusinessType;
9
+import com.ruoyi.common.utils.poi.ExcelUtil;
10
+import com.ruoyi.doubledefense.dto.HazardDTO;
11
+import com.ruoyi.doubledefense.dto.res.HazardResultDTO;
12
+import com.ruoyi.doubledefense.service.IHazardService;
13
+import io.swagger.annotations.Api;
14
+import io.swagger.annotations.ApiImplicitParam;
15
+import io.swagger.annotations.ApiImplicitParams;
16
+import io.swagger.annotations.ApiOperation;
17
+import org.springframework.beans.factory.annotation.Autowired;
18
+import org.springframework.web.bind.annotation.*;
19
+
20
+import javax.servlet.http.HttpServletResponse;
21
+import java.util.ArrayList;
22
+import java.util.List;
23
+
24
+/**
25
+ * 风险分析对象Controller
26
+ *
27
+ * @author ruoyi
28
+ * @date 2023-08-03
29
+ */
30
+@Api(tags = "APP风险分析对象")
31
+@RestController
32
+@RequestMapping("/app/doubledefense/hazard")
33
+public class HazardForAppController extends BaseController {
34
+    @Autowired
35
+    private IHazardService hazardService;
36
+
37
+    /**
38
+     * APP查询风险分析对象列表
39
+     * 参数:Long areaId 区域ID
40
+     * 返回值:
41
+     * id:主键
42
+     * hazardName:名称
43
+     */
44
+    @ApiOperation("APP查询风险分析对象列表")
45
+    @GetMapping("/list")
46
+    public AjaxResult list(HazardDTO hazard) {
47
+        Long areaId = hazard.getAreaId();
48
+        if (areaId == null) {
49
+            return success(new ArrayList<>());
50
+        }
51
+        List<HazardResultDTO> list = hazardService.selectHazardList(hazard);
52
+        return success(list);
53
+    }
54
+}

+ 13 - 10
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/BasicSafetyCategoryController.java

@@ -38,6 +38,14 @@ public class BasicSafetyCategoryController extends BaseController
38 38
     @Autowired
39 39
     private IBasicSafetyCategoryService basicSafetyCategoryService;
40 40
 
41
+    @Anonymous
42
+    @ApiOperation("获取分类树")
43
+    @GetMapping(value = "getCategoryTree/{parentId}")
44
+    //TODO 20230920PreAuthorize("@ss.hasPermi('system:category:getCategoryTree')")
45
+    public AjaxResult getCategoryTree(@PathVariable("parentId") String parentId)
46
+    {
47
+        return success(basicSafetyCategoryService.getCategoryTree(parentId));
48
+    }
41 49
     /**
42 50
      * 查询【安全基础文档分类】列表
43 51
      */
@@ -78,11 +86,12 @@ public class BasicSafetyCategoryController extends BaseController
78 86
     /**
79 87
      * 编辑【安全基础文档分类】
80 88
      */
81
-//    //TODO 20230920PreAuthorize("@ss.hasPermi('system:category:add')")
89
+    //TODO 20230920PreAuthorize("@ss.hasPermi('system:category:add')")
82 90
     @Log(title = "【安全基础文档分类】", businessType = BusinessType.INSERT)
83 91
     @ApiOperation("编辑安全基础文档分类")
84 92
     @PostMapping("add")
85 93
     @Anonymous
94
+    @PreAuthorize("@ss.hasPermi('system:category:add')")
86 95
     public AjaxResult add(@RequestBody BasicSafetyCategory basicSafetyCategory)
87 96
     {
88 97
         return toAjax(basicSafetyCategoryService.saveOrUpdate(basicSafetyCategory));
@@ -92,22 +101,16 @@ public class BasicSafetyCategoryController extends BaseController
92 101
     /**
93 102
      * 删除【安全基础文档分类】
94 103
      */
95
-//    //TODO 20230920PreAuthorize("@ss.hasPermi('system:category:remove')")
104
+    //TODO 20230920PreAuthorize("@ss.hasPermi('system:category:remove')")
96 105
     @Log(title = "【安全基础文档分类】", businessType = BusinessType.DELETE)
97 106
 	@DeleteMapping("/{ids}")
107
+    @PreAuthorize("@ss.hasPermi('system:category:remove')")
98 108
     public AjaxResult remove(@PathVariable String[] ids)
99 109
     {
100 110
         return toAjax(basicSafetyCategoryService.deleteBasicSafetyCategoryByIds(ids));
101 111
     }
102 112
 
103
-//    //TODO 20230920PreAuthorize("@ss.hasPermi('system:category:getCategoryTree')")
104
-    @Anonymous
105
-    @ApiOperation("获取分类树")
106
-    @GetMapping(value = "getCategoryTree/{parentId}")
107
-    public AjaxResult getCategoryTree(@PathVariable("parentId") String parentId)
108
-    {
109
-        return success(basicSafetyCategoryService.getCategoryTree(parentId));
110
-    }
113
+
111 114
 
112 115
 
113 116
 

+ 2 - 18
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/BasicSafetyDocumentController.java

@@ -13,29 +13,13 @@ import com.ruoyi.doubledefense.service.IBasicSafetyDocumentService;
13 13
 import org.springframework.beans.factory.annotation.Autowired;
14 14
 import org.springframework.beans.factory.annotation.Value;
15 15
 import org.springframework.security.access.prepost.PreAuthorize;
16
-import org.springframework.web.bind.annotation.DeleteMapping;
17
-import org.springframework.web.bind.annotation.GetMapping;
18
-import org.springframework.web.bind.annotation.PathVariable;
19
-import org.springframework.web.bind.annotation.PostMapping;
20
-import org.springframework.web.bind.annotation.PutMapping;
21
-import org.springframework.web.bind.annotation.RequestBody;
22
-import org.springframework.web.bind.annotation.RequestMapping;
23
-import org.springframework.web.bind.annotation.RestController;
16
+import org.springframework.web.bind.annotation.*;
24 17
 
25 18
 import java.io.File;
26 19
 import java.util.Arrays;
27 20
 import java.util.List;
28 21
 import java.util.regex.Matcher;
29 22
 
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39 23
 /**
40 24
  * 【请填写功能名称】Controller
41 25
  *
@@ -55,9 +39,9 @@ public class BasicSafetyDocumentController extends BaseController
55 39
     /**
56 40
      * 查询【请填写功能名称】列表
57 41
      */
58
-//    //TODO 20230920PreAuthorize("@("@ss.hasPermi('system:document:list')")
59 42
     @GetMapping("/list")
60 43
     @Anonymous
44
+    //TODO 20230920PreAuthorize("@ss.hasPermi('system:document:list')")
61 45
     public TableDataInfo list(BasicSafetyDocument basicSafetyDocument)
62 46
     {
63 47
         startPage();

+ 4 - 4
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/HazardController.java

@@ -38,8 +38,8 @@ public class HazardController extends BaseController {
38 38
      * 查询风险分析对象列表
39 39
      */
40 40
     @ApiOperation("查询风险分析对象列表")
41
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:hazard:list')")
42 41
     @GetMapping("/list")
42
+    @PreAuthorize("@ss.hasPermi('doubledefense:hazard:list')")
43 43
     public TableDataInfo list(HazardDTO hazard) {
44 44
         startPage();
45 45
         List<HazardResultDTO> list = hazardService.selectHazardList(hazard);
@@ -80,9 +80,9 @@ public class HazardController extends BaseController {
80 80
             @ApiImplicitParam(name = "hazardLevel", value = "风险等级:1低,2一般,3较大,4重大", dataType = "Long", dataTypeClass = Long.class),
81 81
             @ApiImplicitParam(name = "areaId", value = "所属区域ID", dataType = "Long", dataTypeClass = Long.class)
82 82
     })
83
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:hazard:add')")
84 83
     @Log(title = "风险分析对象", businessType = BusinessType.INSERT)
85 84
     @PostMapping
85
+    @PreAuthorize("@ss.hasPermi('doubledefense:hazard:add')")
86 86
     public AjaxResult add(@RequestBody HazardDTO hazard) {
87 87
         SysUser sysUser = getLoginUser().getUser();
88 88
         hazard.setCreateUserId(sysUser.getUserId());
@@ -104,9 +104,9 @@ public class HazardController extends BaseController {
104 104
             @ApiImplicitParam(name = "level", value = "风险等级:1低,2一般,3较大,4重大", dataType = "Long", dataTypeClass = Long.class),
105 105
             @ApiImplicitParam(name = "areaId", value = "所属区域ID", dataType = "Long", dataTypeClass = Long.class)
106 106
     })
107
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:hazard:edit')")
108 107
     @Log(title = "风险分析对象", businessType = BusinessType.UPDATE)
109 108
     @PutMapping
109
+    @PreAuthorize("@ss.hasPermi('doubledefense:hazard:edit')")
110 110
     public AjaxResult edit(@RequestBody HazardDTO hazard) {
111 111
         SysUser sysUser = getLoginUser().getUser();
112 112
         hazard.setUpdateUserId(sysUser.getUserId());
@@ -121,9 +121,9 @@ public class HazardController extends BaseController {
121 121
      */
122 122
     @ApiOperation("删除风险分析对象")
123 123
     @ApiImplicitParam(name = "ids", value = "分析对象ID集合", required = true, dataType = "List", paramType = "path", dataTypeClass = List.class)
124
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:hazard:remove')")
125 124
     @Log(title = "风险分析对象", businessType = BusinessType.DELETE)
126 125
     @DeleteMapping("/{ids}")
126
+    @PreAuthorize("@ss.hasPermi('doubledefense:hazard:remove')")
127 127
     public AjaxResult remove(@PathVariable String[] ids) {
128 128
         return toAjax(hazardService.deleteHazardByIds(ids));
129 129
     }

+ 14 - 21
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/RiskEventController.java

@@ -37,8 +37,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
37 37
 @Api(tags = "风险事件")
38 38
 @RestController
39 39
 @RequestMapping("/doubledefense/event")
40
-public class RiskEventController extends BaseController
41
-{
40
+public class RiskEventController extends BaseController {
42 41
     @Autowired
43 42
     private IRiskEventService riskEventService;
44 43
 
@@ -46,10 +45,9 @@ public class RiskEventController extends BaseController
46 45
      * 查询风险事件列表
47 46
      */
48 47
     @ApiOperation("查询风险分析对象列表")
49
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:event:list')")
50 48
     @GetMapping("/list")
51
-    public TableDataInfo list(RiskEventDTO riskEvent)
52
-    {
49
+    @PreAuthorize("@ss.hasPermi('doubledefense:event:list')")
50
+    public TableDataInfo list(RiskEventDTO riskEvent) {
53 51
         startPage();
54 52
         List<RiskEventResultDTO> list = riskEventService.selectRiskEventList(riskEvent);
55 53
         return getDataTable(list);
@@ -59,11 +57,10 @@ public class RiskEventController extends BaseController
59 57
      * 导出风险事件列表
60 58
      */
61 59
     @ApiOperation("导出风险事件列表")
62
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:event:export')")
63 60
     @Log(title = "风险事件", businessType = BusinessType.EXPORT)
64 61
     @PostMapping("/export")
65
-    public void export(HttpServletResponse response, RiskEventDTO riskEvent)
66
-    {
62
+    @PreAuthorize("@ss.hasPermi('doubledefense:event:export')")
63
+    public void export(HttpServletResponse response, RiskEventDTO riskEvent) {
67 64
         List<RiskEventResultDTO> list = riskEventService.selectRiskEventList(riskEvent);
68 65
         ExcelUtil<RiskEventResultDTO> util = new ExcelUtil<RiskEventResultDTO>(RiskEventResultDTO.class);
69 66
         util.exportExcel(response, list, "风险事件数据");
@@ -73,10 +70,9 @@ public class RiskEventController extends BaseController
73 70
      * 获取风险事件详细信息
74 71
      */
75 72
     @ApiOperation("获取风险事件详细信息")
76
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:event:query')")
77 73
     @GetMapping(value = "/{id}")
78
-    public AjaxResult getInfo(@PathVariable("id") String id)
79
-    {
74
+    @PreAuthorize("@ss.hasPermi('doubledefense:event:query')")
75
+    public AjaxResult getInfo(@PathVariable("id") String id) {
80 76
         return success(riskEventService.selectRiskEventById(id));
81 77
     }
82 78
 
@@ -89,11 +85,10 @@ public class RiskEventController extends BaseController
89 85
             @ApiImplicitParam(name = "riskUnitId", value = "所属风险单元UUID", dataType = "String", dataTypeClass = String.class),
90 86
             @ApiImplicitParam(name = "riskEventContent", value = "风险事件内容", dataType = "String", dataTypeClass = String.class)
91 87
     })
92
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:event:add')")
93 88
     @Log(title = "风险事件", businessType = BusinessType.INSERT)
94 89
     @PostMapping
95
-    public AjaxResult add(@RequestBody RiskEventDTO riskEvent)
96
-    {
90
+    @PreAuthorize("@ss.hasPermi('doubledefense:event:add')")
91
+    public AjaxResult add(@RequestBody RiskEventDTO riskEvent) {
97 92
         return toAjax(riskEventService.insertRiskEvent(riskEvent));
98 93
     }
99 94
 
@@ -107,11 +102,10 @@ public class RiskEventController extends BaseController
107 102
             @ApiImplicitParam(name = "riskUnitId", value = "所属风险单元UUID", dataType = "String", dataTypeClass = String.class),
108 103
             @ApiImplicitParam(name = "riskEventContent", value = "风险事件内容", dataType = "String", dataTypeClass = String.class)
109 104
     })
110
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:event:edit')")
111 105
     @Log(title = "风险事件", businessType = BusinessType.UPDATE)
112 106
     @PutMapping
113
-    public AjaxResult edit(@RequestBody RiskEventDTO riskEvent)
114
-    {
107
+    @PreAuthorize("@ss.hasPermi('doubledefense:event:edit')")
108
+    public AjaxResult edit(@RequestBody RiskEventDTO riskEvent) {
115 109
         return toAjax(riskEventService.updateRiskEvent(riskEvent));
116 110
     }
117 111
 
@@ -119,11 +113,10 @@ public class RiskEventController extends BaseController
119 113
      * 删除风险事件
120 114
      */
121 115
     @ApiOperation("删除风险事件")
122
-    //TODO 20230920PreAuthorize("@ss.hasPermi('doubledefense:event:remove')")
123 116
     @Log(title = "风险事件", businessType = BusinessType.DELETE)
124
-	@DeleteMapping("/{ids}")
125
-    public AjaxResult remove(@PathVariable String[] ids)
126
-    {
117
+    @DeleteMapping("/{ids}")
118
+    @PreAuthorize("@ss.hasPermi('doubledefense:event:remove')")
119
+    public AjaxResult remove(@PathVariable String[] ids) {
127 120
         return toAjax(riskEventService.deleteRiskEventByIds(ids));
128 121
     }
129 122
 }

+ 6 - 6
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/RiskMeasureController.java

@@ -46,7 +46,7 @@ public class RiskMeasureController extends BaseController
46 46
      * 查询风险管控措施列表
47 47
      */
48 48
     @ApiOperation("查询风险管控措施列表")
49
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:measure:list')")
49
+    @PreAuthorize("@ss.hasPermi('doubledefense:measure:list')")
50 50
     @GetMapping("/list")
51 51
     public TableDataInfo list(RiskMeasureDTO riskMeasure)
52 52
     {
@@ -59,7 +59,7 @@ public class RiskMeasureController extends BaseController
59 59
      * 导出风险管控措施列表
60 60
      */
61 61
     @ApiOperation("风险管控措施导出")
62
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:measure:export')")
62
+    @PreAuthorize("@ss.hasPermi('doubledefense:measure:export')")
63 63
     @Log(title = "风险管控措施", businessType = BusinessType.EXPORT)
64 64
     @PostMapping("/export")
65 65
     public void export(HttpServletResponse response, RiskMeasureDTO riskMeasure)
@@ -74,7 +74,7 @@ public class RiskMeasureController extends BaseController
74 74
      */
75 75
     @ApiOperation("获取风险管控措施详细信息")
76 76
     @ApiImplicitParam(name = "id", value = "管控措施ID", required = true, dataType = "String", paramType = "path", dataTypeClass = String.class)
77
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:measure:query')")
77
+    @PreAuthorize("@ss.hasPermi('doubledefense:measure:query')")
78 78
     @GetMapping(value = "/{id}")
79 79
     public AjaxResult getInfo(@PathVariable("id") String id)
80 80
     {
@@ -94,7 +94,7 @@ public class RiskMeasureController extends BaseController
94 94
             @ApiImplicitParam(name = "item", value = "管控项", dataType = "String", dataTypeClass = String.class),
95 95
             @ApiImplicitParam(name = "troubleshootContent", value = "隐患排查内容", dataType = "String", dataTypeClass = String.class),
96 96
     })
97
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:measure:add')")
97
+    @PreAuthorize("@ss.hasPermi('doubledefense:measure:add')")
98 98
     @Log(title = "风险管控措施", businessType = BusinessType.INSERT)
99 99
     @PostMapping
100 100
     public AjaxResult add(@RequestBody RiskMeasureDTO riskMeasure)
@@ -116,7 +116,7 @@ public class RiskMeasureController extends BaseController
116 116
             @ApiImplicitParam(name = "item", value = "管控项", dataType = "String", dataTypeClass = String.class),
117 117
             @ApiImplicitParam(name = "troubleshootContent", value = "隐患排查内容", dataType = "String", dataTypeClass = String.class),
118 118
     })
119
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:measure:edit')")
119
+    @PreAuthorize("@ss.hasPermi('doubledefense:measure:edit')")
120 120
     @Log(title = "风险管控措施", businessType = BusinessType.UPDATE)
121 121
     @PutMapping
122 122
     public AjaxResult edit(@RequestBody RiskMeasureDTO riskMeasure)
@@ -129,7 +129,7 @@ public class RiskMeasureController extends BaseController
129 129
      */
130 130
     @ApiOperation("删除风险管控措施")
131 131
     @ApiImplicitParam(name = "ids", value = "管控措施ID集合", required = true, dataType = "List", paramType = "path", dataTypeClass = List.class)
132
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:measure:remove')")
132
+    @PreAuthorize("@ss.hasPermi('doubledefense:measure:remove')")
133 133
     @Log(title = "风险管控措施", businessType = BusinessType.DELETE)
134 134
 	@DeleteMapping("/{ids}")
135 135
     public AjaxResult remove(@PathVariable String[] ids)

+ 10 - 10
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-admin/src/main/java/com/ruoyi/web/controller/doubleDefense/RiskUnitController.java

@@ -58,8 +58,8 @@ public class RiskUnitController extends BaseController {
58 58
      * 查询风险分析单元列表
59 59
      */
60 60
     @ApiOperation("查询风险分析单元列表")
61
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:unit:list')")
62 61
     @GetMapping("/list")
62
+    @PreAuthorize("@ss.hasPermi('doubledefense:unit:list')")
63 63
     public TableDataInfo list(RiskUnitDTO riskUnit) {
64 64
         startPage();
65 65
         List<RiskUnitResultDTO> list = riskUnitService.selectRiskUnitList(riskUnit);
@@ -70,9 +70,9 @@ public class RiskUnitController extends BaseController {
70 70
      * 导出风险分析单元列表
71 71
      */
72 72
     @ApiOperation("导出风险分析单元列表")
73
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:unit:export')")
74 73
     @Log(title = "风险分析单元", businessType = BusinessType.EXPORT)
75 74
     @PostMapping("/export")
75
+    @PreAuthorize("@ss.hasPermi('doubledefense:unit:export')")
76 76
     public void export(HttpServletResponse response, RiskUnitDTO riskUnit) {
77 77
         List<RiskUnitResultDTO> list = riskUnitService.selectRiskUnitList(riskUnit);
78 78
         ExcelUtil<RiskUnitResultDTO> util = new ExcelUtil<RiskUnitResultDTO>(RiskUnitResultDTO.class);
@@ -84,9 +84,10 @@ public class RiskUnitController extends BaseController {
84 84
      */
85 85
     @ApiOperation("获取分析单元详细信息")
86 86
     @ApiImplicitParam(name = "id", value = "分析单元ID", required = true, dataType = "String", paramType = "path", dataTypeClass = String.class)
87
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:unit:query')")
88 87
     @GetMapping(value = "/{id}")
88
+    @PreAuthorize("@ss.hasPermi('doubledefense:unit:query')")
89 89
     public AjaxResult getInfo(@PathVariable("id") String id) {
90
+        /*
90 91
 
91 92
         Map<String, Object> dataMap = new HashMap<>();
92 93
 //        List<Object> dataList = new ArrayList<>();
@@ -179,11 +180,9 @@ public class RiskUnitController extends BaseController {
179 180
         dangerDTOGov.setPageSize(10);
180 181
         PageInfo<DangerDTOGov> govSelectDangerList = dangerService.govSelectDangerList(dangerDTOGov);
181 182
         dataMap.put("7、隐患排查信息->隐患列表(APP和PC都可以添加隐患)", govSelectDangerList);
182
-
183
-
184 183
         return success(dataMap);
185
-
186
-//        return success(riskUnitService.selectRiskUnitById(id));
184
+*/
185
+        return success(riskUnitService.selectRiskUnitById(id));
187 186
     }
188 187
 
189 188
     /**
@@ -194,9 +193,9 @@ public class RiskUnitController extends BaseController {
194 193
             @ApiImplicitParam(name = "hazardId", value = "风险分析对象ID", dataType = "String", dataTypeClass = String.class),
195 194
             @ApiImplicitParam(name = "riskUnitName", value = "风险分析单元名称", dataType = "String", dataTypeClass = String.class),
196 195
     })
197
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:unit:add')")
198 196
     @Log(title = "风险分析单元", businessType = BusinessType.INSERT)
199 197
     @PostMapping
198
+    @PreAuthorize("@ss.hasPermi('doubledefense:unit:add')")
200 199
     public AjaxResult add(@RequestBody RiskUnitDTO riskUnit) {
201 200
         return toAjax(riskUnitService.insertRiskUnit(riskUnit));
202 201
     }
@@ -209,9 +208,10 @@ public class RiskUnitController extends BaseController {
209 208
             @ApiImplicitParam(name = "id", value = "风险分析单元ID", dataType = "String", dataTypeClass = String.class),
210 209
             @ApiImplicitParam(name = "hazardId", value = "风险分析对象ID", dataType = "String", dataTypeClass = String.class),
211 210
             @ApiImplicitParam(name = "riskUnitName", value = "风险分析单元名称", dataType = "String", dataTypeClass = String.class),
212
-    })//TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:unit:edit')")
211
+    })
213 212
     @Log(title = "风险分析单元", businessType = BusinessType.UPDATE)
214 213
     @PutMapping
214
+    @PreAuthorize("@ss.hasPermi('doubledefense:unit:edit')")
215 215
     public AjaxResult edit(@RequestBody RiskUnitDTO riskUnit) {
216 216
         return toAjax(riskUnitService.updateRiskUnit(riskUnit));
217 217
     }
@@ -220,7 +220,7 @@ public class RiskUnitController extends BaseController {
220 220
      * 删除风险分析单元
221 221
      */
222 222
     @ApiOperation("删除分析单元")
223
-    //TODO 20230920PreAuthorize("@("@ss.hasPermi('doubledefense:unit:remove')")
223
+    @PreAuthorize("@ss.hasPermi('doubledefense:unit:remove')")
224 224
     @Log(title = "风险分析单元", businessType = BusinessType.DELETE)
225 225
     @DeleteMapping("/{ids}")
226 226
     public AjaxResult remove(@PathVariable String[] ids) {

+ 58 - 34
RuoYi-Vue-master/RuoYi-Vue-master/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/GovSyncTask.java

@@ -33,8 +33,8 @@ import java.util.*;
33 33
 import java.util.stream.Collectors;
34 34
 
35 35
 /**
36
- * 定时同步:重预防汇聚计算节点
37
- * 预计是往“重预防汇聚计算节点”推送数据
36
+ * 定时同步:重预防汇聚计算节点
37
+ * 预计是往“重预防汇聚计算节点”推送数据
38 38
  *
39 39
  * @author ruoyi
40 40
  */
@@ -44,13 +44,19 @@ public class GovSyncTask {
44 44
     @Autowired
45 45
     private InvokingService invokingService;
46 46
 
47
+    //TODO 同步周期为1天/次,定时任务是每天的凌晨1点执行,同步前一天的数据:开始时间设置为->昨天的00:00:00,结束时间设置为->昨天的23:59:59;
48
+    private Date startUpdateDate = null;
49
+    private Date endUpdateDate = null;
50
+
47 51
     /**
48 52
      * 定时清理巡检任务清单
49 53
      * 定时检查漏检任务清单
50 54
      * <p>
51 55
      */
52 56
     public void sync() {
53
-        log.info("【重预防汇聚计算节点同步定时器】推送数据开始:{}", DateUtils.getTime());
57
+        log.info("【双重预防汇聚计算节点同步定时器】推送数据开始:{}", DateUtils.getTime());
58
+        startUpdateDate = DateUtils.getLastDay(-1, 0, 0, 0, 0);//昨天的00:00:00
59
+        endUpdateDate = DateUtils.getLastDay(-1, 23, 59, 59, 999);//结束时间设置为->昨天的23:59:59;
54 60
 
55 61
         //1、查询字典表配置的URL
56 62
         SysDictData dictData = new SysDictData();
@@ -79,18 +85,21 @@ public class GovSyncTask {
79 85
                 govSelectDangerList(url);//7、隐患排查信息->隐患列表(APP和PC都可以添加隐患)
80 86
             }
81 87
         }
82
-        log.info("【重预防汇聚计算节点同步定时器】推送数据结束:{}", DateUtils.getTime());
88
+        log.info("【重预防汇聚计算节点同步定时器】推送数据结束:{}", DateUtils.getTime());
83 89
     }
84 90
 
85 91
     /**
86 92
      * 1、企业安全风险空间分布接口->四色图
87 93
      */
88 94
     private void govSelectFourColorDiagramList(String url) {
95
+        FourColorDiagramDTOGov syncParam = new FourColorDiagramDTOGov();
96
+        syncParam.setPageNo(1);
97
+        syncParam.setPageSize(20);//一个企业做多上传20张
98
+        syncParam.setStartUpdateDate(startUpdateDate);
99
+        syncParam.setEndUpdateDate(endUpdateDate);
100
+
89 101
         IFourColorDiagramService fourColorDiagramService = SpringUtils.getBean(FourColorDiagramServiceImpl.class);
90
-        FourColorDiagramDTOGov fourColorDiagramDTOGov = new FourColorDiagramDTOGov();
91
-        fourColorDiagramDTOGov.setPageNo(1);
92
-        fourColorDiagramDTOGov.setPageSize(20);//一个企业做多上传20张
93
-        PageInfo<FourColorDiagramDTOGov> govSelectFourColorDiagramList = fourColorDiagramService.govSelectFourColorDiagramList(fourColorDiagramDTOGov);
102
+        PageInfo<FourColorDiagramDTOGov> govSelectFourColorDiagramList = fourColorDiagramService.govSelectFourColorDiagramList(syncParam);
94 103
         List<FourColorDiagramDTOGov> fourColorDiagramDTOGovList = govSelectFourColorDiagramList.getList();
95 104
         Iterator<FourColorDiagramDTOGov> fourColorDiagramDTOGovIterator = fourColorDiagramDTOGovList.iterator();
96 105
         while (fourColorDiagramDTOGovIterator.hasNext()) {
@@ -135,11 +144,14 @@ public class GovSyncTask {
135 144
      * 2、分析单元
136 145
      */
137 146
     private void govSelectRiskUnitList(String url) {
147
+        RiskUnitDTOGov syncParam = new RiskUnitDTOGov();
148
+        syncParam.setPageNo(1);
149
+        syncParam.setPageSize(10);
150
+        syncParam.setStartUpdateDate(startUpdateDate);
151
+        syncParam.setEndUpdateDate(endUpdateDate);
152
+
138 153
         IRiskUnitService riskUnitService = SpringUtils.getBean(RiskUnitServiceImpl.class);
139
-        RiskUnitDTOGov ristUnit = new RiskUnitDTOGov();
140
-        ristUnit.setPageNo(1);
141
-        ristUnit.setPageSize(10);
142
-        PageInfo<RiskUnitDTOGov> govSelectRiskUnitList = riskUnitService.govSelectRiskUnitList(ristUnit);
154
+        PageInfo<RiskUnitDTOGov> govSelectRiskUnitList = riskUnitService.govSelectRiskUnitList(syncParam);
143 155
 //        List<RiskUnitDTOGov> list = govSelectRiskUnitList.getList();
144 156
 //        for (RiskUnitDTOGov data : list) {
145 157
 //            System.out.println();
@@ -166,11 +178,14 @@ public class GovSyncTask {
166 178
      * 3、风险事件
167 179
      */
168 180
     private void govSelectRiskEventList(String url) {
181
+        RiskEventDTOGov syncParam = new RiskEventDTOGov();
182
+        syncParam.setPageNo(1);
183
+        syncParam.setPageSize(10);
184
+        syncParam.setStartUpdateDate(startUpdateDate);
185
+        syncParam.setEndUpdateDate(endUpdateDate);
186
+
169 187
         IRiskEventService riskEventService = SpringUtils.getBean(RiskEventServiceImpl.class);
170
-        RiskEventDTOGov riskEvent = new RiskEventDTOGov();
171
-        riskEvent.setPageNo(1);
172
-        riskEvent.setPageSize(10);
173
-        PageInfo<RiskEventDTOGov> govSelectRiskEventList = riskEventService.govSelectRiskEventList(riskEvent);
188
+        PageInfo<RiskEventDTOGov> govSelectRiskEventList = riskEventService.govSelectRiskEventList(syncParam);
174 189
         System.out.println("3、测试风险事件:" + JSON.toJSONString(govSelectRiskEventList));
175 190
 
176 191
         //TODO 发送HTTP请求,推送数据到数字化平台
@@ -189,13 +204,14 @@ public class GovSyncTask {
189 204
      * 4、安全风险管控措施
190 205
      */
191 206
     private void govSelectRiskMeasureList(String url) {
192
-
207
+        RiskMeasureDTOGov syncParam = new RiskMeasureDTOGov();
208
+        syncParam.setPageNo(1);
209
+        syncParam.setPageSize(10);
210
+        syncParam.setStartUpdateDate(startUpdateDate);
211
+        syncParam.setEndUpdateDate(endUpdateDate);
193 212
 
194 213
         IRiskMeasureService riskMeasureService = SpringUtils.getBean(RiskMeasureServiceImpl.class);
195
-        RiskMeasureDTOGov riskMeasureDTOGov = new RiskMeasureDTOGov();
196
-        riskMeasureDTOGov.setPageNo(1);
197
-        riskMeasureDTOGov.setPageSize(10);
198
-        PageInfo<RiskMeasureDTOGov> govSelectRiskMeasureList = riskMeasureService.govSelectRiskMeasureList(riskMeasureDTOGov);
214
+        PageInfo<RiskMeasureDTOGov> govSelectRiskMeasureList = riskMeasureService.govSelectRiskMeasureList(syncParam);
199 215
 
200 216
         System.out.println(":" + JSON.toJSONString(govSelectRiskMeasureList));
201 217
 
@@ -215,12 +231,14 @@ public class GovSyncTask {
215 231
      * 5、隐患排查任务 -> 隐患排查要求
216 232
      */
217 233
     private void govSelectCheckTaskList(String url) {
218
-        //
234
+        CheckTaskDTOGov syncParam = new CheckTaskDTOGov();
235
+        syncParam.setPageNo(1);
236
+        syncParam.setPageSize(10);
237
+        syncParam.setStartUpdateDate(startUpdateDate);
238
+        syncParam.setEndUpdateDate(endUpdateDate);
239
+
219 240
         ICheckTaskService checkTaskService = SpringUtils.getBean(CheckTaskServiceImpl.class);
220
-        CheckTaskDTOGov checkTaskDTOGov = new CheckTaskDTOGov();
221
-        checkTaskDTOGov.setPageNo(1);
222
-        checkTaskDTOGov.setPageSize(10);
223
-        PageInfo<CheckTaskDTOGov> govSelectCheckTaskList = checkTaskService.govSelectCheckTaskList(checkTaskDTOGov);
241
+        PageInfo<CheckTaskDTOGov> govSelectCheckTaskList = checkTaskService.govSelectCheckTaskList(syncParam);
224 242
 
225 243
         System.out.println("5、隐患排查任务 -> 隐患排查要求:" + JSON.toJSONString(govSelectCheckTaskList));
226 244
 
@@ -240,11 +258,14 @@ public class GovSyncTask {
240 258
      * 6、隐患排查记录 -> 巡检记录
241 259
      */
242 260
     private void govSelectCheckTaskInventoryRecordList(String url) {
261
+        CheckTaskInventoryRecordDTOGov syncParam = new CheckTaskInventoryRecordDTOGov();
262
+        syncParam.setPageNo(1);
263
+        syncParam.setPageSize(20);
264
+        syncParam.setStartUpdateDate(startUpdateDate);
265
+        syncParam.setEndUpdateDate(endUpdateDate);
266
+
243 267
         ICheckTaskInventoryRecordService checkTaskInventoryRecordService = SpringUtils.getBean(CheckTaskInventoryRecordServiceImpl.class);
244
-        CheckTaskInventoryRecordDTOGov checkTaskInventoryRecordDTOGov = new CheckTaskInventoryRecordDTOGov();
245
-        checkTaskInventoryRecordDTOGov.setPageNo(1);
246
-        checkTaskInventoryRecordDTOGov.setPageSize(20);
247
-        PageInfo<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList = checkTaskInventoryRecordService.govSelectCheckTaskInventoryRecordList(checkTaskInventoryRecordDTOGov);
268
+        PageInfo<CheckTaskInventoryRecordDTOGov> govSelectCheckTaskInventoryRecordList = checkTaskInventoryRecordService.govSelectCheckTaskInventoryRecordList(syncParam);
248 269
 
249 270
         System.out.println("6、隐患排查记录 -> 巡检记录:" + JSON.toJSONString(govSelectCheckTaskInventoryRecordList));
250 271
 
@@ -265,11 +286,14 @@ public class GovSyncTask {
265 286
      */
266 287
     private void govSelectDangerList(String url) {
267 288
         //
289
+        DangerDTOGov syncParam = new DangerDTOGov();
290
+        syncParam.setPageNo(1);
291
+        syncParam.setPageSize(10);
292
+        syncParam.setStartUpdateDate(startUpdateDate);
293
+        syncParam.setEndUpdateDate(endUpdateDate);
294
+
268 295
         IDangerService dangerService = SpringUtils.getBean(DangerServiceImpl.class);
269
-        DangerDTOGov dangerDTOGov = new DangerDTOGov();
270
-        dangerDTOGov.setPageNo(1);
271
-        dangerDTOGov.setPageSize(10);
272
-        PageInfo<DangerDTOGov> govSelectDangerList = dangerService.govSelectDangerList(dangerDTOGov);
296
+        PageInfo<DangerDTOGov> govSelectDangerList = dangerService.govSelectDangerList(syncParam);
273 297
 
274 298
         System.out.println("7、隐患排查信息->隐患列表(APP和PC都可以添加隐患):" + JSON.toJSONString(govSelectDangerList));
275 299