Przeglądaj źródła

Merge remote-tracking branch 'origin/feature/dev' into feature/dev

chenshudong 3 dni temu
rodzic
commit
96a68d8cf8

+ 6 - 0
airport-blocked/src/main/java/com/sundot/airport/blocked/dto/BlockedDashboardQueryDTO.java

@@ -72,4 +72,10 @@ public class BlockedDashboardQueryDTO implements Serializable {
72
      */
72
      */
73
     @ApiModelProperty("航站楼ID")
73
     @ApiModelProperty("航站楼ID")
74
     private Long terminalId;
74
     private Long terminalId;
75
+
76
+    /**
77
+     * 漏检物品
78
+     */
79
+    @ApiModelProperty("漏检物品")
80
+    private String missCheckItem;
75
 }
81
 }

+ 204 - 0
airport-blocked/src/main/resources/mapper/blocked/BlockedDashboardMapper.xml

@@ -29,6 +29,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
29
             AND review_date >= #{startTime}
29
             AND review_date >= #{startTime}
30
             AND review_date <= #{endTime}
30
             AND review_date <= #{endTime}
31
         </if>
31
         </if>
32
+        <if test="terminalId != null">
33
+            AND terminal_id = #{terminalId}
34
+        </if>
35
+        <if test="supervisorId != null">
36
+            AND supervisor_id = #{supervisorId}
37
+        </if>
38
+        <if test="teamLeaderId != null">
39
+            AND team_leader_id = #{teamLeaderId}
40
+        </if>
41
+        <if test="missCheckItem != null and missCheckItem != ''">
42
+            AND miss_check_item = #{missCheckItem}
43
+        </if>
32
     </select>
44
     </select>
33
 
45
 
34
     <!-- 查询各大队查堵总数(用于柱状图) -->
46
     <!-- 查询各大队查堵总数(用于柱状图) -->
@@ -187,6 +199,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
187
         <if test="brigadeId != null">
199
         <if test="brigadeId != null">
188
             AND brigade_id = #{brigadeId}
200
             AND brigade_id = #{brigadeId}
189
         </if>
201
         </if>
202
+        <if test="terminalId != null">
203
+            AND terminal_id = #{terminalId}
204
+        </if>
205
+        <if test="supervisorId != null">
206
+            AND supervisor_id = #{supervisorId}
207
+        </if>
208
+        <if test="teamLeaderId != null">
209
+            AND team_leader_id = #{teamLeaderId}
210
+        </if>
211
+        <if test="missCheckItem != null and missCheckItem != ''">
212
+            AND miss_check_item = #{missCheckItem}
213
+        </if>
190
         GROUP BY miss_check_item
214
         GROUP BY miss_check_item
191
         ORDER BY count DESC
215
         ORDER BY count DESC
192
     </select>
216
     </select>
@@ -233,6 +257,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
233
         <if test="brigadeId != null">
257
         <if test="brigadeId != null">
234
             AND brigade_id = #{brigadeId}
258
             AND brigade_id = #{brigadeId}
235
         </if>
259
         </if>
260
+        <if test="terminalId != null">
261
+            AND terminal_id = #{terminalId}
262
+        </if>
263
+        <if test="supervisorId != null">
264
+            AND supervisor_id = #{supervisorId}
265
+        </if>
266
+        <if test="teamLeaderId != null">
267
+            AND team_leader_id = #{teamLeaderId}
268
+        </if>
269
+        <if test="missCheckItem != null and missCheckItem != ''">
270
+            AND miss_check_item = #{missCheckItem}
271
+        </if>
236
         GROUP BY miss_check_item, discrimination_type
272
         GROUP BY miss_check_item, discrimination_type
237
         ORDER BY miss_check_item, count DESC
273
         ORDER BY miss_check_item, count DESC
238
     </select>
274
     </select>
@@ -353,9 +389,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
353
         <if test="brigadeId != null">
389
         <if test="brigadeId != null">
354
             AND brigade_id = #{brigadeId}
390
             AND brigade_id = #{brigadeId}
355
         </if>
391
         </if>
392
+        <if test="terminalId != null">
393
+            AND terminal_id = #{terminalId}
394
+        </if>
356
         <if test="supervisorId != null">
395
         <if test="supervisorId != null">
357
             AND supervisor_id = #{supervisorId}
396
             AND supervisor_id = #{supervisorId}
