2 Achegas 1a16ae56aa ... 51f80aeb49

Autor SHA1 Mensaxe Data
  chenshudong 51f80aeb49 漏检统计表-格式化 hai 1 día
  chenshudong d70621febc 漏检统计大屏-模块三 hai 1 día

+ 14 - 25
airport-admin/src/main/java/com/sundot/airport/web/controller/blocked/BlockedMissCheckStatisticsController.java

@@ -2,6 +2,7 @@ package com.sundot.airport.web.controller.blocked;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
+
5
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
8
 import org.springframework.web.bind.annotation.GetMapping;
@@ -24,14 +25,13 @@ import com.sundot.airport.common.core.page.TableDataInfo;
24
 
25
 
25
 /**
26
 /**
26
  * 漏检统计Controller
27
  * 漏检统计Controller
27
- * 
28
+ *
28
  * @author wangxx
29
  * @author wangxx
29
  * @date 2026-04-13
30
  * @date 2026-04-13
30
  */
31
  */
31
 @RestController
32
 @RestController
32
 @RequestMapping("/blocked/missReview")
33
 @RequestMapping("/blocked/missReview")
33
-public class BlockedMissCheckStatisticsController extends BaseController
34
-{
34
+public class BlockedMissCheckStatisticsController extends BaseController {
35
     @Autowired
35
     @Autowired
36
     private IBlockedMissCheckStatisticsService blockedMissCheckStatisticsService;
36
     private IBlockedMissCheckStatisticsService blockedMissCheckStatisticsService;
37
 
37
 
@@ -40,8 +40,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
40
      */
40
      */
41
     @PreAuthorize("@ss.hasPermi('blocked:missReview:list')")
41
     @PreAuthorize("@ss.hasPermi('blocked:missReview:list')")
42
     @GetMapping("/list")
42
     @GetMapping("/list")
43
-    public TableDataInfo list(BlockedMissCheckStatistics blockedMissCheckStatistics)
44
-    {
43
+    public TableDataInfo list(BlockedMissCheckStatistics blockedMissCheckStatistics) {
45
         startPage();
44
         startPage();
46
         List<BlockedMissCheckStatistics> list = blockedMissCheckStatisticsService.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
45
         List<BlockedMissCheckStatistics> list = blockedMissCheckStatisticsService.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
47
         return getDataTable(list);
46
         return getDataTable(list);
@@ -53,8 +52,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
53
     @PreAuthorize("@ss.hasPermi('blocked:missReview:export')")
52
     @PreAuthorize("@ss.hasPermi('blocked:missReview:export')")
54
     @Log(title = "漏检统计", businessType = BusinessType.EXPORT)
53
     @Log(title = "漏检统计", businessType = BusinessType.EXPORT)
55
     @PostMapping("/export")
54
     @PostMapping("/export")
56
-    public void export(HttpServletResponse response, BlockedMissCheckStatistics blockedMissCheckStatistics)
57
-    {
55
+    public void export(HttpServletResponse response, BlockedMissCheckStatistics blockedMissCheckStatistics) {
58
         List<BlockedMissCheckStatistics> list = blockedMissCheckStatisticsService.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
56
         List<BlockedMissCheckStatistics> list = blockedMissCheckStatisticsService.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
59
         ExcelUtil<BlockedMissCheckStatistics> util = new ExcelUtil<BlockedMissCheckStatistics>(BlockedMissCheckStatistics.class);
57
         ExcelUtil<BlockedMissCheckStatistics> util = new ExcelUtil<BlockedMissCheckStatistics>(BlockedMissCheckStatistics.class);
60
         util.exportExcel(response, list, "漏检统计数据");
58
         util.exportExcel(response, list, "漏检统计数据");
@@ -66,8 +64,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
66
     @PreAuthorize("@ss.hasPermi('blocked:missReview:import')")
64
     @PreAuthorize("@ss.hasPermi('blocked:missReview:import')")
67
     @Log(title = "漏检统计", businessType = BusinessType.IMPORT)
65
     @Log(title = "漏检统计", businessType = BusinessType.IMPORT)
68
     @PostMapping("/importData")
66
     @PostMapping("/importData")
69
-    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
70
-    {
67
+    public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
71
         ExcelUtil<BlockedMissCheckStatistics> util = new ExcelUtil<BlockedMissCheckStatistics>(BlockedMissCheckStatistics.class);
68
         ExcelUtil<BlockedMissCheckStatistics> util = new ExcelUtil<BlockedMissCheckStatistics>(BlockedMissCheckStatistics.class);
72
         List<BlockedMissCheckStatistics> list = util.importExcel(file.getInputStream());
69
         List<BlockedMissCheckStatistics> list = util.importExcel(file.getInputStream());
73
         String message = blockedMissCheckStatisticsService.importData(list, updateSupport);
70
         String message = blockedMissCheckStatisticsService.importData(list, updateSupport);
@@ -78,8 +75,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
78
      * 获取导入模板
75
      * 获取导入模板
79
      */
76
      */
80
     @PostMapping("/importTemplate")
77
     @PostMapping("/importTemplate")
81
-    public void importTemplate(HttpServletResponse response)
82
-    {
78
+    public void importTemplate(HttpServletResponse response) {
83
         ExcelUtil<BlockedMissCheckStatistics> util = new ExcelUtil<BlockedMissCheckStatistics>(BlockedMissCheckStatistics.class);
79
         ExcelUtil<BlockedMissCheckStatistics> util = new ExcelUtil<BlockedMissCheckStatistics>(BlockedMissCheckStatistics.class);
84
         util.importTemplateExcel(response, "漏检统计数据");
80
         util.importTemplateExcel(response, "漏检统计数据");
85
     }
81
     }
@@ -89,8 +85,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
89
      */
85
      */
90
     @PreAuthorize("@ss.hasPermi('blocked:missReview:query')")
86
     @PreAuthorize("@ss.hasPermi('blocked:missReview:query')")
91
     @GetMapping(value = "/{id}")
87
     @GetMapping(value = "/{id}")
92
-    public AjaxResult getInfo(@PathVariable("id") Long id)
93
-    {
88
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
94
         return success(blockedMissCheckStatisticsService.selectBlockedMissCheckStatisticsById(id));
89
         return success(blockedMissCheckStatisticsService.selectBlockedMissCheckStatisticsById(id));
95
     }
90
     }
96
 
91
 
@@ -99,11 +94,9 @@ public class BlockedMissCheckStatisticsController extends BaseController
99
      */
94
      */
100
     @PreAuthorize("@ss.hasPermi('blocked:missReview:add')")
95
     @PreAuthorize("@ss.hasPermi('blocked:missReview:add')")
101
     @GetMapping("/checkDuplicate")
96
     @GetMapping("/checkDuplicate")
102
-    public AjaxResult checkDuplicate(BlockedMissCheckStatistics blockedMissCheckStatistics)
103
-    {
97
+    public AjaxResult checkDuplicate(BlockedMissCheckStatistics blockedMissCheckStatistics) {
104
         BlockedMissCheckStatistics duplicate = blockedMissCheckStatisticsService.checkDuplicate(blockedMissCheckStatistics);
98
         BlockedMissCheckStatistics duplicate = blockedMissCheckStatisticsService.checkDuplicate(blockedMissCheckStatistics);
105
-        if (duplicate != null)
106
-        {
99
+        if (duplicate != null) {
107
             return AjaxResult.warn("数据已存在(被回查人:" + duplicate.getReviewedUserName() + ",回查日期:" + duplicate.getReviewDate() + ",漏检时间:" + duplicate.getMissCheckTime() + "),是否覆盖?", duplicate);
100
             return AjaxResult.warn("数据已存在(被回查人:" + duplicate.getReviewedUserName() + ",回查日期:" + duplicate.getReviewDate() + ",漏检时间:" + duplicate.getMissCheckTime() + "),是否覆盖?", duplicate);
108
         }
101
         }
109
         return success();
102
         return success();
@@ -115,8 +108,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
115
     @PreAuthorize("@ss.hasPermi('blocked:missReview:add')")
108
     @PreAuthorize("@ss.hasPermi('blocked:missReview:add')")
116
     @Log(title = "漏检统计", businessType = BusinessType.INSERT)
109
     @Log(title = "漏检统计", businessType = BusinessType.INSERT)
117
     @PostMapping
110
     @PostMapping
118
-    public AjaxResult add(@RequestBody BlockedMissCheckStatistics blockedMissCheckStatistics)
119
-    {
111
+    public AjaxResult add(@RequestBody BlockedMissCheckStatistics blockedMissCheckStatistics) {
120
         blockedMissCheckStatistics.setCreateBy(getUsername());
112
         blockedMissCheckStatistics.setCreateBy(getUsername());
121
         return toAjax(blockedMissCheckStatisticsService.insertBlockedMissCheckStatistics(blockedMissCheckStatistics));
113
         return toAjax(blockedMissCheckStatisticsService.insertBlockedMissCheckStatistics(blockedMissCheckStatistics));
122
     }
114
     }
@@ -127,8 +119,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
127
     @PreAuthorize("@ss.hasPermi('blocked:missReview:add')")
119
     @PreAuthorize("@ss.hasPermi('blocked:missReview:add')")
128
     @Log(title = "漏检统计", businessType = BusinessType.INSERT)
120
     @Log(title = "漏检统计", businessType = BusinessType.INSERT)
129
     @PostMapping("/addOrOverwrite")
121
     @PostMapping("/addOrOverwrite")
130
-    public AjaxResult addOrOverwrite(@RequestBody BlockedMissCheckStatistics blockedMissCheckStatistics)
131
-    {
122
+    public AjaxResult addOrOverwrite(@RequestBody BlockedMissCheckStatistics blockedMissCheckStatistics) {
132
         blockedMissCheckStatistics.setCreateBy(getUsername());
123
         blockedMissCheckStatistics.setCreateBy(getUsername());
133
         blockedMissCheckStatistics.setUpdateBy(getUsername());
124
         blockedMissCheckStatistics.setUpdateBy(getUsername());
134
         return toAjax(blockedMissCheckStatisticsService.insertOrUpdate(blockedMissCheckStatistics));
125
         return toAjax(blockedMissCheckStatisticsService.insertOrUpdate(blockedMissCheckStatistics));
@@ -140,8 +131,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
140
     @PreAuthorize("@ss.hasPermi('blocked:missReview:edit')")
131
     @PreAuthorize("@ss.hasPermi('blocked:missReview:edit')")
141
     @Log(title = "漏检统计", businessType = BusinessType.UPDATE)
132
     @Log(title = "漏检统计", businessType = BusinessType.UPDATE)
142
     @PutMapping
133
     @PutMapping
143
-    public AjaxResult edit(@RequestBody BlockedMissCheckStatistics blockedMissCheckStatistics)
144
-    {
134
+    public AjaxResult edit(@RequestBody BlockedMissCheckStatistics blockedMissCheckStatistics) {
145
         blockedMissCheckStatistics.setUpdateBy(getUsername());
135
         blockedMissCheckStatistics.setUpdateBy(getUsername());
146
         return toAjax(blockedMissCheckStatisticsService.updateBlockedMissCheckStatistics(blockedMissCheckStatistics));
136
         return toAjax(blockedMissCheckStatisticsService.updateBlockedMissCheckStatistics(blockedMissCheckStatistics));
147
     }
137
     }
@@ -152,8 +142,7 @@ public class BlockedMissCheckStatisticsController extends BaseController
152
     @PreAuthorize("@ss.hasPermi('blocked:missReview:remove')")
142
     @PreAuthorize("@ss.hasPermi('blocked:missReview:remove')")
153
     @Log(title = "漏检统计", businessType = BusinessType.DELETE)
143
     @Log(title = "漏检统计", businessType = BusinessType.DELETE)
154
     @DeleteMapping("/{ids}")
144
     @DeleteMapping("/{ids}")
155
-    public AjaxResult remove(@PathVariable Long[] ids)
156
-    {
145
+    public AjaxResult remove(@PathVariable Long[] ids) {
157
         return toAjax(blockedMissCheckStatisticsService.deleteBlockedMissCheckStatisticsByIds(ids));
146
         return toAjax(blockedMissCheckStatisticsService.deleteBlockedMissCheckStatisticsByIds(ids));
158
     }
147
     }
159
 }
148
 }

+ 46 - 0
airport-admin/src/main/java/com/sundot/airport/web/controller/blocked/BlockedMissCheckStatisticsScreenController.java

@@ -0,0 +1,46 @@
1
+package com.sundot.airport.web.controller.blocked;
2
+
3
+import com.sundot.airport.blocked.service.IBlockedMissCheckStatisticsScreenService;
4
+import com.sundot.airport.common.core.controller.BaseController;
5
+import com.sundot.airport.common.core.domain.AjaxResult;
6
+import com.sundot.airport.common.core.domain.BlockedMissCheckStatisticsQueryParamDto;
7
+import com.sundot.airport.common.dto.BaseCommonDto;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.web.bind.annotation.GetMapping;
10
+import org.springframework.web.bind.annotation.RequestMapping;
11
+import org.springframework.web.bind.annotation.RestController;
12
+
13
+import java.util.List;
14
+
15
+/**
16
+ * 漏检统计大屏Controller
17
+ *
18
+ * @author wangxx
19
+ * @date 2026-04-13
20
+ */
21
+@RestController
22
+@RequestMapping("/blocked/missReview/screen")
23
+public class BlockedMissCheckStatisticsScreenController extends BaseController {
24
+
25
+    @Autowired
26
+    private IBlockedMissCheckStatisticsScreenService blockedMissCheckStatisticsScreenService;
27
+
28
+    /**
29
+     * 月考成绩统计
30
+     */
31
+    @GetMapping("/monthlyAssessment")
32
+    public AjaxResult monthlyAssessment(BlockedMissCheckStatisticsQueryParamDto dto) {
33
+        List<BaseCommonDto> list = blockedMissCheckStatisticsScreenService.monthlyAssessment(dto);
34
+        return success(list);
35
+    }
36
+
37
+    /**
38
+     * 本月自测有无漏检统计
39
+     */
40
+    @GetMapping("/selfTestHasMissCheck")
41
+    public AjaxResult selfTestHasMissCheck(BlockedMissCheckStatisticsQueryParamDto dto) {
42
+        List<BaseCommonDto> list = blockedMissCheckStatisticsScreenService.selfTestHasMissCheck(dto);
43
+        return success(list);
44
+    }
45
+
46
+}

+ 111 - 179
airport-blocked/src/main/java/com/sundot/airport/blocked/domain/BlockedMissCheckStatistics.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.blocked.domain;
1
 package com.sundot.airport.blocked.domain;
2
 
2
 
3
 import java.util.Date;
3
 import java.util.Date;
4
+
4
 import com.fasterxml.jackson.annotation.JsonFormat;
5
 import com.fasterxml.jackson.annotation.JsonFormat;
5
 import io.swagger.annotations.ApiModelProperty;
6
 import io.swagger.annotations.ApiModelProperty;
6
 import org.apache.commons.lang3.builder.ToStringBuilder;
7
 import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -10,12 +11,11 @@ import com.sundot.airport.common.core.domain.BaseEntity;
10
 
11
 
11
 /**
12
 /**
12
  * 漏检统计对象 blocked_miss_check_statistics
13
  * 漏检统计对象 blocked_miss_check_statistics
13
- * 
14
+ *
14
  * @author wangxx
15
  * @author wangxx
15
  * @date 2026-04-13
16
  * @date 2026-04-13
16
  */
17
  */
17
-public class BlockedMissCheckStatistics extends BaseEntity
18
-{
18
+public class BlockedMissCheckStatistics extends BaseEntity {
19
     private static final long serialVersionUID = 1L;
19
     private static final long serialVersionUID = 1L;
20
 
20
 
21
     /** 主键ID */
21
     /** 主键ID */
@@ -178,388 +178,320 @@ public class BlockedMissCheckStatistics extends BaseEntity
178
     @ApiModelProperty("删除标志(0代表存在 1代表删除)")
178
     @ApiModelProperty("删除标志(0代表存在 1代表删除)")
179
     private String delFlag;
179
     private String delFlag;
180
 
180
 
181
-    public void setId(Long id) 
182
-    {
181
+    public void setId(Long id) {
183
         this.id = id;
182
         this.id = id;
184
     }
183
     }
185
 
184
 
186
-    public Long getId() 
187
-    {
185
+    public Long getId() {
188
         return id;
186
         return id;
189
     }
187
     }
190
 
188
 
191
-    public void setBrigadeId(Long brigadeId) 
192
-    {
189
+    public void setBrigadeId(Long brigadeId) {
193
         this.brigadeId = brigadeId;
190
         this.brigadeId = brigadeId;
194
     }
191
     }
195
 
192
 
196
-    public Long getBrigadeId() 
197
-    {
193
+    public Long getBrigadeId() {
198
         return brigadeId;
194
         return brigadeId;
199
     }
195
     }
200
 
196
 
201
-    public void setBrigadeName(String brigadeName) 
202
-    {
197
+    public void setBrigadeName(String brigadeName) {
203
         this.brigadeName = brigadeName;
198
         this.brigadeName = brigadeName;
204
     }
199
     }
205
 
200
 
206
-    public String getBrigadeName() 
207
-    {
201
+    public String getBrigadeName() {
208
         return brigadeName;
202
         return brigadeName;
209
     }
203
     }
210
 
204
 
211
-    public void setTerminalId(Long terminalId) 
212
-    {
205
+    public void setTerminalId(Long terminalId) {
213
         this.terminalId = terminalId;
206
         this.terminalId = terminalId;
214
     }
207
     }
215
 
208
 
216
-    public Long getTerminalId() 
217
-    {
209
+    public Long getTerminalId() {
218
         return terminalId;
210
         return terminalId;
219
     }
211
     }
220
 
212
 
221
-    public void setTerminalName(String terminalName) 
222
-    {
213
+    public void setTerminalName(String terminalName) {
223
         this.terminalName = terminalName;
214
         this.terminalName = terminalName;
224
     }
215
     }
225
 
216
 
226
-    public String getTerminalName() 
227
-    {
217
+    public String getTerminalName() {
228
         return terminalName;
218
         return terminalName;
229
     }
219
     }
230
 
220
 
231
-    public void setAreaId(Long areaId) 
232
-    {
221
+    public void setAreaId(Long areaId) {
233
         this.areaId = areaId;
222
         this.areaId = areaId;
234
     }
223
     }
235
 
224
 
236
-    public Long getAreaId() 
237
-    {
225
+    public Long getAreaId() {
238
         return areaId;
226
         return areaId;
239
     }
227
     }
240
 
228
 
241
-    public void setAreaName(String areaName) 
242
-    {
229
+    public void setAreaName(String areaName) {
243
         this.areaName = areaName;
230
         this.areaName = areaName;
244
     }
231
     }
245
 
232
 
246
-    public String getAreaName() 
247
-    {
233
+    public String getAreaName() {
248
         return areaName;
234
         return areaName;
249
     }
235
     }
250
 
236
 
251
-    public void setChannelId(Long channelId) 
252
-    {
237
+    public void setChannelId(Long channelId) {
253
         this.channelId = channelId;
238
         this.channelId = channelId;
254
     }
239
     }
255
 
240
 
256
-    public Long getChannelId() 
257
-    {
241
+    public Long getChannelId() {
258
         return channelId;
242
         return channelId;
259
     }
243
     }
260
 
244
 
261
-    public void setChannelName(String channelName) 
262
-    {
245
+    public void setChannelName(String channelName) {
263
         this.channelName = channelName;
246
         this.channelName = channelName;
264
     }
247
     }
265
 
248
 
266
-    public String getChannelName() 
267
-    {
249
+    public String getChannelName() {
268
         return channelName;
250
         return channelName;
269
     }
251
     }
270
 
252
 
271
-    public void setReviewedUserId(Long reviewedUserId) 
272
-    {
253
+    public void setReviewedUserId(Long reviewedUserId) {
273
         this.reviewedUserId = reviewedUserId;
254
         this.reviewedUserId = reviewedUserId;
274
     }
255
     }
275
 
256
 
276
-    public Long getReviewedUserId() 
277
-    {
257
+    public Long getReviewedUserId() {
278
         return reviewedUserId;
258
         return reviewedUserId;
279
     }
259
     }
280
 
260
 
281
-    public void setReviewedUserName(String reviewedUserName) 
282
-    {
261
+    public void setReviewedUserName(String reviewedUserName) {
283
         this.reviewedUserName = reviewedUserName;
262
         this.reviewedUserName = reviewedUserName;
284
     }
263
     }
285
 
264
 
286
-    public String getReviewedUserName() 
287
-    {
265
+    public String getReviewedUserName() {
288
         return reviewedUserName;
266
         return reviewedUserName;
289
     }
267
     }
290
 
268
 
291
-    public void setReviewUserId(Long reviewUserId) 
292
-    {
269
+    public void setReviewUserId(Long reviewUserId) {
293
         this.reviewUserId = reviewUserId;
270
         this.reviewUserId = reviewUserId;
294
     }
271
     }
295
 
272
 
296
-    public Long getReviewUserId() 
297
-    {
273
+    public Long getReviewUserId() {
298
         return reviewUserId;
274
         return reviewUserId;
299
     }
275
     }
300
 
276
 
301
-    public void setReviewUserName(String reviewUserName) 
302
-    {
277
+    public void setReviewUserName(String reviewUserName) {
303
         this.reviewUserName = reviewUserName;
278
         this.reviewUserName = reviewUserName;
304
     }
279
     }
305
 
280
 
306
-    public String getReviewUserName() 
307
-    {
281
+    public String getReviewUserName() {
308
         return reviewUserName;
282
         return reviewUserName;
309
     }
283
     }
310
 
284
 
311
-    public void setSupervisorId(Long supervisorId) 
312
-    {
285
+    public void setSupervisorId(Long supervisorId) {
313
         this.supervisorId = supervisorId;
286
         this.supervisorId = supervisorId;
314
     }
287
     }
315
 
288
 
316
-    public Long getSupervisorId() 
317
-    {
289
+    public Long getSupervisorId() {
318
         return supervisorId;
290
         return supervisorId;
319
     }
291
     }
320
 
292
 
321
-    public void setSupervisorName(String supervisorName) 
322
-    {
293
+    public void setSupervisorName(String supervisorName) {
323
         this.supervisorName = supervisorName;
294
         this.supervisorName = supervisorName;
324
     }
295
     }
325
 
296
 
326
-    public String getSupervisorName() 
327
-    {
297
+    public String getSupervisorName() {
328
         return supervisorName;
298
         return supervisorName;
329
     }
299
     }
330
 
300
 
331
-    public void setActingSupervisorId(Long actingSupervisorId) 
332
-    {
301
+    public void setActingSupervisorId(Long actingSupervisorId) {
333
         this.actingSupervisorId = actingSupervisorId;
302
         this.actingSupervisorId = actingSupervisorId;
334
     }
303
     }
335
 
304
 
336
-    public Long getActingSupervisorId() 
337
-    {
305
+    public Long getActingSupervisorId() {
338
         return actingSupervisorId;
306
         return actingSupervisorId;
339
     }
307
     }
340
 
308
 
341
-    public void setActingSupervisorName(String actingSupervisorName) 
342
-    {
309
+    public void setActingSupervisorName(String actingSupervisorName) {
343
         this.actingSupervisorName = actingSupervisorName;
310
         this.actingSupervisorName = actingSupervisorName;
344
     }
311
     }
345
 
312
 
346
-    public String getActingSupervisorName() 
347
-    {
313
+    public String getActingSupervisorName() {
348
         return actingSupervisorName;
314
         return actingSupervisorName;
349
     }
315
     }
350
 
316
 
351
-    public void setTeamLeaderId(Long teamLeaderId) 
352
-    {
317
+    public void setTeamLeaderId(Long teamLeaderId) {
353
         this.teamLeaderId = teamLeaderId;
318
         this.teamLeaderId = teamLeaderId;
354
     }
319
     }
355
 
320
 
356
-    public Long getTeamLeaderId() 
357
-    {
321
+    public Long getTeamLeaderId() {
358
         return teamLeaderId;
322
         return teamLeaderId;
359
     }
323
     }
360
 
324
 
361
-    public void setTeamLeaderName(String teamLeaderName) 
362
-    {
325
+    public void setTeamLeaderName(String teamLeaderName) {
363
         this.teamLeaderName = teamLeaderName;
326
         this.teamLeaderName = teamLeaderName;
364
     }
327
     }
365
 
328
 
366
-    public String getTeamLeaderName() 
367
-    {
329
+    public String getTeamLeaderName() {
368
         return teamLeaderName;
330
         return teamLeaderName;
369
     }
331
     }
370
 
332
 
371
-    public void setReviewDate(Date reviewDate) 
372
-    {
333
+    public void setReviewDate(Date reviewDate) {
373
         this.reviewDate = reviewDate;
334
         this.reviewDate = reviewDate;
374
     }
335
     }
375
 
336
 
376
-    public Date getReviewDate() 
377
-    {
337
+    public Date getReviewDate() {
378
         return reviewDate;
338
         return reviewDate;
379
     }
339
     }
380
 
340
 
381
-    public void setMissCheckTime(Date missCheckTime) 
382
-    {
341
+    public void setMissCheckTime(Date missCheckTime) {
383
         this.missCheckTime = missCheckTime;
342
         this.missCheckTime = missCheckTime;
384
     }
343
     }
385
 
344
 
386
-    public Date getMissCheckTime() 
387
-    {
345
+    public Date getMissCheckTime() {
388
         return missCheckTime;
346
         return missCheckTime;
389
     }
347
     }
390
 
348
 
391
-    public void setMissCheckTimePeriod(String missCheckTimePeriod) 
392
-    {
349
+    public void setMissCheckTimePeriod(String missCheckTimePeriod) {
393
         this.missCheckTimePeriod = missCheckTimePeriod;
350
         this.missCheckTimePeriod = missCheckTimePeriod;
394
     }
351
     }
395
 
352
 
396
-    public String getMissCheckTimePeriod() 
397
-    {
353
+    public String getMissCheckTimePeriod() {
398
         return missCheckTimePeriod;
354
         return missCheckTimePeriod;
399
     }
355
     }
400
 
356
 
401
-    public void setMissCheckItem(String missCheckItem) 
402
-    {
357
+    public void setMissCheckItem(String missCheckItem) {
403
         this.missCheckItem = missCheckItem;
358
         this.missCheckItem = missCheckItem;
404
     }
359
     }
405
 
360
 
406
-    public String getMissCheckItem() 
407
-    {
361
+    public String getMissCheckItem() {
408
         return missCheckItem;
362
         return missCheckItem;
409
     }
363
     }
410
 
364
 
411
-    public void setItemLocation(String itemLocation) 
412
-    {
365
+    public void setItemLocation(String itemLocation) {
413
         this.itemLocation = itemLocation;
366
         this.itemLocation = itemLocation;
414
     }
367
     }
415
 
368
 
416
-    public String getItemLocation() 
417
-    {
369
+    public String getItemLocation() {
418
         return itemLocation;
370
         return itemLocation;
419
     }
371
     }
420
 
372
 
421
-    public void setDifficultyLevel(String difficultyLevel) 
422
-    {
373
+    public void setDifficultyLevel(String difficultyLevel) {
423
         this.difficultyLevel = difficultyLevel;
374
         this.difficultyLevel = difficultyLevel;
424
     }
375
     }
425
 
376
 
426
-    public String getDifficultyLevel() 
427
-    {
377
+    public String getDifficultyLevel() {
428
         return difficultyLevel;
378
         return difficultyLevel;
429
     }
379
     }
430
 
380
 
431
-    public void setDiscriminationType(String discriminationType) 
432
-    {
381
+    public void setDiscriminationType(String discriminationType) {
433
         this.discriminationType = discriminationType;
382
         this.discriminationType = discriminationType;
434
     }
383
     }
435
 
384
 
436
-    public String getDiscriminationType() 
437
-    {
385
+    public String getDiscriminationType() {
438
         return discriminationType;
386
         return discriminationType;
439
     }
387
     }
440
 
388
 
441
-    public void setIsRecovered(Integer isRecovered) 
442
-    {
389
+    public void setIsRecovered(Integer isRecovered) {
443
         this.isRecovered = isRecovered;
390
         this.isRecovered = isRecovered;
444
     }
391
     }
445
 
392
 
446
-    public Integer getIsRecovered() 
447
-    {
393
+    public Integer getIsRecovered() {
448
         return isRecovered;
394
         return isRecovered;
449
     }
395
     }
450
 
396
 
451
-    public void setMachineOperatingYears(Integer machineOperatingYears) 
452
-    {
397
+    public void setMachineOperatingYears(Integer machineOperatingYears) {
453
         this.machineOperatingYears = machineOperatingYears;
398
         this.machineOperatingYears = machineOperatingYears;
454
     }
399
     }
455
 
400
 
456
-    public Integer getMachineOperatingYears() 
457
-    {
401
+    public Integer getMachineOperatingYears() {
458
         return machineOperatingYears;
402
         return machineOperatingYears;
459
     }
403
     }
460
 
404
 
461
-    public void setCertificateLevel(String certificateLevel) 
462
-    {
405
+    public void setCertificateLevel(String certificateLevel) {
463
         this.certificateLevel = certificateLevel;
406
         this.certificateLevel = certificateLevel;
464
     }
407
     }
465
 
408
 
466
-    public String getCertificateLevel() 
467
-    {
409
+    public String getCertificateLevel() {
468
         return certificateLevel;
410
         return certificateLevel;
469
     }
411
     }
470
 
412
 
471
-    public void setGender(String gender) 
472
-    {
413
+    public void setGender(String gender) {
473
         this.gender = gender;
414
         this.gender = gender;
474
     }
415
     }
475
 
416
 
476
-    public String getGender() 
477
-    {
417
+    public String getGender() {
478
         return gender;
418
         return gender;
479
     }
419
     }
480
 
420
 
481
-    public void setMissCheckReasonCategory(String missCheckReasonCategory) 
482
-    {
421
+    public void setMissCheckReasonCategory(String missCheckReasonCategory) {
483
         this.missCheckReasonCategory = missCheckReasonCategory;
422
         this.missCheckReasonCategory = missCheckReasonCategory;
484
     }
423
     }
485
 
424
 
486
-    public String getMissCheckReasonCategory() 
487
-    {
425
+    public String getMissCheckReasonCategory() {
488
         return missCheckReasonCategory;
426
         return missCheckReasonCategory;
489
     }
427
     }
490
 
428
 
491
-    public void setMonthlyAssessment(String monthlyAssessment) 
492
-    {
429
+    public void setMonthlyAssessment(String monthlyAssessment) {
493
         this.monthlyAssessment = monthlyAssessment;
430
         this.monthlyAssessment = monthlyAssessment;
494
     }
431
     }
495
 
432
 
496
-    public String getMonthlyAssessment() 
497
-    {
433
+    public String getMonthlyAssessment() {
498
         return monthlyAssessment;
434
         return monthlyAssessment;
499
     }
435
     }
500
 
436
 
501
-    public void setSelfTestHasMissCheck(Integer selfTestHasMissCheck) 
502
-    {
437
+    public void setSelfTestHasMissCheck(Integer selfTestHasMissCheck) {
503
         this.selfTestHasMissCheck = selfTestHasMissCheck;
438
         this.selfTestHasMissCheck = selfTestHasMissCheck;
504
     }
439
     }
505
 
440
 
506
-    public Integer getSelfTestHasMissCheck() 
507
-    {
441
+    public Integer getSelfTestHasMissCheck() {
508
         return selfTestHasMissCheck;
442
         return selfTestHasMissCheck;
509
     }
443
     }
510
 
444
 
511
-    public void setDelFlag(String delFlag) 
512
-    {
445
+    public void setDelFlag(String delFlag) {
513
         this.delFlag = delFlag;
446
         this.delFlag = delFlag;
514
     }
447
     }
515
 
448
 
516
-    public String getDelFlag() 
517
-    {
449
+    public String getDelFlag() {
518
         return delFlag;
450
         return delFlag;
519
     }
451
     }
520
 
452
 
521
     @Override
453
     @Override
522
     public String toString() {
454
     public String toString() {
523
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
455
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
524
-            .append("id", getId())
525
-            .append("brigadeId", getBrigadeId())
526
-            .append("brigadeName", getBrigadeName())
527
-            .append("terminalId", getTerminalId())
528
-            .append("terminalName", getTerminalName())
529
-            .append("areaId", getAreaId())
530
-            .append("areaName", getAreaName())
531
-            .append("channelId", getChannelId())
532
-            .append("channelName", getChannelName())
533
-            .append("reviewedUserId", getReviewedUserId())
534
-            .append("reviewedUserName", getReviewedUserName())
535
-            .append("reviewUserId", getReviewUserId())
536
-            .append("reviewUserName", getReviewUserName())
537
-            .append("supervisorId", getSupervisorId())
538
-            .append("supervisorName", getSupervisorName())
539
-            .append("actingSupervisorId", getActingSupervisorId())
540
-            .append("actingSupervisorName", getActingSupervisorName())
541
-            .append("teamLeaderId", getTeamLeaderId())
542
-            .append("teamLeaderName", getTeamLeaderName())
543
-            .append("reviewDate", getReviewDate())
544
-            .append("missCheckTime", getMissCheckTime())
545
-            .append("missCheckTimePeriod", getMissCheckTimePeriod())
546
-            .append("missCheckItem", getMissCheckItem())
547
-            .append("itemLocation", getItemLocation())
548
-            .append("difficultyLevel", getDifficultyLevel())
549
-            .append("discriminationType", getDiscriminationType())
550
-            .append("isRecovered", getIsRecovered())
551
-            .append("machineOperatingYears", getMachineOperatingYears())
552
-            .append("certificateLevel", getCertificateLevel())
553
-            .append("gender", getGender())
554
-            .append("missCheckReasonCategory", getMissCheckReasonCategory())
555
-            .append("monthlyAssessment", getMonthlyAssessment())
556
-            .append("selfTestHasMissCheck", getSelfTestHasMissCheck())
557
-            .append("delFlag", getDelFlag())
558
-            .append("createBy", getCreateBy())
559
-            .append("createTime", getCreateTime())
560
-            .append("updateBy", getUpdateBy())
561
-            .append("updateTime", getUpdateTime())
562
-            .append("remark", getRemark())
563
-            .toString();
456
+                .append("id", getId())
457
+                .append("brigadeId", getBrigadeId())
458
+                .append("brigadeName", getBrigadeName())
459
+                .append("terminalId", getTerminalId())
460
+                .append("terminalName", getTerminalName())
461
+                .append("areaId", getAreaId())
462
+                .append("areaName", getAreaName())
463
+                .append("channelId", getChannelId())
464
+                .append("channelName", getChannelName())
465
+                .append("reviewedUserId", getReviewedUserId())
466
+                .append("reviewedUserName", getReviewedUserName())
467
+                .append("reviewUserId", getReviewUserId())
468
+                .append("reviewUserName", getReviewUserName())
469
+                .append("supervisorId", getSupervisorId())
470
+                .append("supervisorName", getSupervisorName())
471
+                .append("actingSupervisorId", getActingSupervisorId())
472
+                .append("actingSupervisorName", getActingSupervisorName())
473
+                .append("teamLeaderId", getTeamLeaderId())
474
+                .append("teamLeaderName", getTeamLeaderName())
475
+                .append("reviewDate", getReviewDate())
476
+                .append("missCheckTime", getMissCheckTime())
477
+                .append("missCheckTimePeriod", getMissCheckTimePeriod())
478
+                .append("missCheckItem", getMissCheckItem())
479
+                .append("itemLocation", getItemLocation())
480
+                .append("difficultyLevel", getDifficultyLevel())
481
+                .append("discriminationType", getDiscriminationType())
482
+                .append("isRecovered", getIsRecovered())
483
+                .append("machineOperatingYears", getMachineOperatingYears())
484
+                .append("certificateLevel", getCertificateLevel())
485
+                .append("gender", getGender())
486
+                .append("missCheckReasonCategory", getMissCheckReasonCategory())
487
+                .append("monthlyAssessment", getMonthlyAssessment())
488
+                .append("selfTestHasMissCheck", getSelfTestHasMissCheck())
489
+                .append("delFlag", getDelFlag())
490
+                .append("createBy", getCreateBy())
491
+                .append("createTime", getCreateTime())
492
+                .append("updateBy", getUpdateBy())
493
+                .append("updateTime", getUpdateTime())
494
+                .append("remark", getRemark())
495
+                .toString();
564
     }
496
     }
565
 }
497
 }

+ 9 - 9
airport-blocked/src/main/java/com/sundot/airport/blocked/mapper/BlockedMissCheckStatisticsMapper.java

@@ -1,19 +1,19 @@
1
 package com.sundot.airport.blocked.mapper;
1
 package com.sundot.airport.blocked.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.sundot.airport.blocked.domain.BlockedMissCheckStatistics;
5
 import com.sundot.airport.blocked.domain.BlockedMissCheckStatistics;
5
 
6
 
6
 /**
7
 /**
7
  * 漏检统计Mapper接口
8
  * 漏检统计Mapper接口
8
- * 
9
+ *
9
  * @author wangxx
10
  * @author wangxx
10
  * @date 2026-04-13
11
  * @date 2026-04-13
11
  */
12
  */
12
-public interface BlockedMissCheckStatisticsMapper 
13
-{
13
+public interface BlockedMissCheckStatisticsMapper {
14
     /**
14
     /**
15
      * 查询漏检统计
15
      * 查询漏检统计
16
-     * 
16
+     *
17
      * @param id 漏检统计主键
17
      * @param id 漏检统计主键
18
      * @return 漏检统计
18
      * @return 漏检统计
19
      */
19
      */
@@ -21,7 +21,7 @@ public interface BlockedMissCheckStatisticsMapper
21
 
21
 
22
     /**
22
     /**
23
      * 查询漏检统计列表
23
      * 查询漏检统计列表
24
-     * 
24
+     *
25
      * @param blockedMissCheckStatistics 漏检统计
25
      * @param blockedMissCheckStatistics 漏检统计
26
      * @return 漏检统计集合
26
      * @return 漏检统计集合
27
      */
27
      */
@@ -29,7 +29,7 @@ public interface BlockedMissCheckStatisticsMapper
29
 
29
 
30
     /**
30
     /**
31
      * 新增漏检统计
31
      * 新增漏检统计
32
-     * 
32
+     *
33
      * @param blockedMissCheckStatistics 漏检统计
33
      * @param blockedMissCheckStatistics 漏检统计
34
      * @return 结果
34
      * @return 结果
35
      */
35
      */
@@ -37,7 +37,7 @@ public interface BlockedMissCheckStatisticsMapper
37
 
37
 
38
     /**
38
     /**
39
      * 修改漏检统计
39
      * 修改漏检统计
40
-     * 
40
+     *
41
      * @param blockedMissCheckStatistics 漏检统计
41
      * @param blockedMissCheckStatistics 漏检统计
42
      * @return 结果
42
      * @return 结果
43
      */
43
      */
@@ -45,7 +45,7 @@ public interface BlockedMissCheckStatisticsMapper
45
 
45
 
46
     /**
46
     /**
47
      * 删除漏检统计
47
      * 删除漏检统计
48
-     * 
48
+     *
49
      * @param id 漏检统计主键
49
      * @param id 漏检统计主键
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
@@ -53,7 +53,7 @@ public interface BlockedMissCheckStatisticsMapper
53
 
53
 
54
     /**
54
     /**
55
      * 批量删除漏检统计
55
      * 批量删除漏检统计
56
-     * 
56
+     *
57
      * @param ids 需要删除的数据主键集合
57
      * @param ids 需要删除的数据主键集合
58
      * @return 结果
58
      * @return 结果
59
      */
59
      */

+ 32 - 0
airport-blocked/src/main/java/com/sundot/airport/blocked/service/IBlockedMissCheckStatisticsScreenService.java

@@ -0,0 +1,32 @@
1
+package com.sundot.airport.blocked.service;
2
+
3
+import com.sundot.airport.common.core.domain.BlockedMissCheckStatisticsQueryParamDto;
4
+import com.sundot.airport.common.dto.BaseCommonDto;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * 漏检统计大屏Service接口
10
+ *
11
+ * @author wangxx
12
+ * @date 2026-04-13
13
+ */
14
+public interface IBlockedMissCheckStatisticsScreenService {
15
+
16
+    /**
17
+     * 月考成绩统计
18
+     *
19
+     * @param dto 漏检统计查询参数
20
+     * @return 月考成绩统计
21
+     */
22
+    public List<BaseCommonDto> monthlyAssessment(BlockedMissCheckStatisticsQueryParamDto dto);
23
+
24
+    /**
25
+     * 本月自测有无漏检统计
26
+     *
27
+     * @param dto 漏检统计查询参数
28
+     * @return 本月自测有无漏检统计
29
+     */
30
+    public List<BaseCommonDto> selfTestHasMissCheck(BlockedMissCheckStatisticsQueryParamDto dto);
31
+
32
+}

+ 12 - 12
airport-blocked/src/main/java/com/sundot/airport/blocked/service/IBlockedMissCheckStatisticsService.java

@@ -1,19 +1,19 @@
1
 package com.sundot.airport.blocked.service;
1
 package com.sundot.airport.blocked.service;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.sundot.airport.blocked.domain.BlockedMissCheckStatistics;
5
 import com.sundot.airport.blocked.domain.BlockedMissCheckStatistics;
5
 
6
 
6
 /**
7
 /**
7
  * 漏检统计Service接口
8
  * 漏检统计Service接口
8
- * 
9
+ *
9
  * @author wangxx
10
  * @author wangxx
10
  * @date 2026-04-13
11
  * @date 2026-04-13
11
  */
12
  */
12
-public interface IBlockedMissCheckStatisticsService 
13
-{
13
+public interface IBlockedMissCheckStatisticsService {
14
     /**
14
     /**
15
      * 查询漏检统计
15
      * 查询漏检统计
16
-     * 
16
+     *
17
      * @param id 漏检统计主键
17
      * @param id 漏检统计主键
18
      * @return 漏检统计
18
      * @return 漏检统计
19
      */
19
      */
@@ -21,7 +21,7 @@ public interface IBlockedMissCheckStatisticsService
21
 
21
 
22
     /**
22
     /**
23
      * 查询漏检统计列表
23
      * 查询漏检统计列表
24
-     * 
24
+     *
25
      * @param blockedMissCheckStatistics 漏检统计
25
      * @param blockedMissCheckStatistics 漏检统计
26
      * @return 漏检统计集合
26
      * @return 漏检统计集合
27
      */
27
      */
@@ -29,7 +29,7 @@ public interface IBlockedMissCheckStatisticsService
29
 
29
 
30
     /**
30
     /**
31
      * 新增漏检统计
31
      * 新增漏检统计
32
-     * 
32
+     *
33
      * @param blockedMissCheckStatistics 漏检统计
33
      * @param blockedMissCheckStatistics 漏检统计
34
      * @return 结果
34
      * @return 结果
35
      */
35
      */
@@ -37,7 +37,7 @@ public interface IBlockedMissCheckStatisticsService
37
 
37
 
38
     /**
38
     /**
39
      * 修改漏检统计
39
      * 修改漏检统计
40
-     * 
40
+     *
41
      * @param blockedMissCheckStatistics 漏检统计
41
      * @param blockedMissCheckStatistics 漏检统计
42
      * @return 结果
42
      * @return 结果
43
      */
43
      */
@@ -45,7 +45,7 @@ public interface IBlockedMissCheckStatisticsService
45
 
45
 
46
     /**
46
     /**
47
      * 批量删除漏检统计
47
      * 批量删除漏检统计
48
-     * 
48
+     *
49
      * @param ids 需要删除的漏检统计主键集合
49
      * @param ids 需要删除的漏检统计主键集合
50
      * @return 结果
50
      * @return 结果
51
      */
51
      */
@@ -53,7 +53,7 @@ public interface IBlockedMissCheckStatisticsService
53
 
53
 
54
     /**
54
     /**
55
      * 删除漏检统计信息
55
      * 删除漏检统计信息
56
-     * 
56
+     *
57
      * @param id 漏检统计主键
57
      * @param id 漏检统计主键
58
      * @return 结果
58
      * @return 结果
59
      */
59
      */
@@ -61,7 +61,7 @@ public interface IBlockedMissCheckStatisticsService
61
 
61
 
62
     /**
62
     /**
63
      * 导入漏检统计数据
63
      * 导入漏检统计数据
64
-     * 
64
+     *
65
      * @param list 数据列表
65
      * @param list 数据列表
66
      * @param updateSupport 是否更新支持
66
      * @param updateSupport 是否更新支持
67
      * @return 导入结果信息
67
      * @return 导入结果信息
@@ -70,7 +70,7 @@ public interface IBlockedMissCheckStatisticsService
70
 
70
 
71
     /**
71
     /**
72
      * 检查数据是否重复(被回查人+回查日期+漏检时间)
72
      * 检查数据是否重复(被回查人+回查日期+漏检时间)
73
-     * 
73
+     *
74
      * @param blockedMissCheckStatistics 漏检统计数据
74
      * @param blockedMissCheckStatistics 漏检统计数据
75
      * @return 重复的数据,如果没有重复返回null
75
      * @return 重复的数据,如果没有重复返回null
76
      */
76
      */
@@ -78,7 +78,7 @@ public interface IBlockedMissCheckStatisticsService
78
 
78
 
79
     /**
79
     /**
80
      * 新增或更新漏检统计(如果数据重复则覆盖更新)
80
      * 新增或更新漏检统计(如果数据重复则覆盖更新)
81
-     * 
81
+     *
82
      * @param blockedMissCheckStatistics 漏检统计
82
      * @param blockedMissCheckStatistics 漏检统计
83
      * @return 结果
83
      * @return 结果
84
      */
84
      */

+ 89 - 0
airport-blocked/src/main/java/com/sundot/airport/blocked/service/impl/BlockedMissCheckStatisticsScreenServiceImpl.java

@@ -0,0 +1,89 @@
1
+package com.sundot.airport.blocked.service.impl;
2
+
3
+import com.sundot.airport.blocked.domain.BlockedMissCheckStatistics;
4
+import com.sundot.airport.blocked.mapper.BlockedMissCheckStatisticsMapper;
5
+import com.sundot.airport.blocked.service.IBlockedMissCheckStatisticsScreenService;
6
+import com.sundot.airport.common.core.domain.BlockedMissCheckStatisticsQueryParamDto;
7
+import com.sundot.airport.common.core.domain.entity.SysDictData;
8
+import com.sundot.airport.common.dto.BaseCommonDto;
9
+import com.sundot.airport.system.service.ISysDictDataService;
10
+import org.springframework.beans.factory.annotation.Autowired;
11
+import org.springframework.stereotype.Service;
12
+
13
+import java.math.BigDecimal;
14
+import java.util.ArrayList;
15
+import java.util.List;
16
+import java.util.Map;
17
+import java.util.stream.Collectors;
18
+
19
+/**
20
+ * 漏检统计大屏Service业务层处理
21
+ *
22
+ * @author wangxx
23
+ * @date 2026-04-13
24
+ */
25
+@Service
26
+public class BlockedMissCheckStatisticsScreenServiceImpl implements IBlockedMissCheckStatisticsScreenService {
27
+
28
+    @Autowired
29
+    private BlockedMissCheckStatisticsMapper blockedMissCheckStatisticsMapper;
30
+    @Autowired
31
+    private ISysDictDataService sysDictDataService;
32
+
33
+    /**
34
+     * 月考成绩统计
35
+     *
36
+     * @param dto 漏检统计查询参数
37
+     * @return 月考成绩统计
38
+     */
39
+    @Override
40
+    public List<BaseCommonDto> monthlyAssessment(BlockedMissCheckStatisticsQueryParamDto dto) {
41
+        List<BaseCommonDto> result = new ArrayList<>();
42
+        SysDictData dictData = new SysDictData();
43
+        dictData.setDictType("blocked_monthly_exam_result");
44
+        List<SysDictData> sysDictDataList = sysDictDataService.selectDictDataList(dictData);
45
+        BlockedMissCheckStatistics query = new BlockedMissCheckStatistics();
46
+        query.setReviewDate(dto.getSpecifiedDate());
47
+        query.setBrigadeId(dto.getBrigadeId());
48
+        query.setBrigadeName(dto.getBrigadeName());
49
+        List<BlockedMissCheckStatistics> blockedMissCheckStatisticsList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(query);
50
+        Map<String, Long> monthlyAssessmentMap = blockedMissCheckStatisticsList.stream()
51
+                .filter(blockedMissCheckStatistics -> blockedMissCheckStatistics.getMonthlyAssessment() != null)
52
+                .collect(Collectors.groupingBy(BlockedMissCheckStatistics::getMonthlyAssessment, Collectors.counting()));
53
+        sysDictDataList.forEach(sysDictData -> {
54
+            BaseCommonDto item = new BaseCommonDto();
55
+            item.setCode(sysDictData.getDictValue());
56
+            item.setName(sysDictData.getDictLabel());
57
+            item.setTotal(BigDecimal.valueOf(monthlyAssessmentMap.getOrDefault(sysDictData.getDictValue(), 0L)));
58
+            result.add(item);
59
+        });
60
+        return result;
61
+    }
62
+
63
+    /**
64
+     * 本月自测有无漏检统计
65
+     *
66
+     * @param dto 漏检统计查询参数
67
+     * @return 本月自测有无漏检统计
68
+     */
69
+    @Override
70
+    public List<BaseCommonDto> selfTestHasMissCheck(BlockedMissCheckStatisticsQueryParamDto dto) {
71
+        List<BaseCommonDto> result = new ArrayList<>();
72
+        BlockedMissCheckStatistics query = new BlockedMissCheckStatistics();
73
+        query.setReviewDate(dto.getSpecifiedDate());
74
+        query.setBrigadeId(dto.getBrigadeId());
75
+        query.setBrigadeName(dto.getBrigadeName());
76
+        List<BlockedMissCheckStatistics> blockedMissCheckStatisticsList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(query);
77
+        Map<Integer, Long> selfTestHasMissCheckMap = blockedMissCheckStatisticsList.stream()
78
+                .filter(blockedMissCheckStatistics -> blockedMissCheckStatistics.getSelfTestHasMissCheck() != null)
79
+                .collect(Collectors.groupingBy(BlockedMissCheckStatistics::getSelfTestHasMissCheck, Collectors.counting()));
80
+        selfTestHasMissCheckMap.forEach((key, value) -> {
81
+            BaseCommonDto item = new BaseCommonDto();
82
+            item.setName(String.valueOf(key));
83
+            item.setTotal(BigDecimal.valueOf(value));
84
+            result.add(item);
85
+        });
86
+        return result;
87
+    }
88
+
89
+}

+ 64 - 112
airport-blocked/src/main/java/com/sundot/airport/blocked/service/impl/BlockedMissCheckStatisticsServiceImpl.java

@@ -2,6 +2,7 @@ package com.sundot.airport.blocked.service.impl;
2
 
2
 
3
 import java.util.Date;
3
 import java.util.Date;
4
 import java.util.List;
4
 import java.util.List;
5
+
5
 import cn.hutool.core.collection.CollUtil;
6
 import cn.hutool.core.collection.CollUtil;
6
 import cn.hutool.core.util.ObjUtil;
7
 import cn.hutool.core.util.ObjUtil;
7
 import cn.hutool.core.util.StrUtil;
8
 import cn.hutool.core.util.StrUtil;
@@ -22,13 +23,12 @@ import com.sundot.airport.system.service.ISysDeptService;
22
 
23
 
23
 /**
24
 /**
24
  * 漏检统计Service业务层处理
25
  * 漏检统计Service业务层处理
25
- * 
26
+ *
26
  * @author wangxx
27
  * @author wangxx
27
  * @date 2026-04-13
28
  * @date 2026-04-13
28
  */
29
  */
29
 @Service
30
 @Service
30
-public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckStatisticsService 
31
-{
31
+public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckStatisticsService {
32
     @Autowired
32
     @Autowired
33
     private BlockedMissCheckStatisticsMapper blockedMissCheckStatisticsMapper;
33
     private BlockedMissCheckStatisticsMapper blockedMissCheckStatisticsMapper;
34
 
34
 
@@ -43,37 +43,34 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
43
 
43
 
44
     /**
44
     /**
45
      * 查询漏检统计
45
      * 查询漏检统计
46
-     * 
46
+     *
47
      * @param id 漏检统计主键
47
      * @param id 漏检统计主键
48
      * @return 漏检统计
48
      * @return 漏检统计
49
      */
49
      */
50
     @Override
50
     @Override
51
-    public BlockedMissCheckStatistics selectBlockedMissCheckStatisticsById(Long id)
52
-    {
51
+    public BlockedMissCheckStatistics selectBlockedMissCheckStatisticsById(Long id) {
53
         return blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsById(id);
52
         return blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsById(id);
54
     }
53
     }
55
 
54
 
56
     /**
55
     /**
57
      * 查询漏检统计列表
56
      * 查询漏检统计列表
58
-     * 
57
+     *
59
      * @param blockedMissCheckStatistics 漏检统计
58
      * @param blockedMissCheckStatistics 漏检统计
60
      * @return 漏检统计
59
      * @return 漏检统计
61
      */
60
      */
62
     @Override
61
     @Override
63
-    public List<BlockedMissCheckStatistics> selectBlockedMissCheckStatisticsList(BlockedMissCheckStatistics blockedMissCheckStatistics)
64
-    {
62
+    public List<BlockedMissCheckStatistics> selectBlockedMissCheckStatisticsList(BlockedMissCheckStatistics blockedMissCheckStatistics) {
65
         return blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
63
         return blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
66
     }
64
     }
67
 
65
 
68
     /**
66
     /**
69
      * 新增漏检统计
67
      * 新增漏检统计
70
-     * 
68
+     *
71
      * @param blockedMissCheckStatistics 漏检统计
69
      * @param blockedMissCheckStatistics 漏检统计
72
      * @return 结果
70
      * @return 结果
73
      */
71
      */
74
     @Override
72
     @Override
75
-    public int insertBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics)
76
-    {
73
+    public int insertBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics) {
77
         // 根据名称填充ID
74
         // 根据名称填充ID
78
         fillIdsByName(blockedMissCheckStatistics);
75
         fillIdsByName(blockedMissCheckStatistics);
79
         blockedMissCheckStatistics.setCreateTime(DateUtils.getNowDate());
76
         blockedMissCheckStatistics.setCreateTime(DateUtils.getNowDate());
@@ -82,13 +79,12 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
82
 
79
 
83
     /**
80
     /**
84
      * 修改漏检统计
81
      * 修改漏检统计
85
-     * 
82
+     *
86
      * @param blockedMissCheckStatistics 漏检统计
83
      * @param blockedMissCheckStatistics 漏检统计
87
      * @return 结果
84
      * @return 结果
88
      */
85
      */
89
     @Override
86
     @Override
90
-    public int updateBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics)
91
-    {
87
+    public int updateBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics) {
92
         // 根据名称填充ID
88
         // 根据名称填充ID
93
         fillIdsByName(blockedMissCheckStatistics);
89
         fillIdsByName(blockedMissCheckStatistics);
94
         blockedMissCheckStatistics.setUpdateTime(DateUtils.getNowDate());
90
         blockedMissCheckStatistics.setUpdateTime(DateUtils.getNowDate());
@@ -97,41 +93,37 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
97
 
93
 
98
     /**
94
     /**
99
      * 批量删除漏检统计
95
      * 批量删除漏检统计
100
-     * 
96
+     *
101
      * @param ids 需要删除的漏检统计主键
97
      * @param ids 需要删除的漏检统计主键
102
      * @return 结果
98
      * @return 结果
103
      */
99
      */
104
     @Override
100
     @Override
105
-    public int deleteBlockedMissCheckStatisticsByIds(Long[] ids)
106
-    {
101
+    public int deleteBlockedMissCheckStatisticsByIds(Long[] ids) {
107
         return blockedMissCheckStatisticsMapper.deleteBlockedMissCheckStatisticsByIds(ids);
102
         return blockedMissCheckStatisticsMapper.deleteBlockedMissCheckStatisticsByIds(ids);
108
     }
103
     }
109
 
104
 
110
     /**
105
     /**
111
      * 删除漏检统计信息
106
      * 删除漏检统计信息
112
-     * 
107
+     *
113
      * @param id 漏检统计主键
108
      * @param id 漏检统计主键
114
      * @return 结果
109
      * @return 结果
115
      */
110
      */
116
     @Override
111
     @Override
117
-    public int deleteBlockedMissCheckStatisticsById(Long id)
118
-    {
112
+    public int deleteBlockedMissCheckStatisticsById(Long id) {
119
         return blockedMissCheckStatisticsMapper.deleteBlockedMissCheckStatisticsById(id);
113
         return blockedMissCheckStatisticsMapper.deleteBlockedMissCheckStatisticsById(id);
120
     }
114
     }
121
 
115
 
122
     /**
116
     /**
123
      * 导入漏检统计数据
117
      * 导入漏检统计数据
124
-     * 
118
+     *
125
      * @param list 数据列表
119
      * @param list 数据列表
126
      * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
120
      * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
127
      * @return 结果
121
      * @return 结果
128
      */
122
      */
129
     @Transactional(rollbackFor = Exception.class)
123
     @Transactional(rollbackFor = Exception.class)
130
     @Override
124
     @Override
131
-    public String importData(List<BlockedMissCheckStatistics> list, boolean isUpdateSupport)
132
-    {
133
-        if (CollUtil.isEmpty(list))
134
-        {
125
+    public String importData(List<BlockedMissCheckStatistics> list, boolean isUpdateSupport) {
126
+        if (CollUtil.isEmpty(list)) {
135
             throw new ServiceException("导入漏检统计数据不能为空!");
127
             throw new ServiceException("导入漏检统计数据不能为空!");
136
         }
128
         }
137
 
129
 
@@ -139,42 +131,35 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
139
         int failureNum = 0;
131
         int failureNum = 0;
140
         StringBuilder successMsg = new StringBuilder();
132
         StringBuilder successMsg = new StringBuilder();
141
         StringBuilder failureMsg = new StringBuilder();
133
         StringBuilder failureMsg = new StringBuilder();
142
-        
143
-        for (BlockedMissCheckStatistics data : list)
144
-        {
145
-            try
146
-            {
147
-                if (ObjUtil.isNull(data.getReviewDate()))
148
-                {
134
+
135
+        for (BlockedMissCheckStatistics data : list) {
136
+            try {
137
+                if (ObjUtil.isNull(data.getReviewDate())) {
149
                     failureNum++;
138
                     failureNum++;
150
                     failureMsg.append("<br/>" + failureNum + "、回查日期不能为空");
139
                     failureMsg.append("<br/>" + failureNum + "、回查日期不能为空");
151
                     continue;
140
                     continue;
152
                 }
141
                 }
153
-                if (ObjUtil.isNull(data.getMissCheckTime()))
154
-                {
142
+                if (ObjUtil.isNull(data.getMissCheckTime())) {
155
                     failureNum++;
143
                     failureNum++;
156
                     failureMsg.append("<br/>" + failureNum + "、漏检时间不能为空");
144
                     failureMsg.append("<br/>" + failureNum + "、漏检时间不能为空");
157
                     continue;
145
                     continue;
158
                 }
146
                 }
159
-                
147
+
160
                 // 查询是否已存在(根据被回查人+回查日期+漏检时间唯一)
148
                 // 查询是否已存在(根据被回查人+回查日期+漏检时间唯一)
161
                 BlockedMissCheckStatistics queryParam = new BlockedMissCheckStatistics();
149
                 BlockedMissCheckStatistics queryParam = new BlockedMissCheckStatistics();
162
                 queryParam.setReviewedUserId(data.getReviewedUserId());
150
                 queryParam.setReviewedUserId(data.getReviewedUserId());
163
                 queryParam.setReviewDate(data.getReviewDate());
151
                 queryParam.setReviewDate(data.getReviewDate());
164
                 queryParam.setMissCheckTime(data.getMissCheckTime());
152
                 queryParam.setMissCheckTime(data.getMissCheckTime());
165
                 List<BlockedMissCheckStatistics> existingList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(queryParam);
153
                 List<BlockedMissCheckStatistics> existingList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(queryParam);
166
-                
167
-                if (CollUtil.isEmpty(existingList))
168
-                {
154
+
155
+                if (CollUtil.isEmpty(existingList)) {
169
                     // 新增
156
                     // 新增
170
                     fillIdsByName(data);
157
                     fillIdsByName(data);
171
                     data.setCreateTime(DateUtils.getNowDate());
158
                     data.setCreateTime(DateUtils.getNowDate());
172
                     blockedMissCheckStatisticsMapper.insertBlockedMissCheckStatistics(data);
159
                     blockedMissCheckStatisticsMapper.insertBlockedMissCheckStatistics(data);
173
                     successNum++;
160
                     successNum++;
174
                     successMsg.append("<br/>" + successNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】导入成功");
161
                     successMsg.append("<br/>" + successNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】导入成功");
175
-                }
176
-                else if (isUpdateSupport)
177
-                {
162
+                } else if (isUpdateSupport) {
178
                     // 更新
163
                     // 更新
179
                     BlockedMissCheckStatistics old = existingList.get(0);
164
                     BlockedMissCheckStatistics old = existingList.get(0);
180
                     data.setId(old.getId());
165
                     data.setId(old.getId());
@@ -183,28 +168,21 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
183
                     blockedMissCheckStatisticsMapper.updateBlockedMissCheckStatistics(data);
168
                     blockedMissCheckStatisticsMapper.updateBlockedMissCheckStatistics(data);
184
                     successNum++;
169
                     successNum++;
185
                     successMsg.append("<br/>" + successNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】更新成功");
170
                     successMsg.append("<br/>" + successNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】更新成功");
186
-                }
187
-                else
188
-                {
171
+                } else {
189
                     failureNum++;
172
                     failureNum++;
190
                     failureMsg.append("<br/>" + failureNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】已存在");
173
                     failureMsg.append("<br/>" + failureNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】已存在");
191
                 }
174
                 }
192
-            }
193
-            catch (Exception e)
194
-            {
175
+            } catch (Exception e) {
195
                 failureNum++;
176
                 failureNum++;
196
                 String msg = "<br/>" + failureNum + "、被回查人【" + data.getReviewedUserName() + "】导入失败:";
177
                 String msg = "<br/>" + failureNum + "、被回查人【" + data.getReviewedUserName() + "】导入失败:";
197
                 failureMsg.append(msg + e.getMessage());
178
                 failureMsg.append(msg + e.getMessage());
198
             }
179
             }
199
         }
180
         }
200
-        
201
-        if (failureNum > 0)
202
-        {
181
+
182
+        if (failureNum > 0) {
203
             failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
183
             failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
204
             throw new ServiceException(failureMsg.toString());
184
             throw new ServiceException(failureMsg.toString());
205
-        }
206
-        else
207
-        {
185
+        } else {
208
             successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
186
             successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
209
         }
187
         }
210
         return successMsg.toString();
188
         return successMsg.toString();
@@ -212,28 +190,25 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
212
 
190
 
213
     /**
191
     /**
214
      * 检查数据是否重复(被回查人+回查日期+漏检时间)
192
      * 检查数据是否重复(被回查人+回查日期+漏检时间)
215
-     * 
193
+     *
216
      * @param blockedMissCheckStatistics 漏检统计数据
194
      * @param blockedMissCheckStatistics 漏检统计数据
217
      * @return 重复的数据,如果没有重复返回null
195
      * @return 重复的数据,如果没有重复返回null
218
      */
196
      */
219
     @Override
197
     @Override
220
-    public BlockedMissCheckStatistics checkDuplicate(BlockedMissCheckStatistics blockedMissCheckStatistics)
221
-    {
198
+    public BlockedMissCheckStatistics checkDuplicate(BlockedMissCheckStatistics blockedMissCheckStatistics) {
222
         if (ObjUtil.isNull(blockedMissCheckStatistics.getReviewedUserId())
199
         if (ObjUtil.isNull(blockedMissCheckStatistics.getReviewedUserId())
223
                 || ObjUtil.isNull(blockedMissCheckStatistics.getReviewDate())
200
                 || ObjUtil.isNull(blockedMissCheckStatistics.getReviewDate())
224
-                || ObjUtil.isNull(blockedMissCheckStatistics.getMissCheckTime()))
225
-        {
201
+                || ObjUtil.isNull(blockedMissCheckStatistics.getMissCheckTime())) {
226
             return null;
202
             return null;
227
         }
203
         }
228
-        
204
+
229
         BlockedMissCheckStatistics queryParam = new BlockedMissCheckStatistics();
205
         BlockedMissCheckStatistics queryParam = new BlockedMissCheckStatistics();
230
         queryParam.setReviewedUserId(blockedMissCheckStatistics.getReviewedUserId());
206
         queryParam.setReviewedUserId(blockedMissCheckStatistics.getReviewedUserId());
231
         queryParam.setReviewDate(blockedMissCheckStatistics.getReviewDate());
207
         queryParam.setReviewDate(blockedMissCheckStatistics.getReviewDate());
232
         queryParam.setMissCheckTime(blockedMissCheckStatistics.getMissCheckTime());
208
         queryParam.setMissCheckTime(blockedMissCheckStatistics.getMissCheckTime());
233
         List<BlockedMissCheckStatistics> existingList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(queryParam);
209
         List<BlockedMissCheckStatistics> existingList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(queryParam);
234
-        
235
-        if (CollUtil.isNotEmpty(existingList))
236
-        {
210
+
211
+        if (CollUtil.isNotEmpty(existingList)) {
237
             return existingList.get(0);
212
             return existingList.get(0);
238
         }
213
         }
239
         return null;
214
         return null;
@@ -241,28 +216,24 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
241
 
216
 
242
     /**
217
     /**
243
      * 新增或更新漏检统计(如果数据重复则覆盖更新)
218
      * 新增或更新漏检统计(如果数据重复则覆盖更新)
244
-     * 
219
+     *
245
      * @param blockedMissCheckStatistics 漏检统计
220
      * @param blockedMissCheckStatistics 漏检统计
246
      * @return 结果
221
      * @return 结果
247
      */
222
      */
248
     @Override
223
     @Override
249
     @Transactional
224
     @Transactional
250
-    public int insertOrUpdate(BlockedMissCheckStatistics blockedMissCheckStatistics)
251
-    {
225
+    public int insertOrUpdate(BlockedMissCheckStatistics blockedMissCheckStatistics) {
252
         // 检查是否重复
226
         // 检查是否重复
253
         BlockedMissCheckStatistics existing = checkDuplicate(blockedMissCheckStatistics);
227
         BlockedMissCheckStatistics existing = checkDuplicate(blockedMissCheckStatistics);
254
-        
255
-        if (existing != null)
256
-        {
228
+
229
+        if (existing != null) {
257
             // 数据已存在,执行更新(覆盖)
230
             // 数据已存在,执行更新(覆盖)
258
             blockedMissCheckStatistics.setId(existing.getId());
231
             blockedMissCheckStatistics.setId(existing.getId());
259
-            blockedMissCheckStatistics.setUpdateBy(blockedMissCheckStatistics.getUpdateBy() != null 
232
+            blockedMissCheckStatistics.setUpdateBy(blockedMissCheckStatistics.getUpdateBy() != null
260
                     ? blockedMissCheckStatistics.getUpdateBy() : blockedMissCheckStatistics.getCreateBy());
233
                     ? blockedMissCheckStatistics.getUpdateBy() : blockedMissCheckStatistics.getCreateBy());
261
             blockedMissCheckStatistics.setUpdateTime(DateUtils.getNowDate());
234
             blockedMissCheckStatistics.setUpdateTime(DateUtils.getNowDate());
262
             return blockedMissCheckStatisticsMapper.updateBlockedMissCheckStatistics(blockedMissCheckStatistics);
235
             return blockedMissCheckStatisticsMapper.updateBlockedMissCheckStatistics(blockedMissCheckStatistics);
263
-        }
264
-        else
265
-        {
236
+        } else {
266
             // 数据不存在,执行新增
237
             // 数据不存在,执行新增
267
             blockedMissCheckStatistics.setCreateTime(DateUtils.getNowDate());
238
             blockedMissCheckStatistics.setCreateTime(DateUtils.getNowDate());
268
             return blockedMissCheckStatisticsMapper.insertBlockedMissCheckStatistics(blockedMissCheckStatistics);
239
             return blockedMissCheckStatisticsMapper.insertBlockedMissCheckStatistics(blockedMissCheckStatistics);
@@ -271,118 +242,99 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
271
 
242
 
272
     /**
243
     /**
273
      * 根据名称填充ID字段
244
      * 根据名称填充ID字段
274
-     * 
245
+     *
275
      * @param data 漏检统计数据
246
      * @param data 漏检统计数据
276
      */
247
      */
277
-    private void fillIdsByName(BlockedMissCheckStatistics data)
278
-    {
248
+    private void fillIdsByName(BlockedMissCheckStatistics data) {
279
         // 1. 大队ID - 通过部门表查询
249
         // 1. 大队ID - 通过部门表查询
280
-        if (ObjUtil.isNull(data.getBrigadeId()) && StrUtil.isNotBlank(data.getBrigadeName()))
281
-        {
250
+        if (ObjUtil.isNull(data.getBrigadeId()) && StrUtil.isNotBlank(data.getBrigadeName())) {
282
             SysDept deptQuery = new SysDept();
251
             SysDept deptQuery = new SysDept();
283
             deptQuery.setDeptName(data.getBrigadeName());
252
             deptQuery.setDeptName(data.getBrigadeName());
284
             List<SysDept> deptList = sysDeptService.selectDeptList(deptQuery);
253
             List<SysDept> deptList = sysDeptService.selectDeptList(deptQuery);
285
-            if (CollUtil.isNotEmpty(deptList))
286
-            {
254
+            if (CollUtil.isNotEmpty(deptList)) {
287
                 data.setBrigadeId(deptList.get(0).getDeptId());
255
                 data.setBrigadeId(deptList.get(0).getDeptId());
288
             }
256
             }
289
         }
257
         }
290
 
258
 
291
         // 2. 航站楼ID - 通过位置表查询(level=1)
259
         // 2. 航站楼ID - 通过位置表查询(level=1)
292
-        if (ObjUtil.isNull(data.getTerminalId()) && StrUtil.isNotBlank(data.getTerminalName()))
293
-        {
260
+        if (ObjUtil.isNull(data.getTerminalId()) && StrUtil.isNotBlank(data.getTerminalName())) {
294
             BasePosition positionQuery = new BasePosition();
261
             BasePosition positionQuery = new BasePosition();
295
             positionQuery.setName(data.getTerminalName());
262
             positionQuery.setName(data.getTerminalName());
296
             positionQuery.setLevel(1);
263
             positionQuery.setLevel(1);
297
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
264
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
298
-            if (CollUtil.isNotEmpty(positionList))
299
-            {
265
+            if (CollUtil.isNotEmpty(positionList)) {
300
                 data.setTerminalId(positionList.get(0).getId());
266
                 data.setTerminalId(positionList.get(0).getId());
301
             }
267
             }
302
         }
268
         }
303
 
269
 
304
         // 3. 区域ID - 通过位置表查询(level=2)
270
         // 3. 区域ID - 通过位置表查询(level=2)
305
-        if (ObjUtil.isNull(data.getAreaId()) && StrUtil.isNotBlank(data.getAreaName()))
306
-        {
271
+        if (ObjUtil.isNull(data.getAreaId()) && StrUtil.isNotBlank(data.getAreaName())) {
307
             BasePosition positionQuery = new BasePosition();
272
             BasePosition positionQuery = new BasePosition();
308
             positionQuery.setName(data.getAreaName());
273
             positionQuery.setName(data.getAreaName());
309
             positionQuery.setLevel(2);
274
             positionQuery.setLevel(2);
310
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
275
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
311
-            if (CollUtil.isNotEmpty(positionList))
312
-            {
276
+            if (CollUtil.isNotEmpty(positionList)) {
313
                 data.setAreaId(positionList.get(0).getId());
277
                 data.setAreaId(positionList.get(0).getId());
314
             }
278
             }
315
         }
279
         }
316
 
280
 
317
         // 4. 上岗位置ID - 通过位置表查询(level=3)
281
         // 4. 上岗位置ID - 通过位置表查询(level=3)
318
-        if (ObjUtil.isNull(data.getChannelId()) && StrUtil.isNotBlank(data.getChannelName()))
319
-        {
282
+        if (ObjUtil.isNull(data.getChannelId()) && StrUtil.isNotBlank(data.getChannelName())) {
320
             BasePosition positionQuery = new BasePosition();
283
             BasePosition positionQuery = new BasePosition();
321
             positionQuery.setName(data.getChannelName());
284
             positionQuery.setName(data.getChannelName());
322
             positionQuery.setLevel(3);
285
             positionQuery.setLevel(3);
323
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
286
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
324
-            if (CollUtil.isNotEmpty(positionList))
325
-            {
287
+            if (CollUtil.isNotEmpty(positionList)) {
326
                 data.setChannelId(positionList.get(0).getId());
288
                 data.setChannelId(positionList.get(0).getId());
327
             }
289
             }
328
         }
290
         }
329
 
291
 
330
         // 5. 被回查人ID - 通过用户昵称查询
292
         // 5. 被回查人ID - 通过用户昵称查询
331
-        if (ObjUtil.isNull(data.getReviewedUserId()) && StrUtil.isNotBlank(data.getReviewedUserName()))
332
-        {
293
+        if (ObjUtil.isNull(data.getReviewedUserId()) && StrUtil.isNotBlank(data.getReviewedUserName())) {
333
             SysUser userQuery = new SysUser();
294
             SysUser userQuery = new SysUser();
334
             userQuery.setNickName(data.getReviewedUserName());
295
             userQuery.setNickName(data.getReviewedUserName());
335
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
296
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
336
-            if (CollUtil.isNotEmpty(userList))
337
-            {
297
+            if (CollUtil.isNotEmpty(userList)) {
338
                 data.setReviewedUserId(userList.get(0).getUserId());
298
                 data.setReviewedUserId(userList.get(0).getUserId());
339
             }
299
             }
340
         }
300
         }
341
 
301
 
342
         // 6. 回查人ID - 通过用户昵称查询
302
         // 6. 回查人ID - 通过用户昵称查询
343
-        if (ObjUtil.isNull(data.getReviewUserId()) && StrUtil.isNotBlank(data.getReviewUserName()))
344
-        {
303
+        if (ObjUtil.isNull(data.getReviewUserId()) && StrUtil.isNotBlank(data.getReviewUserName())) {
345
             SysUser userQuery = new SysUser();
304
             SysUser userQuery = new SysUser();
346
             userQuery.setNickName(data.getReviewUserName());
305
             userQuery.setNickName(data.getReviewUserName());
347
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
306
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
348
-            if (CollUtil.isNotEmpty(userList))
349
-            {
307
+            if (CollUtil.isNotEmpty(userList)) {
350
                 data.setReviewUserId(userList.get(0).getUserId());
308
                 data.setReviewUserId(userList.get(0).getUserId());
351
             }
309
             }
352
         }
310
         }
353
 
311
 
354
         // 7. 分管主管ID - 通过用户昵称查询
312
         // 7. 分管主管ID - 通过用户昵称查询
355
-        if (ObjUtil.isNull(data.getSupervisorId()) && StrUtil.isNotBlank(data.getSupervisorName()))
356
-        {
313
+        if (ObjUtil.isNull(data.getSupervisorId()) && StrUtil.isNotBlank(data.getSupervisorName())) {
357
             SysUser userQuery = new SysUser();
314
             SysUser userQuery = new SysUser();
358
             userQuery.setNickName(data.getSupervisorName());
315
             userQuery.setNickName(data.getSupervisorName());
359
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
316
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
360
-            if (CollUtil.isNotEmpty(userList))
361
-            {
317
+            if (CollUtil.isNotEmpty(userList)) {
362
                 data.setSupervisorId(userList.get(0).getUserId());
318
                 data.setSupervisorId(userList.get(0).getUserId());
363
             }
319
             }
364
         }
320
         }
365
 
321
 
366
         // 8. 代管主管ID - 通过用户昵称查询
322
         // 8. 代管主管ID - 通过用户昵称查询
367
-        if (ObjUtil.isNull(data.getActingSupervisorId()) && StrUtil.isNotBlank(data.getActingSupervisorName()))
368
-        {
323
+        if (ObjUtil.isNull(data.getActingSupervisorId()) && StrUtil.isNotBlank(data.getActingSupervisorName())) {
369
             SysUser userQuery = new SysUser();
324
             SysUser userQuery = new SysUser();
370
             userQuery.setNickName(data.getActingSupervisorName());
325
             userQuery.setNickName(data.getActingSupervisorName());
371
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
326
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
372
-            if (CollUtil.isNotEmpty(userList))
373
-            {
327
+            if (CollUtil.isNotEmpty(userList)) {
374
                 data.setActingSupervisorId(userList.get(0).getUserId());
328
                 data.setActingSupervisorId(userList.get(0).getUserId());
375
             }
329
             }
376
         }
330
         }
377
 
331
 
378
         // 9. 分管班组长ID - 通过用户昵称查询
332
         // 9. 分管班组长ID - 通过用户昵称查询
379
-        if (ObjUtil.isNull(data.getTeamLeaderId()) && StrUtil.isNotBlank(data.getTeamLeaderName()))
380
-        {
333
+        if (ObjUtil.isNull(data.getTeamLeaderId()) && StrUtil.isNotBlank(data.getTeamLeaderName())) {
381
             SysUser userQuery = new SysUser();
334
             SysUser userQuery = new SysUser();
382
             userQuery.setNickName(data.getTeamLeaderName());
335
             userQuery.setNickName(data.getTeamLeaderName());
383
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
336
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
384
-            if (CollUtil.isNotEmpty(userList))
385
-            {
337
+            if (CollUtil.isNotEmpty(userList)) {
386
                 data.setTeamLeaderId(userList.get(0).getUserId());
338
                 data.setTeamLeaderId(userList.get(0).getUserId());
387
             }
339
             }
388
         }
340
         }

+ 133 - 80
airport-blocked/src/main/resources/mapper/blocked/BlockedMissCheckStatisticsMapper.xml

@@ -1,90 +1,128 @@
1
 <?xml version="1.0" encoding="UTF-8" ?>
1
 <?xml version="1.0" encoding="UTF-8" ?>
2
 <!DOCTYPE mapper
2
 <!DOCTYPE mapper
3
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5
 <mapper namespace="com.sundot.airport.blocked.mapper.BlockedMissCheckStatisticsMapper">
5
 <mapper namespace="com.sundot.airport.blocked.mapper.BlockedMissCheckStatisticsMapper">
6
-    
6
+
7
     <resultMap type="BlockedMissCheckStatistics" id="BlockedMissCheckStatisticsResult">
7
     <resultMap type="BlockedMissCheckStatistics" id="BlockedMissCheckStatisticsResult">
8
-        <result property="id"    column="id"    />
9
-        <result property="brigadeId"    column="brigade_id"    />
10
-        <result property="brigadeName"    column="brigade_name"    />
11
-        <result property="terminalId"    column="terminal_id"    />
12
-        <result property="terminalName"    column="terminal_name"    />
13
-        <result property="areaId"    column="area_id"    />
14
-        <result property="areaName"    column="area_name"    />
15
-        <result property="channelId"    column="channel_id"    />
16
-        <result property="channelName"    column="channel_name"    />
17
-        <result property="reviewedUserId"    column="reviewed_user_id"    />
18
-        <result property="reviewedUserName"    column="reviewed_user_name"    />
19
-        <result property="reviewUserId"    column="review_user_id"    />
20
-        <result property="reviewUserName"    column="review_user_name"    />
21
-        <result property="supervisorId"    column="supervisor_id"    />
22
-        <result property="supervisorName"    column="supervisor_name"    />
23
-        <result property="actingSupervisorId"    column="acting_supervisor_id"    />
24
-        <result property="actingSupervisorName"    column="acting_supervisor_name"    />
25
-        <result property="teamLeaderId"    column="team_leader_id"    />
26
-        <result property="teamLeaderName"    column="team_leader_name"    />
27
-        <result property="reviewDate"    column="review_date"    />
28
-        <result property="missCheckTime"    column="miss_check_time"    />
29
-        <result property="missCheckTimePeriod"    column="miss_check_time_period"    />
30
-        <result property="missCheckItem"    column="miss_check_item"    />
31
-        <result property="itemLocation"    column="item_location"    />
32
-        <result property="difficultyLevel"    column="difficulty_level"    />
33
-        <result property="discriminationType"    column="discrimination_type"    />
34
-        <result property="isRecovered"    column="is_recovered"    />
35
-        <result property="machineOperatingYears"    column="machine_operating_years"    />
36
-        <result property="certificateLevel"    column="certificate_level"    />
37
-        <result property="gender"    column="gender"    />
38
-        <result property="missCheckReasonCategory"    column="miss_check_reason_category"    />
39
-        <result property="monthlyAssessment"    column="monthly_assessment"    />
40
-        <result property="selfTestHasMissCheck"    column="self_test_has_miss_check"    />
41
-        <result property="createBy"    column="create_by"    />
42
-        <result property="createTime"    column="create_time"    />
43
-        <result property="updateBy"    column="update_by"    />
44
-        <result property="updateTime"    column="update_time"    />
45
-        <result property="remark"    column="remark"    />
46
-        <result property="delFlag"    column="del_flag"    />
8
+        <result property="id" column="id"/>
9
+        <result property="brigadeId" column="brigade_id"/>
10
+        <result property="brigadeName" column="brigade_name"/>
11
+        <result property="terminalId" column="terminal_id"/>
12
+        <result property="terminalName" column="terminal_name"/>
13
+        <result property="areaId" column="area_id"/>
14
+        <result property="areaName" column="area_name"/>
15
+        <result property="channelId" column="channel_id"/>
16
+        <result property="channelName" column="channel_name"/>
17
+        <result property="reviewedUserId" column="reviewed_user_id"/>
18
+        <result property="reviewedUserName" column="reviewed_user_name"/>
19
+        <result property="reviewUserId" column="review_user_id"/>
20
+        <result property="reviewUserName" column="review_user_name"/>
21
+        <result property="supervisorId" column="supervisor_id"/>
22
+        <result property="supervisorName" column="supervisor_name"/>
23
+        <result property="actingSupervisorId" column="acting_supervisor_id"/>
24
+        <result property="actingSupervisorName" column="acting_supervisor_name"/>
25
+        <result property="teamLeaderId" column="team_leader_id"/>
26
+        <result property="teamLeaderName" column="team_leader_name"/>
27
+        <result property="reviewDate" column="review_date"/>
28
+        <result property="missCheckTime" column="miss_check_time"/>
29
+        <result property="missCheckTimePeriod" column="miss_check_time_period"/>
30
+        <result property="missCheckItem" column="miss_check_item"/>
31
+        <result property="itemLocation" column="item_location"/>
32
+        <result property="difficultyLevel" column="difficulty_level"/>
33
+        <result property="discriminationType" column="discrimination_type"/>
34
+        <result property="isRecovered" column="is_recovered"/>
35
+        <result property="machineOperatingYears" column="machine_operating_years"/>
36
+        <result property="certificateLevel" column="certificate_level"/>
37
+        <result property="gender" column="gender"/>
38
+        <result property="missCheckReasonCategory" column="miss_check_reason_category"/>
39
+        <result property="monthlyAssessment" column="monthly_assessment"/>
40
+        <result property="selfTestHasMissCheck" column="self_test_has_miss_check"/>
41
+        <result property="createBy" column="create_by"/>
42
+        <result property="createTime" column="create_time"/>
43
+        <result property="updateBy" column="update_by"/>
44
+        <result property="updateTime" column="update_time"/>
45
+        <result property="remark" column="remark"/>
46
+        <result property="delFlag" column="del_flag"/>
47
     </resultMap>
47
     </resultMap>
48
 
48
 
49
     <sql id="selectBlockedMissCheckStatisticsVo">
49
     <sql id="selectBlockedMissCheckStatisticsVo">
50
-        select id, brigade_id, brigade_name, terminal_id, terminal_name, area_id, area_name, 
51
-               channel_id, channel_name, reviewed_user_id, reviewed_user_name, review_user_id, 
52
-               review_user_name, supervisor_id, supervisor_name, acting_supervisor_id, 
53
-               acting_supervisor_name, team_leader_id, team_leader_name, review_date, 
54
-               miss_check_time, miss_check_time_period, miss_check_item, item_location, 
55
-               difficulty_level, discrimination_type, is_recovered, machine_operating_years, 
56
-               certificate_level, gender, miss_check_reason_category, monthly_assessment, 
57
-               self_test_has_miss_check, create_by, create_time, update_by, update_time, 
58
-               remark, del_flag
50
+        select id,
51
+               brigade_id,
52
+               brigade_name,
53
+               terminal_id,
54
+               terminal_name,
55
+               area_id,
56
+               area_name,
57
+               channel_id,
58
+               channel_name,
59
+               reviewed_user_id,
60
+               reviewed_user_name,
61
+               review_user_id,
62
+               review_user_name,
63
+               supervisor_id,
64
+               supervisor_name,
65
+               acting_supervisor_id,
66
+               acting_supervisor_name,
67
+               team_leader_id,
68
+               team_leader_name,
69
+               review_date,
70
+               miss_check_time,
71
+               miss_check_time_period,
72
+               miss_check_item,
73
+               item_location,
74
+               difficulty_level,
75
+               discrimination_type,
76
+               is_recovered,
77
+               machine_operating_years,
78
+               certificate_level,
79
+               gender,
80
+               miss_check_reason_category,
81
+               monthly_assessment,
82
+               self_test_has_miss_check,
83
+               create_by,
84
+               create_time,
85
+               update_by,
86
+               update_time,
87
+               remark,
88
+               del_flag
59
         from blocked_miss_check_statistics
89
         from blocked_miss_check_statistics
60
     </sql>
90
     </sql>
61
 
91
 
62
-    <select id="selectBlockedMissCheckStatisticsList" parameterType="BlockedMissCheckStatistics" resultMap="BlockedMissCheckStatisticsResult">
92
+    <select id="selectBlockedMissCheckStatisticsList" parameterType="BlockedMissCheckStatistics"
93
+            resultMap="BlockedMissCheckStatisticsResult">
63
         <include refid="selectBlockedMissCheckStatisticsVo"/>
94
         <include refid="selectBlockedMissCheckStatisticsVo"/>
64
-        <where>  
95
+        <where>
65
             del_flag = '0'
96
             del_flag = '0'
66
-            <if test="brigadeId != null "> and brigade_id = #{brigadeId}</if>
67
-            <if test="brigadeName != null  and brigadeName != ''"> and brigade_name like concat('%', #{brigadeName}, '%')</if>
68
-            <if test="terminalId != null "> and terminal_id = #{terminalId}</if>
69
-            <if test="areaId != null "> and area_id = #{areaId}</if>
70
-            <if test="channelId != null "> and channel_id = #{channelId}</if>
71
-            <if test="reviewedUserId != null "> and reviewed_user_id = #{reviewedUserId}</if>
72
-            <if test="reviewedUserName != null  and reviewedUserName != ''"> and reviewed_user_name like concat('%', #{reviewedUserName}, '%')</if>
73
-            <if test="reviewUserId != null "> and review_user_id = #{reviewUserId}</if>
74
-            <if test="reviewDate != null "> and review_date = #{reviewDate}</if>
75
-            <if test="missCheckTime != null "> and DATE_FORMAT(miss_check_time, '%Y-%m-%d %H:%i') = DATE_FORMAT(#{missCheckTime}, '%Y-%m-%d %H:%i')</if>
76
-            <if test="difficultyLevel != null  and difficultyLevel != ''"> and difficulty_level = #{difficultyLevel}</if>
77
-            <if test="gender != null  and gender != ''"> and gender = #{gender}</if>
97
+            <if test="brigadeId != null ">and brigade_id = #{brigadeId}</if>
98
+            <if test="brigadeName != null  and brigadeName != ''">and brigade_name like concat('%', #{brigadeName},
99
+                '%')
100
+            </if>
101
+            <if test="terminalId != null ">and terminal_id = #{terminalId}</if>
102
+            <if test="areaId != null ">and area_id = #{areaId}</if>
103
+            <if test="channelId != null ">and channel_id = #{channelId}</if>
104
+            <if test="reviewedUserId != null ">and reviewed_user_id = #{reviewedUserId}</if>
105
+            <if test="reviewedUserName != null  and reviewedUserName != ''">and reviewed_user_name like concat('%',
106
+                #{reviewedUserName}, '%')
107
+            </if>
108
+            <if test="reviewUserId != null ">and review_user_id = #{reviewUserId}</if>
109
+            <if test="reviewDate != null ">and review_date = #{reviewDate}</if>
110
+            <if test="missCheckTime != null ">and DATE_FORMAT(miss_check_time, '%Y-%m-%d %H:%i') =
111
+                DATE_FORMAT(#{missCheckTime}, '%Y-%m-%d %H:%i')
112
+            </if>
113
+            <if test="difficultyLevel != null  and difficultyLevel != ''">and difficulty_level = #{difficultyLevel}</if>
114
+            <if test="gender != null  and gender != ''">and gender = #{gender}</if>
78
         </where>
115
         </where>
79
         order by review_date desc, miss_check_time desc
116
         order by review_date desc, miss_check_time desc
80
     </select>
117
     </select>
81
-    
118
+
82
     <select id="selectBlockedMissCheckStatisticsById" parameterType="Long" resultMap="BlockedMissCheckStatisticsResult">
119
     <select id="selectBlockedMissCheckStatisticsById" parameterType="Long" resultMap="BlockedMissCheckStatisticsResult">
83
         <include refid="selectBlockedMissCheckStatisticsVo"/>
120
         <include refid="selectBlockedMissCheckStatisticsVo"/>
84
         where id = #{id} and del_flag = '0'
121
         where id = #{id} and del_flag = '0'
85
     </select>
122
     </select>
86
-        
87
-    <insert id="insertBlockedMissCheckStatistics" parameterType="BlockedMissCheckStatistics" useGeneratedKeys="true" keyProperty="id">
123
+
124
+    <insert id="insertBlockedMissCheckStatistics" parameterType="BlockedMissCheckStatistics" useGeneratedKeys="true"
125
+            keyProperty="id">
88
         insert into blocked_miss_check_statistics
126
         insert into blocked_miss_check_statistics
89
         <trim prefix="(" suffix=")" suffixOverrides=",">
127
         <trim prefix="(" suffix=")" suffixOverrides=",">
90
             <if test="brigadeId != null">brigade_id,</if>
128
             <if test="brigadeId != null">brigade_id,</if>
@@ -116,7 +154,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
116
             <if test="machineOperatingYears != null">machine_operating_years,</if>
154
             <if test="machineOperatingYears != null">machine_operating_years,</if>
117
             <if test="certificateLevel != null and certificateLevel != ''">certificate_level,</if>
155
             <if test="certificateLevel != null and certificateLevel != ''">certificate_level,</if>
118
             <if test="gender != null and gender != ''">gender,</if>
156
             <if test="gender != null and gender != ''">gender,</if>
119
-            <if test="missCheckReasonCategory != null and missCheckReasonCategory != ''">miss_check_reason_category,</if>
157
+            <if test="missCheckReasonCategory != null and missCheckReasonCategory != ''">miss_check_reason_category,
158
+            </if>
120
             <if test="monthlyAssessment != null and monthlyAssessment != ''">monthly_assessment,</if>
159
             <if test="monthlyAssessment != null and monthlyAssessment != ''">monthly_assessment,</if>
121
             <if test="selfTestHasMissCheck != null">self_test_has_miss_check,</if>
160
             <if test="selfTestHasMissCheck != null">self_test_has_miss_check,</if>
122
             <if test="createBy != null and createBy != ''">create_by,</if>
161
             <if test="createBy != null and createBy != ''">create_by,</if>
@@ -125,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
125
             <if test="updateTime != null">update_time,</if>
164
             <if test="updateTime != null">update_time,</if>
126
             <if test="remark != null">remark,</if>
165
             <if test="remark != null">remark,</if>
127
             <if test="delFlag != null and delFlag != ''">del_flag,</if>
166
             <if test="delFlag != null and delFlag != ''">del_flag,</if>
128
-         </trim>
167
+        </trim>
129
         <trim prefix="values (" suffix=")" suffixOverrides=",">
168
         <trim prefix="values (" suffix=")" suffixOverrides=",">
130
             <if test="brigadeId != null">#{brigadeId},</if>
169
             <if test="brigadeId != null">#{brigadeId},</if>
131
             <if test="brigadeName != null and brigadeName != ''">#{brigadeName},</if>
170
             <if test="brigadeName != null and brigadeName != ''">#{brigadeName},</if>
@@ -156,7 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
156
             <if test="machineOperatingYears != null">#{machineOperatingYears},</if>
195
             <if test="machineOperatingYears != null">#{machineOperatingYears},</if>
157
             <if test="certificateLevel != null and certificateLevel != ''">#{certificateLevel},</if>
196
             <if test="certificateLevel != null and certificateLevel != ''">#{certificateLevel},</if>
158
             <if test="gender != null and gender != ''">#{gender},</if>
197
             <if test="gender != null and gender != ''">#{gender},</if>
159
-            <if test="missCheckReasonCategory != null and missCheckReasonCategory != ''">#{missCheckReasonCategory},</if>
198
+            <if test="missCheckReasonCategory != null and missCheckReasonCategory != ''">#{missCheckReasonCategory},
199
+            </if>
160
             <if test="monthlyAssessment != null and monthlyAssessment != ''">#{monthlyAssessment},</if>
200
             <if test="monthlyAssessment != null and monthlyAssessment != ''">#{monthlyAssessment},</if>
161
             <if test="selfTestHasMissCheck != null">#{selfTestHasMissCheck},</if>
201
             <if test="selfTestHasMissCheck != null">#{selfTestHasMissCheck},</if>
162
             <if test="createBy != null and createBy != ''">#{createBy},</if>
202
             <if test="createBy != null and createBy != ''">#{createBy},</if>
@@ -165,7 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
165
             <if test="updateTime != null">#{updateTime},</if>
205
             <if test="updateTime != null">#{updateTime},</if>
166
             <if test="remark != null">#{remark},</if>
206
             <if test="remark != null">#{remark},</if>
167
             <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
207
             <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
168
-         </trim>
208
+        </trim>
169
     </insert>
209
     </insert>
170
 
210
 
171
     <update id="updateBlockedMissCheckStatistics" parameterType="BlockedMissCheckStatistics">
211
     <update id="updateBlockedMissCheckStatistics" parameterType="BlockedMissCheckStatistics">
@@ -180,28 +220,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
180
             <if test="channelId != null">channel_id = #{channelId},</if>
220
             <if test="channelId != null">channel_id = #{channelId},</if>
181
             <if test="channelName != null and channelName != ''">channel_name = #{channelName},</if>
221
             <if test="channelName != null and channelName != ''">channel_name = #{channelName},</if>
182
             <if test="reviewedUserId != null">reviewed_user_id = #{reviewedUserId},</if>
222
             <if test="reviewedUserId != null">reviewed_user_id = #{reviewedUserId},</if>
183
-            <if test="reviewedUserName != null and reviewedUserName != ''">reviewed_user_name = #{reviewedUserName},</if>
223
+            <if test="reviewedUserName != null and reviewedUserName != ''">reviewed_user_name = #{reviewedUserName},
224
+            </if>
184
             <if test="reviewUserId != null">review_user_id = #{reviewUserId},</if>
225
             <if test="reviewUserId != null">review_user_id = #{reviewUserId},</if>
185
             <if test="reviewUserName != null and reviewUserName != ''">review_user_name = #{reviewUserName},</if>
226
             <if test="reviewUserName != null and reviewUserName != ''">review_user_name = #{reviewUserName},</if>
186
             <if test="supervisorId != null">supervisor_id = #{supervisorId},</if>
227
             <if test="supervisorId != null">supervisor_id = #{supervisorId},</if>
187
             <if test="supervisorName != null and supervisorName != ''">supervisor_name = #{supervisorName},</if>
228
             <if test="supervisorName != null and supervisorName != ''">supervisor_name = #{supervisorName},</if>
188
             <if test="actingSupervisorId != null">acting_supervisor_id = #{actingSupervisorId},</if>
229
             <if test="actingSupervisorId != null">acting_supervisor_id = #{actingSupervisorId},</if>
189
-            <if test="actingSupervisorName != null and actingSupervisorName != ''">acting_supervisor_name = #{actingSupervisorName},</if>
230
+            <if test="actingSupervisorName != null and actingSupervisorName != ''">acting_supervisor_name =
231
+                #{actingSupervisorName},
232
+            </if>
190
             <if test="teamLeaderId != null">team_leader_id = #{teamLeaderId},</if>
233
             <if test="teamLeaderId != null">team_leader_id = #{teamLeaderId},</if>
191
             <if test="teamLeaderName != null and teamLeaderName != ''">team_leader_name = #{teamLeaderName},</if>
234
             <if test="teamLeaderName != null and teamLeaderName != ''">team_leader_name = #{teamLeaderName},</if>
192
             <if test="reviewDate != null">review_date = #{reviewDate},</if>
235
             <if test="reviewDate != null">review_date = #{reviewDate},</if>
193
             <if test="missCheckTime != null">miss_check_time = #{missCheckTime},</if>
236
             <if test="missCheckTime != null">miss_check_time = #{missCheckTime},</if>
194
-            <if test="missCheckTimePeriod != null and missCheckTimePeriod != ''">miss_check_time_period = #{missCheckTimePeriod},</if>
237
+            <if test="missCheckTimePeriod != null and missCheckTimePeriod != ''">miss_check_time_period =
238
+                #{missCheckTimePeriod},
239
+            </if>
195
             <if test="missCheckItem != null and missCheckItem != ''">miss_check_item = #{missCheckItem},</if>
240
             <if test="missCheckItem != null and missCheckItem != ''">miss_check_item = #{missCheckItem},</if>
196
             <if test="itemLocation != null and itemLocation != ''">item_location = #{itemLocation},</if>
241
             <if test="itemLocation != null and itemLocation != ''">item_location = #{itemLocation},</if>
197
             <if test="difficultyLevel != null and difficultyLevel != ''">difficulty_level = #{difficultyLevel},</if>
242
             <if test="difficultyLevel != null and difficultyLevel != ''">difficulty_level = #{difficultyLevel},</if>
198
-            <if test="discriminationType != null and discriminationType != ''">discrimination_type = #{discriminationType},</if>
243
+            <if test="discriminationType != null and discriminationType != ''">discrimination_type =
244
+                #{discriminationType},
245
+            </if>
199
             <if test="isRecovered != null">is_recovered = #{isRecovered},</if>
246
             <if test="isRecovered != null">is_recovered = #{isRecovered},</if>
200
             <if test="machineOperatingYears != null">machine_operating_years = #{machineOperatingYears},</if>
247
             <if test="machineOperatingYears != null">machine_operating_years = #{machineOperatingYears},</if>
201
             <if test="certificateLevel != null and certificateLevel != ''">certificate_level = #{certificateLevel},</if>
248
             <if test="certificateLevel != null and certificateLevel != ''">certificate_level = #{certificateLevel},</if>
202
             <if test="gender != null and gender != ''">gender = #{gender},</if>
249
             <if test="gender != null and gender != ''">gender = #{gender},</if>
203
-            <if test="missCheckReasonCategory != null and missCheckReasonCategory != ''">miss_check_reason_category = #{missCheckReasonCategory},</if>
204
-            <if test="monthlyAssessment != null and monthlyAssessment != ''">monthly_assessment = #{monthlyAssessment},</if>
250
+            <if test="missCheckReasonCategory != null and missCheckReasonCategory != ''">miss_check_reason_category =
251
+                #{missCheckReasonCategory},
252
+            </if>
253
+            <if test="monthlyAssessment != null and monthlyAssessment != ''">monthly_assessment =
254
+                #{monthlyAssessment},
255
+            </if>
205
             <if test="selfTestHasMissCheck != null">self_test_has_miss_check = #{selfTestHasMissCheck},</if>
256
             <if test="selfTestHasMissCheck != null">self_test_has_miss_check = #{selfTestHasMissCheck},</if>
206
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
257
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
207
             <if test="updateTime != null">update_time = #{updateTime},</if>
258
             <if test="updateTime != null">update_time = #{updateTime},</if>
@@ -211,11 +262,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
211
     </update>
262
     </update>
212
 
263
 
213
     <delete id="deleteBlockedMissCheckStatisticsById" parameterType="Long">
264
     <delete id="deleteBlockedMissCheckStatisticsById" parameterType="Long">
214
-        update blocked_miss_check_statistics set del_flag = '2' where id = #{id}
265
+        update blocked_miss_check_statistics
266
+        set del_flag = '2'
267
+        where id = #{id}
215
     </delete>
268
     </delete>
216
 
269
 
217
     <delete id="deleteBlockedMissCheckStatisticsByIds" parameterType="String">
270
     <delete id="deleteBlockedMissCheckStatisticsByIds" parameterType="String">
218
-        update blocked_miss_check_statistics set del_flag = '2' where id in 
271
+        update blocked_miss_check_statistics set del_flag = '2' where id in
219
         <foreach item="id" collection="array" open="(" separator="," close=")">
272
         <foreach item="id" collection="array" open="(" separator="," close=")">
220
             #{id}
273
             #{id}
221
         </foreach>
274
         </foreach>

+ 23 - 0
airport-common/src/main/java/com/sundot/airport/common/core/domain/BlockedMissCheckStatisticsQueryParamDto.java

@@ -0,0 +1,23 @@
1
+package com.sundot.airport.common.core.domain;
2
+
3
+import lombok.Data;
4
+
5
+/**
6
+ * 漏检统计查询参数
7
+ *
8
+ * @author ruoyi
9
+ */
10
+@Data
11
+public class BlockedMissCheckStatisticsQueryParamDto extends BaseScreenQueryParamDto {
12
+
13
+    /**
14
+     * 大队ID
15
+     */
16
+    private Long brigadeId;
17
+
18
+    /**
19
+     * 大队名称
20
+     */
21
+    private String brigadeName;
22
+
23
+}