Sfoglia il codice sorgente

漏检统计表-格式化

chenshudong 1 giorno fa
parent
commit
51f80aeb49

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

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

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

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

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

+ 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 3
 import java.util.Date;
4 4
 import java.util.List;
5
+
5 6
 import cn.hutool.core.collection.CollUtil;
6 7
 import cn.hutool.core.util.ObjUtil;
7 8
 import cn.hutool.core.util.StrUtil;
@@ -22,13 +23,12 @@ import com.sundot.airport.system.service.ISysDeptService;
22 23
 
23 24
 /**
24 25
  * 漏检统计Service业务层处理
25
- * 
26
+ *
26 27
  * @author wangxx
27 28
  * @date 2026-04-13
28 29
  */
29 30
 @Service
30
-public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckStatisticsService 
31
-{
31
+public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckStatisticsService {
32 32
     @Autowired
33 33
     private BlockedMissCheckStatisticsMapper blockedMissCheckStatisticsMapper;
34 34
 
@@ -43,37 +43,34 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
43 43
 
44 44
     /**
45 45
      * 查询漏检统计
46
-     * 
46
+     *
47 47
      * @param id 漏检统计主键
48 48
      * @return 漏检统计
49 49
      */
50 50
     @Override
51
-    public BlockedMissCheckStatistics selectBlockedMissCheckStatisticsById(Long id)
52
-    {
51
+    public BlockedMissCheckStatistics selectBlockedMissCheckStatisticsById(Long id) {
53 52
         return blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsById(id);
54 53
     }
55 54
 
56 55
     /**
57 56
      * 查询漏检统计列表
58
-     * 
57
+     *
59 58
      * @param blockedMissCheckStatistics 漏检统计
60 59
      * @return 漏检统计
61 60
      */
62 61
     @Override
63
-    public List<BlockedMissCheckStatistics> selectBlockedMissCheckStatisticsList(BlockedMissCheckStatistics blockedMissCheckStatistics)
64
-    {
62
+    public List<BlockedMissCheckStatistics> selectBlockedMissCheckStatisticsList(BlockedMissCheckStatistics blockedMissCheckStatistics) {
65 63
         return blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(blockedMissCheckStatistics);
66 64
     }
67 65
 
68 66
     /**
69 67
      * 新增漏检统计
70
-     * 
68
+     *
71 69
      * @param blockedMissCheckStatistics 漏检统计
72 70
      * @return 结果
73 71
      */
74 72
     @Override
75
-    public int insertBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics)
76
-    {
73
+    public int insertBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics) {
77 74
         // 根据名称填充ID
78 75
         fillIdsByName(blockedMissCheckStatistics);
79 76
         blockedMissCheckStatistics.setCreateTime(DateUtils.getNowDate());
@@ -82,13 +79,12 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
82 79
 
83 80
     /**
84 81
      * 修改漏检统计
85
-     * 
82
+     *
86 83
      * @param blockedMissCheckStatistics 漏检统计
87 84
      * @return 结果
88 85
      */
89 86
     @Override
90
-    public int updateBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics)
91
-    {
87
+    public int updateBlockedMissCheckStatistics(BlockedMissCheckStatistics blockedMissCheckStatistics) {
92 88
         // 根据名称填充ID
93 89
         fillIdsByName(blockedMissCheckStatistics);
94 90
         blockedMissCheckStatistics.setUpdateTime(DateUtils.getNowDate());
@@ -97,41 +93,37 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
97 93
 
98 94
     /**
99 95
      * 批量删除漏检统计
100
-     * 
96
+     *
101 97
      * @param ids 需要删除的漏检统计主键
102 98
      * @return 结果
103 99
      */
104 100
     @Override
105
-    public int deleteBlockedMissCheckStatisticsByIds(Long[] ids)
106
-    {
101
+    public int deleteBlockedMissCheckStatisticsByIds(Long[] ids) {
107 102
         return blockedMissCheckStatisticsMapper.deleteBlockedMissCheckStatisticsByIds(ids);
108 103
     }
109 104
 
110 105
     /**
111 106
      * 删除漏检统计信息
112
-     * 
107
+     *
113 108
      * @param id 漏检统计主键
114 109
      * @return 结果
115 110
      */
116 111
     @Override
117
-    public int deleteBlockedMissCheckStatisticsById(Long id)
118
-    {
112
+    public int deleteBlockedMissCheckStatisticsById(Long id) {
119 113
         return blockedMissCheckStatisticsMapper.deleteBlockedMissCheckStatisticsById(id);
120 114
     }
121 115
 
122 116
     /**
123 117
      * 导入漏检统计数据
124
-     * 
118
+     *
125 119
      * @param list 数据列表
126 120
      * @param isUpdateSupport 是否更新支持,如果已存在,则进行更新数据
127 121
      * @return 结果
128 122
      */
129 123
     @Transactional(rollbackFor = Exception.class)
130 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 127
             throw new ServiceException("导入漏检统计数据不能为空!");
136 128
         }
137 129
 
@@ -139,42 +131,35 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
139 131
         int failureNum = 0;
140 132
         StringBuilder successMsg = new StringBuilder();
141 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 138
                     failureNum++;
150 139
                     failureMsg.append("<br/>" + failureNum + "、回查日期不能为空");
151 140
                     continue;
152 141
                 }
153
-                if (ObjUtil.isNull(data.getMissCheckTime()))
154
-                {
142
+                if (ObjUtil.isNull(data.getMissCheckTime())) {
155 143
                     failureNum++;
156 144
                     failureMsg.append("<br/>" + failureNum + "、漏检时间不能为空");
157 145
                     continue;
158 146
                 }
159
-                
147
+
160 148
                 // 查询是否已存在(根据被回查人+回查日期+漏检时间唯一)
161 149
                 BlockedMissCheckStatistics queryParam = new BlockedMissCheckStatistics();
162 150
                 queryParam.setReviewedUserId(data.getReviewedUserId());
163 151
                 queryParam.setReviewDate(data.getReviewDate());
164 152
                 queryParam.setMissCheckTime(data.getMissCheckTime());
165 153
                 List<BlockedMissCheckStatistics> existingList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(queryParam);
166
-                
167
-                if (CollUtil.isEmpty(existingList))
168
-                {
154
+
155
+                if (CollUtil.isEmpty(existingList)) {
169 156
                     // 新增
170 157
                     fillIdsByName(data);
171 158
                     data.setCreateTime(DateUtils.getNowDate());
172 159
                     blockedMissCheckStatisticsMapper.insertBlockedMissCheckStatistics(data);
173 160
                     successNum++;
174 161
                     successMsg.append("<br/>" + successNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】导入成功");
175
-                }
176
-                else if (isUpdateSupport)
177
-                {
162
+                } else if (isUpdateSupport) {
178 163
                     // 更新
179 164
                     BlockedMissCheckStatistics old = existingList.get(0);
180 165
                     data.setId(old.getId());
@@ -183,28 +168,21 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
183 168
                     blockedMissCheckStatisticsMapper.updateBlockedMissCheckStatistics(data);
184 169
                     successNum++;
185 170
                     successMsg.append("<br/>" + successNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】更新成功");
186
-                }
187
-                else
188
-                {
171
+                } else {
189 172
                     failureNum++;
190 173
                     failureMsg.append("<br/>" + failureNum + "、被回查人【" + data.getReviewedUserName() + "】、回查日期【" + data.getReviewDate() + "】、漏检时间【" + data.getMissCheckTime() + "】已存在");
191 174
                 }
192
-            }
193
-            catch (Exception e)
194
-            {
175
+            } catch (Exception e) {
195 176
                 failureNum++;
196 177
                 String msg = "<br/>" + failureNum + "、被回查人【" + data.getReviewedUserName() + "】导入失败:";
197 178
                 failureMsg.append(msg + e.getMessage());
198 179
             }
199 180
         }
200
-        
201
-        if (failureNum > 0)
202
-        {
181
+
182
+        if (failureNum > 0) {
203 183
             failureMsg.insert(0, "很抱歉,导入失败!共 " + failureNum + " 条数据格式不正确,错误如下:");
204 184
             throw new ServiceException(failureMsg.toString());
205
-        }
206
-        else
207
-        {
185
+        } else {
208 186
             successMsg.insert(0, "恭喜您,数据已全部导入成功!共 " + successNum + " 条,数据如下:");
209 187
         }
210 188
         return successMsg.toString();
@@ -212,28 +190,25 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
212 190
 
213 191
     /**
214 192
      * 检查数据是否重复(被回查人+回查日期+漏检时间)
215
-     * 
193
+     *
216 194
      * @param blockedMissCheckStatistics 漏检统计数据
217 195
      * @return 重复的数据,如果没有重复返回null
218 196
      */
219 197
     @Override
220
-    public BlockedMissCheckStatistics checkDuplicate(BlockedMissCheckStatistics blockedMissCheckStatistics)
221
-    {
198
+    public BlockedMissCheckStatistics checkDuplicate(BlockedMissCheckStatistics blockedMissCheckStatistics) {
222 199
         if (ObjUtil.isNull(blockedMissCheckStatistics.getReviewedUserId())
223 200
                 || ObjUtil.isNull(blockedMissCheckStatistics.getReviewDate())
224
-                || ObjUtil.isNull(blockedMissCheckStatistics.getMissCheckTime()))
225
-        {
201
+                || ObjUtil.isNull(blockedMissCheckStatistics.getMissCheckTime())) {
226 202
             return null;
227 203
         }
228
-        
204
+
229 205
         BlockedMissCheckStatistics queryParam = new BlockedMissCheckStatistics();
230 206
         queryParam.setReviewedUserId(blockedMissCheckStatistics.getReviewedUserId());
231 207
         queryParam.setReviewDate(blockedMissCheckStatistics.getReviewDate());
232 208
         queryParam.setMissCheckTime(blockedMissCheckStatistics.getMissCheckTime());
233 209
         List<BlockedMissCheckStatistics> existingList = blockedMissCheckStatisticsMapper.selectBlockedMissCheckStatisticsList(queryParam);
234
-        
235
-        if (CollUtil.isNotEmpty(existingList))
236
-        {
210
+
211
+        if (CollUtil.isNotEmpty(existingList)) {
237 212
             return existingList.get(0);
238 213
         }
239 214
         return null;
@@ -241,28 +216,24 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
241 216
 
242 217
     /**
243 218
      * 新增或更新漏检统计(如果数据重复则覆盖更新)
244
-     * 
219
+     *
245 220
      * @param blockedMissCheckStatistics 漏检统计
246 221
      * @return 结果
247 222
      */
248 223
     @Override
249 224
     @Transactional
250
-    public int insertOrUpdate(BlockedMissCheckStatistics blockedMissCheckStatistics)
251
-    {
225
+    public int insertOrUpdate(BlockedMissCheckStatistics blockedMissCheckStatistics) {
252 226
         // 检查是否重复
253 227
         BlockedMissCheckStatistics existing = checkDuplicate(blockedMissCheckStatistics);
254
-        
255
-        if (existing != null)
256
-        {
228
+
229
+        if (existing != null) {
257 230
             // 数据已存在,执行更新(覆盖)
258 231
             blockedMissCheckStatistics.setId(existing.getId());
259
-            blockedMissCheckStatistics.setUpdateBy(blockedMissCheckStatistics.getUpdateBy() != null 
232
+            blockedMissCheckStatistics.setUpdateBy(blockedMissCheckStatistics.getUpdateBy() != null
260 233
                     ? blockedMissCheckStatistics.getUpdateBy() : blockedMissCheckStatistics.getCreateBy());
261 234
             blockedMissCheckStatistics.setUpdateTime(DateUtils.getNowDate());
262 235
             return blockedMissCheckStatisticsMapper.updateBlockedMissCheckStatistics(blockedMissCheckStatistics);
263
-        }
264
-        else
265
-        {
236
+        } else {
266 237
             // 数据不存在,执行新增
267 238
             blockedMissCheckStatistics.setCreateTime(DateUtils.getNowDate());
268 239
             return blockedMissCheckStatisticsMapper.insertBlockedMissCheckStatistics(blockedMissCheckStatistics);
@@ -271,118 +242,99 @@ public class BlockedMissCheckStatisticsServiceImpl implements IBlockedMissCheckS
271 242
 
272 243
     /**
273 244
      * 根据名称填充ID字段
274
-     * 
245
+     *
275 246
      * @param data 漏检统计数据
276 247
      */
277
-    private void fillIdsByName(BlockedMissCheckStatistics data)
278
-    {
248
+    private void fillIdsByName(BlockedMissCheckStatistics data) {
279 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 251
             SysDept deptQuery = new SysDept();
283 252
             deptQuery.setDeptName(data.getBrigadeName());
284 253
             List<SysDept> deptList = sysDeptService.selectDeptList(deptQuery);
285
-            if (CollUtil.isNotEmpty(deptList))
286
-            {
254
+            if (CollUtil.isNotEmpty(deptList)) {
287 255
                 data.setBrigadeId(deptList.get(0).getDeptId());
288 256
             }
289 257
         }
290 258
 
291 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 261
             BasePosition positionQuery = new BasePosition();
295 262
             positionQuery.setName(data.getTerminalName());
296 263
             positionQuery.setLevel(1);
297 264
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
298
-            if (CollUtil.isNotEmpty(positionList))
299
-            {
265
+            if (CollUtil.isNotEmpty(positionList)) {
300 266
                 data.setTerminalId(positionList.get(0).getId());
301 267
             }
302 268
         }
303 269
 
304 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 272
             BasePosition positionQuery = new BasePosition();
308 273
             positionQuery.setName(data.getAreaName());
309 274
             positionQuery.setLevel(2);
310 275
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
311
-            if (CollUtil.isNotEmpty(positionList))
312
-            {
276
+            if (CollUtil.isNotEmpty(positionList)) {
313 277
                 data.setAreaId(positionList.get(0).getId());
314 278
             }
315 279
         }
316 280
 
317 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 283
             BasePosition positionQuery = new BasePosition();
321 284
             positionQuery.setName(data.getChannelName());
322 285
             positionQuery.setLevel(3);
323 286
             List<BasePosition> positionList = basePositionService.selectBasePositionList(positionQuery);
324
-            if (CollUtil.isNotEmpty(positionList))
325
-            {
287
+            if (CollUtil.isNotEmpty(positionList)) {
326 288
                 data.setChannelId(positionList.get(0).getId());
327 289
             }
328 290
         }
329 291
 
330 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 294
             SysUser userQuery = new SysUser();
334 295
             userQuery.setNickName(data.getReviewedUserName());
335 296
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
336
-            if (CollUtil.isNotEmpty(userList))
337
-            {
297
+            if (CollUtil.isNotEmpty(userList)) {
338 298
                 data.setReviewedUserId(userList.get(0).getUserId());
339 299
             }
340 300
         }
341 301
 
342 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 304
             SysUser userQuery = new SysUser();
346 305
             userQuery.setNickName(data.getReviewUserName());
347 306
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
348
-            if (CollUtil.isNotEmpty(userList))
349
-            {
307
+            if (CollUtil.isNotEmpty(userList)) {
350 308
                 data.setReviewUserId(userList.get(0).getUserId());
351 309
             }
352 310
         }
353 311
 
354 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 314
             SysUser userQuery = new SysUser();
358 315
             userQuery.setNickName(data.getSupervisorName());
359 316
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
360
-            if (CollUtil.isNotEmpty(userList))
361
-            {
317
+            if (CollUtil.isNotEmpty(userList)) {
362 318
                 data.setSupervisorId(userList.get(0).getUserId());
363 319
             }
364 320
         }
365 321
 
366 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 324
             SysUser userQuery = new SysUser();
370 325
             userQuery.setNickName(data.getActingSupervisorName());
371 326
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
372
-            if (CollUtil.isNotEmpty(userList))
373
-            {
327
+            if (CollUtil.isNotEmpty(userList)) {
374 328
                 data.setActingSupervisorId(userList.get(0).getUserId());
375 329
             }
376 330
         }
377 331
 
378 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 334
             SysUser userQuery = new SysUser();
382 335
             userQuery.setNickName(data.getTeamLeaderName());
383 336
             List<SysUser> userList = sysUserService.selectUserList(userQuery);
384
-            if (CollUtil.isNotEmpty(userList))
385
-            {
337
+            if (CollUtil.isNotEmpty(userList)) {
386 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 1
 <?xml version="1.0" encoding="UTF-8" ?>
2 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 5
 <mapper namespace="com.sundot.airport.blocked.mapper.BlockedMissCheckStatisticsMapper">
6
-    
6
+
7 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 47
     </resultMap>
48 48
 
49 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 89
         from blocked_miss_check_statistics
60 90
     </sql>
61 91
 
62
-    <select id="selectBlockedMissCheckStatisticsList" parameterType="BlockedMissCheckStatistics" resultMap="BlockedMissCheckStatisticsResult">
92
+    <select id="selectBlockedMissCheckStatisticsList" parameterType="BlockedMissCheckStatistics"
93
+            resultMap="BlockedMissCheckStatisticsResult">
63 94
         <include refid="selectBlockedMissCheckStatisticsVo"/>
64
-        <where>  
95
+        <where>
65 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 115
         </where>
79 116
         order by review_date desc, miss_check_time desc
80 117
     </select>
81
-    
118
+
82 119
     <select id="selectBlockedMissCheckStatisticsById" parameterType="Long" resultMap="BlockedMissCheckStatisticsResult">
83 120
         <include refid="selectBlockedMissCheckStatisticsVo"/>
84 121
         where id = #{id} and del_flag = '0'
85 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 126
         insert into blocked_miss_check_statistics
89 127
         <trim prefix="(" suffix=")" suffixOverrides=",">
90 128
             <if test="brigadeId != null">brigade_id,</if>
@@ -116,7 +154,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
116 154
             <if test="machineOperatingYears != null">machine_operating_years,</if>
117 155
             <if test="certificateLevel != null and certificateLevel != ''">certificate_level,</if>
118 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 159
             <if test="monthlyAssessment != null and monthlyAssessment != ''">monthly_assessment,</if>
121 160
             <if test="selfTestHasMissCheck != null">self_test_has_miss_check,</if>
122 161
             <if test="createBy != null and createBy != ''">create_by,</if>
@@ -125,7 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
125 164
             <if test="updateTime != null">update_time,</if>
126 165
             <if test="remark != null">remark,</if>
127 166
             <if test="delFlag != null and delFlag != ''">del_flag,</if>
128
-         </trim>
167
+        </trim>
129 168
         <trim prefix="values (" suffix=")" suffixOverrides=",">
130 169
             <if test="brigadeId != null">#{brigadeId},</if>
131 170
             <if test="brigadeName != null and brigadeName != ''">#{brigadeName},</if>
@@ -156,7 +195,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
156 195
             <if test="machineOperatingYears != null">#{machineOperatingYears},</if>
157 196
             <if test="certificateLevel != null and certificateLevel != ''">#{certificateLevel},</if>
158 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 200
             <if test="monthlyAssessment != null and monthlyAssessment != ''">#{monthlyAssessment},</if>
161 201
             <if test="selfTestHasMissCheck != null">#{selfTestHasMissCheck},</if>
162 202
             <if test="createBy != null and createBy != ''">#{createBy},</if>
@@ -165,7 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
165 205
             <if test="updateTime != null">#{updateTime},</if>
166 206
             <if test="remark != null">#{remark},</if>
167 207
             <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
168
-         </trim>
208
+        </trim>
169 209
     </insert>
170 210
 
171 211
     <update id="updateBlockedMissCheckStatistics" parameterType="BlockedMissCheckStatistics">
@@ -180,28 +220,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
180 220
             <if test="channelId != null">channel_id = #{channelId},</if>
181 221
             <if test="channelName != null and channelName != ''">channel_name = #{channelName},</if>
182 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 225
             <if test="reviewUserId != null">review_user_id = #{reviewUserId},</if>
185 226
             <if test="reviewUserName != null and reviewUserName != ''">review_user_name = #{reviewUserName},</if>
186 227
             <if test="supervisorId != null">supervisor_id = #{supervisorId},</if>
187 228
             <if test="supervisorName != null and supervisorName != ''">supervisor_name = #{supervisorName},</if>
188 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 233
             <if test="teamLeaderId != null">team_leader_id = #{teamLeaderId},</if>
191 234
             <if test="teamLeaderName != null and teamLeaderName != ''">team_leader_name = #{teamLeaderName},</if>
192 235
             <if test="reviewDate != null">review_date = #{reviewDate},</if>
193 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 240
             <if test="missCheckItem != null and missCheckItem != ''">miss_check_item = #{missCheckItem},</if>
196 241
             <if test="itemLocation != null and itemLocation != ''">item_location = #{itemLocation},</if>
197 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 246
             <if test="isRecovered != null">is_recovered = #{isRecovered},</if>
200 247
             <if test="machineOperatingYears != null">machine_operating_years = #{machineOperatingYears},</if>
201 248
             <if test="certificateLevel != null and certificateLevel != ''">certificate_level = #{certificateLevel},</if>
202 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 256
             <if test="selfTestHasMissCheck != null">self_test_has_miss_check = #{selfTestHasMissCheck},</if>
206 257
             <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
207 258
             <if test="updateTime != null">update_time = #{updateTime},</if>
@@ -211,11 +262,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
211 262
     </update>
212 263
 
213 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 268
     </delete>
216 269
 
217 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 272
         <foreach item="id" collection="array" open="(" separator="," close=")">
220 273
             #{id}
221 274
         </foreach>