358
         </if>
397
         </if>
398
+        <if test="teamLeaderId != null">
399
+            AND team_leader_id = #{teamLeaderId}
400
+        </if>
401
+        <if test="missCheckItem != null and missCheckItem != ''">
402
+            AND miss_check_item = #{missCheckItem}
403
+        </if>
359
         GROUP BY supervisor_id, supervisor_name
404
         GROUP BY supervisor_id, supervisor_name
360
         ORDER BY totalCount DESC
405
         ORDER BY totalCount DESC
361
         LIMIT 30
406
         LIMIT 30
@@ -378,9 +423,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
378
         <if test="brigadeId != null">
423
         <if test="brigadeId != null">
379
             AND brigade_id = #{brigadeId}
424
             AND brigade_id = #{brigadeId}
380
         </if>
425
         </if>
426
+        <if test="terminalId != null">
427
+            AND terminal_id = #{terminalId}
428
+        </if>
381
         <if test="teamLeaderId != null">
429
         <if test="teamLeaderId != null">
382
             AND team_leader_id = #{teamLeaderId}
430
             AND team_leader_id = #{teamLeaderId}
383
         </if>
431
         </if>
432
+        <if test="supervisorId != null">
433
+            AND supervisor_id = #{supervisorId}
434
+        </if>
435
+        <if test="missCheckItem != null and missCheckItem != ''">
436
+            AND miss_check_item = #{missCheckItem}
437
+        </if>
384
         GROUP BY team_leader_id, team_leader_name
438
         GROUP BY team_leader_id, team_leader_name
385
         ORDER BY totalCount DESC
439
         ORDER BY totalCount DESC
386
         LIMIT 30
440
         LIMIT 30
@@ -403,9 +457,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
403
         <if test="brigadeId != null">
457
         <if test="brigadeId != null">
404
             AND brigade_id = #{brigadeId}
458
             AND brigade_id = #{brigadeId}
405
         </if>
459
         </if>
460
+        <if test="terminalId != null">
461
+            AND terminal_id = #{terminalId}
462
+        </if>
406
         <if test="reviewedUserId != null">
463
         <if test="reviewedUserId != null">
407
             AND reviewed_user_id = #{reviewedUserId}
464
             AND reviewed_user_id = #{reviewedUserId}
408
         </if>
465
         </if>
466
+        <if test="supervisorId != null">
467
+            AND supervisor_id = #{supervisorId}
468
+        </if>
469
+        <if test="teamLeaderId != null">
470
+            AND team_leader_id = #{teamLeaderId}
471
+        </if>
472
+        <if test="missCheckItem != null and missCheckItem != ''">
473
+            AND miss_check_item = #{missCheckItem}
474
+        </if>
409
         GROUP BY reviewed_user_id, reviewed_user_name
475
         GROUP BY reviewed_user_id, reviewed_user_name
410
         ORDER BY totalCount DESC
476
         ORDER BY totalCount DESC
411
         LIMIT 30
477
         LIMIT 30
@@ -428,9 +494,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
428
         <if test="brigadeId != null">
494
         <if test="brigadeId != null">
429
             AND brigade_id = #{brigadeId}
495
             AND brigade_id = #{brigadeId}
430
         </if>
496
         </if>
497
+        <if test="terminalId != null">
498
+            AND terminal_id = #{terminalId}
499
+        </if>
431
         <if test="itemLocation != null and itemLocation != ''">
500
         <if test="itemLocation != null and itemLocation != ''">
432
             AND item_location = #{itemLocation}
501
             AND item_location = #{itemLocation}
433
         </if>
502
         </if>
503
+        <if test="supervisorId != null">
504
+            AND supervisor_id = #{supervisorId}
505
+        </if>
506
+        <if test="teamLeaderId != null">
507
+            AND team_leader_id = #{teamLeaderId}
508
+        </if>
509
+        <if test="missCheckItem != null and missCheckItem != ''">
510
+            AND miss_check_item = #{missCheckItem}
511
+        </if>
434
         GROUP BY item_location
512
         GROUP BY item_location
435
         ORDER BY count DESC
513
         ORDER BY count DESC
436
     </select>
514
     </select>
@@ -456,6 +534,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
456
         <if test="terminalId != null">
534
         <if test="terminalId != null">
457
             AND terminal_id = #{terminalId}
535
             AND terminal_id = #{terminalId}
458
         </if>
536
         </if>
537
+        <if test="supervisorId != null">
538
+            AND supervisor_id = #{supervisorId}
539
+        </if>
540
+        <if test="teamLeaderId != null">
541
+            AND team_leader_id = #{teamLeaderId}
542
+        </if>
543
+        <if test="missCheckItem != null and missCheckItem != ''">
544
+            AND miss_check_item = #{missCheckItem}
545
+        </if>
459
         GROUP BY miss_check_reason_category
546
         GROUP BY miss_check_reason_category
460
         ORDER BY count DESC
547
         ORDER BY count DESC
461
     </select>
548
     </select>
@@ -477,6 +564,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
477
         <if test="brigadeId != null">
564
         <if test="brigadeId != null">
478
             AND brigade_id = #{brigadeId}
565
             AND brigade_id = #{brigadeId}
479
         </if>
566
         </if>
567
+        <if test="terminalId != null">
568
+            AND terminal_id = #{terminalId}
569
+        </if>
570
+        <if test="supervisorId != null">
571
+            AND supervisor_id = #{supervisorId}
572
+        </if>
573
+        <if test="teamLeaderId != null">
574
+            AND team_leader_id = #{teamLeaderId}
575
+        </if>
576
+        <if test="missCheckItem != null and missCheckItem != ''">
577
+            AND miss_check_item = #{missCheckItem}
578
+        </if>
480
         GROUP BY difficulty_level
579
         GROUP BY difficulty_level
481
         ORDER BY count DESC
580
         ORDER BY count DESC
482
     </select>
581
     </select>
@@ -504,6 +603,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
504
         <if test="terminalId != null">
603
         <if test="terminalId != null">
505
             AND bms.terminal_id = #{terminalId}
604
             AND bms.terminal_id = #{terminalId}
506
         </if>
605
         </if>
606
+        <if test="supervisorId != null">
607
+            AND bms.supervisor_id = #{supervisorId}
608
+        </if>
609
+        <if test="teamLeaderId != null">
610
+            AND bms.team_leader_id = #{teamLeaderId}
611
+        </if>
612
+        <if test="missCheckItem != null and missCheckItem != ''">
613
+            AND bms.miss_check_item = #{missCheckItem}
614
+        </if>
507
         GROUP BY u.qualification_level
615
         GROUP BY u.qualification_level
508
         ORDER BY count DESC
616
         ORDER BY count DESC
509
     </select>
617
     </select>
@@ -586,10 +694,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
586
         <if test="brigadeId != null">
694
         <if test="brigadeId != null">
587
             AND brigade_id = #{brigadeId}
695
             AND brigade_id = #{brigadeId}
588
         </if>
696
         </if>
697
+        <if test="terminalId != null">
698
+            AND terminal_id = #{terminalId}
699
+        </if>
589
         <if test="startTime != null and endTime != null">
700
         <if test="startTime != null and endTime != null">
590
             AND review_date &gt;= #{startTime}
701
             AND review_date &gt;= #{startTime}
591
             AND review_date &lt;= #{endTime}
702
             AND review_date &lt;= #{endTime}
592
         </if>
703
         </if>
704
+        <if test="supervisorId != null">
705
+            AND supervisor_id = #{supervisorId}
706
+        </if>
707
+        <if test="teamLeaderId != null">
708
+            AND team_leader_id = #{teamLeaderId}
709
+        </if>
710
+        <if test="missCheckItem != null and missCheckItem != ''">
711
+            AND miss_check_item = #{missCheckItem}
712
+        </if>
593
     </select>
713
     </select>
594
 
714
 
595
     <!-- 查询查堵时间段过检行李数(按大队) -->
715
     <!-- 查询查堵时间段过检行李数(按大队) -->
@@ -645,10 +765,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
645
         <if test="brigadeId != null">
765
         <if test="brigadeId != null">
646
             AND brigade_id = #{brigadeId}
766
             AND brigade_id = #{brigadeId}
647
         </if>
767
         </if>
768
+        <if test="terminalId != null">
769
+            AND terminal_id = #{terminalId}
770
+        </if>
648
         <if test="startTime != null and endTime != null">
771
         <if test="startTime != null and endTime != null">
649
             AND review_date &gt;= #{startTime}
772
             AND review_date &gt;= #{startTime}
650
             AND review_date &lt;= #{endTime}
773
             AND review_date &lt;= #{endTime}
651
         </if>
774
         </if>
775
+        <if test="supervisorId != null">
776
+            AND supervisor_id = #{supervisorId}
777
+        </if>
778
+        <if test="teamLeaderId != null">
779
+            AND team_leader_id = #{teamLeaderId}
780
+        </if>
781
+        <if test="missCheckItem != null and missCheckItem != ''">
782
+            AND miss_check_item = #{missCheckItem}
783
+        </if>
652
         GROUP BY supervisor_id, supervisor_name
784
         GROUP BY supervisor_id, supervisor_name
653
         ORDER BY totalCount DESC
785
         ORDER BY totalCount DESC
654
         LIMIT 10
786
         LIMIT 10
@@ -667,10 +799,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
667
         <if test="brigadeId != null">
799
         <if test="brigadeId != null">
668
             AND brigade_id = #{brigadeId}
800
             AND brigade_id = #{brigadeId}
669
         </if>
801
         </if>
802
+        <if test="terminalId != null">
803
+            AND terminal_id = #{terminalId}
804
+        </if>
670
         <if test="startTime != null and endTime != null">
805
         <if test="startTime != null and endTime != null">
671
             AND review_date &gt;= #{startTime}
806
             AND review_date &gt;= #{startTime}
672
             AND review_date &lt;= #{endTime}
807
             AND review_date &lt;= #{endTime}
673
         </if>
808
         </if>
809
+        <if test="supervisorId != null">
810
+            AND supervisor_id = #{supervisorId}
811
+        </if>
812
+        <if test="teamLeaderId != null">
813
+            AND team_leader_id = #{teamLeaderId}
814
+        </if>
815
+        <if test="missCheckItem != null and missCheckItem != ''">
816
+            AND miss_check_item = #{missCheckItem}
817
+        </if>
674
         GROUP BY team_leader_id, team_leader_name
818
         GROUP BY team_leader_id, team_leader_name
675
         ORDER BY totalCount DESC
819
         ORDER BY totalCount DESC
676
         LIMIT 10
820
         LIMIT 10
@@ -689,10 +833,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
689
         <if test="brigadeId != null">
833
         <if test="brigadeId != null">
690
             AND brigade_id = #{brigadeId}
834
             AND brigade_id = #{brigadeId}
691
         </if>
835
         </if>
836
+        <if test="terminalId != null">
837
+            AND terminal_id = #{terminalId}
838
+        </if>
692
         <if test="startTime != null and endTime != null">
839
         <if test="startTime != null and endTime != null">
693
             AND review_date &gt;= #{startTime}
840
             AND review_date &gt;= #{startTime}
694
             AND review_date &lt;= #{endTime}
841
             AND review_date &lt;= #{endTime}
695
         </if>
842
         </if>
843
+        <if test="supervisorId != null">
844
+            AND supervisor_id = #{supervisorId}
845
+        </if>
846
+        <if test="teamLeaderId != null">
847
+            AND team_leader_id = #{teamLeaderId}
848
+        </if>
849
+        <if test="missCheckItem != null and missCheckItem != ''">
850
+            AND miss_check_item = #{missCheckItem}
851
+        </if>
696
         GROUP BY reviewed_user_id, reviewed_user_name
852
         GROUP BY reviewed_user_id, reviewed_user_name
697
         ORDER BY totalCount DESC
853
         ORDER BY totalCount DESC
698
         LIMIT 10
854
         LIMIT 10
@@ -711,10 +867,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
711
         <if test="brigadeId != null">
867
         <if test="brigadeId != null">
712
             AND brigade_id = #{brigadeId}
868
             AND brigade_id = #{brigadeId}
713
         </if>
869
         </if>
870
+        <if test="terminalId != null">
871
+            AND terminal_id = #{terminalId}
872
+        </if>
714
         <if test="startTime != null and endTime != null">
873
         <if test="startTime != null and endTime != null">
715
             AND review_date &gt;= #{startTime}
874
             AND review_date &gt;= #{startTime}
716
             AND review_date &lt;= #{endTime}
875
             AND review_date &lt;= #{endTime}
717
         </if>
876
         </if>
877
+        <if test="supervisorId != null">
878
+            AND supervisor_id = #{supervisorId}
879
+        </if>
880
+        <if test="teamLeaderId != null">
881
+            AND team_leader_id = #{teamLeaderId}
882
+        </if>
883
+        <if test="missCheckItem != null and missCheckItem != ''">
884
+            AND miss_check_item = #{missCheckItem}
885
+        </if>
718
         GROUP BY gender
886
         GROUP BY gender
719
         ORDER BY count DESC
887
         ORDER BY count DESC
720
     </select>
888
     </select>
@@ -732,10 +900,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
732
         <if test="brigadeId != null">
900
         <if test="brigadeId != null">
733
             AND brigade_id = #{brigadeId}
901
             AND brigade_id = #{brigadeId}
734
         </if>
902
         </if>
903
+        <if test="terminalId != null">
904
+            AND terminal_id = #{terminalId}
905
+        </if>
735
         <if test="startTime != null and endTime != null">
906
         <if test="startTime != null and endTime != null">
736
             AND review_date &gt;= #{startTime}
907
             AND review_date &gt;= #{startTime}
737
             AND review_date &lt;= #{endTime}
908
             AND review_date &lt;= #{endTime}
738
         </if>
909
         </if>
910
+        <if test="supervisorId != null">
911
+            AND supervisor_id = #{supervisorId}
912
+        </if>
913
+        <if test="teamLeaderId != null">
914
+            AND team_leader_id = #{teamLeaderId}
915
+        </if>
916
+        <if test="missCheckItem != null and missCheckItem != ''">
917
+            AND miss_check_item = #{missCheckItem}
918
+        </if>
739
         GROUP BY certificate_level
919
         GROUP BY certificate_level
740
         ORDER BY count DESC
920
         ORDER BY count DESC
741
     </select>
921
     </select>
@@ -774,10 +954,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
774
         <if test="brigadeId != null">
954
         <if test="brigadeId != null">
775
             AND brigade_id = #{brigadeId}
955
             AND brigade_id = #{brigadeId}
776
         </if>
956
         </if>
957
+        <if test="terminalId != null">
958
+            AND terminal_id = #{terminalId}
959
+        </if>
777
         <if test="startTime != null and endTime != null">
960
         <if test="startTime != null and endTime != null">
778
             AND review_date &gt;= #{startTime}
961
             AND review_date &gt;= #{startTime}
779
             AND review_date &lt;= #{endTime}
962
             AND review_date &lt;= #{endTime}
780
         </if>
963
         </if>
964
+        <if test="supervisorId != null">
965
+            AND supervisor_id = #{supervisorId}
966
+        </if>
967
+        <if test="teamLeaderId != null">
968
+            AND team_leader_id = #{teamLeaderId}
969
+        </if>
970
+        <if test="missCheckItem != null and missCheckItem != ''">
971
+            AND miss_check_item = #{missCheckItem}
972
+        </if>
781
         GROUP BY supervisor_id, supervisor_name
973
         GROUP BY supervisor_id, supervisor_name
782
         ORDER BY totalCount DESC
974
         ORDER BY totalCount DESC
783
     </select>
975
     </select>
@@ -795,10 +987,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
795
         <if test="brigadeId != null">
987
         <if test="brigadeId != null">
796
             AND brigade_id = #{brigadeId}
988
             AND brigade_id = #{brigadeId}
797
         </if>
989
         </if>
990
+        <if test="terminalId != null">
991
+            AND terminal_id = #{terminalId}
992
+        </if>
798
         <if test="startTime != null and endTime != null">
993
         <if test="startTime != null and endTime != null">
799
             AND review_date &gt;= #{startTime}
994
             AND review_date &gt;= #{startTime}
800
             AND review_date &lt;= #{endTime}
995
             AND review_date &lt;= #{endTime}
801
         </if>
996
         </if>
997
+        <if test="supervisorId != null">
998
+            AND supervisor_id = #{supervisorId}
999
+        </if>
1000
+        <if test="teamLeaderId != null">
1001
+            AND team_leader_id = #{teamLeaderId}
1002
+        </if>
1003
+        <if test="missCheckItem != null and missCheckItem != ''">
1004
+            AND miss_check_item = #{missCheckItem}
1005
+        </if>
802
         GROUP BY machine_operating_years
1006
         GROUP BY machine_operating_years
803
         ORDER BY count DESC
1007
         ORDER BY count DESC
804
     </select>
1008
     </select>