Просмотр исходного кода

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

chenshudong дней назад: 3
Родитель
Сommit
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 73
     @ApiModelProperty("航站楼ID")
74 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 29
             AND review_date >= #{startTime}
30 30
             AND review_date <= #{endTime}
31 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 44
     </select>
33 45
 
34 46
     <!-- 查询各大队查堵总数(用于柱状图) -->
@@ -187,6 +199,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
187 199
         <if test="brigadeId != null">
188 200
             AND brigade_id = #{brigadeId}
189 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 214
         GROUP BY miss_check_item
191 215
         ORDER BY count DESC
192 216
     </select>
@@ -233,6 +257,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
233 257
         <if test="brigadeId != null">
234 258
             AND brigade_id = #{brigadeId}
235 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 272
         GROUP BY miss_check_item, discrimination_type
237 273
         ORDER BY miss_check_item, count DESC
238 274
     </select>
@@ -353,9 +389,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
353 389
         <if test="brigadeId != null">
354 390
             AND brigade_id = #{brigadeId}
355 391
         </if>
392
+        <if test="terminalId != null">
393
+            AND terminal_id = #{terminalId}
394
+        </if>
356 395
         <if test="supervisorId != null">
357 396
             AND supervisor_id = #{supervisorId}
358 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 404
         GROUP BY supervisor_id, supervisor_name
360 405
         ORDER BY totalCount DESC
361 406
         LIMIT 30
@@ -378,9 +423,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
378 423
         <if test="brigadeId != null">
379 424
             AND brigade_id = #{brigadeId}
380 425
         </if>
426
+        <if test="terminalId != null">
427
+            AND terminal_id = #{terminalId}
428
+        </if>
381 429
         <if test="teamLeaderId != null">
382 430
             AND team_leader_id = #{teamLeaderId}
383 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 438
         GROUP BY team_leader_id, team_leader_name
385 439
         ORDER BY totalCount DESC
386 440
         LIMIT 30
@@ -403,9 +457,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
403 457
         <if test="brigadeId != null">
404 458
             AND brigade_id = #{brigadeId}
405 459
         </if>
460
+        <if test="terminalId != null">
461
+            AND terminal_id = #{terminalId}
462
+        </if>
406 463
         <if test="reviewedUserId != null">
407 464
             AND reviewed_user_id = #{reviewedUserId}
408 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 475
         GROUP BY reviewed_user_id, reviewed_user_name
410 476
         ORDER BY totalCount DESC
411 477
         LIMIT 30
@@ -428,9 +494,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
428 494
         <if test="brigadeId != null">
429 495
             AND brigade_id = #{brigadeId}
430 496
         </if>
497
+        <if test="terminalId != null">
498
+            AND terminal_id = #{terminalId}
499
+        </if>
431 500
         <if test="itemLocation != null and itemLocation != ''">
432 501
             AND item_location = #{itemLocation}
433 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 512
         GROUP BY item_location
435 513
         ORDER BY count DESC
436 514
     </select>
@@ -456,6 +534,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
456 534
         <if test="terminalId != null">
457 535
             AND terminal_id = #{terminalId}
458 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 546
         GROUP BY miss_check_reason_category
460 547
         ORDER BY count DESC
461 548
     </select>
@@ -477,6 +564,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
477 564
         <if test="brigadeId != null">
478 565
             AND brigade_id = #{brigadeId}
479 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 579
         GROUP BY difficulty_level
481 580
         ORDER BY count DESC
482 581
     </select>
@@ -504,6 +603,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
504 603
         <if test="terminalId != null">
505 604
             AND bms.terminal_id = #{terminalId}
506 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 615
         GROUP BY u.qualification_level
508 616
         ORDER BY count DESC
509 617
     </select>
@@ -586,10 +694,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
586 694
         <if test="brigadeId != null">
587 695
             AND brigade_id = #{brigadeId}
588 696
         </if>
697
+        <if test="terminalId != null">
698
+            AND terminal_id = #{terminalId}
699
+        </if>
589 700
         <if test="startTime != null and endTime != null">
590 701
             AND review_date &gt;= #{startTime}
591 702
             AND review_date &lt;= #{endTime}
592 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 713
     </select>
594 714
 
595 715
     <!-- 查询查堵时间段过检行李数(按大队) -->
@@ -645,10 +765,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
645 765
         <if test="brigadeId != null">
646 766
             AND brigade_id = #{brigadeId}
647 767
         </if>
768
+        <if test="terminalId != null">
769
+            AND terminal_id = #{terminalId}
770
+        </if>
648 771
         <if test="startTime != null and endTime != null">
649 772
             AND review_date &gt;= #{startTime}
650 773
             AND review_date &lt;= #{endTime}
651 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 784
         GROUP BY supervisor_id, supervisor_name
653 785
         ORDER BY totalCount DESC
654 786
         LIMIT 10
@@ -667,10 +799,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
667 799
         <if test="brigadeId != null">
668 800
             AND brigade_id = #{brigadeId}
669 801
         </if>
802
+        <if test="terminalId != null">
803
+            AND terminal_id = #{terminalId}
804
+        </if>
670 805
         <if test="startTime != null and endTime != null">
671 806
             AND review_date &gt;= #{startTime}
672 807
             AND review_date &lt;= #{endTime}
673 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 818
         GROUP BY team_leader_id, team_leader_name
675 819
         ORDER BY totalCount DESC
676 820
         LIMIT 10
@@ -689,10 +833,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
689 833
         <if test="brigadeId != null">
690 834
             AND brigade_id = #{brigadeId}
691 835
         </if>
836
+        <if test="terminalId != null">
837
+            AND terminal_id = #{terminalId}
838
+        </if>
692 839
         <if test="startTime != null and endTime != null">
693 840
             AND review_date &gt;= #{startTime}
694 841
             AND review_date &lt;= #{endTime}
695 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 852
         GROUP BY reviewed_user_id, reviewed_user_name
697 853
         ORDER BY totalCount DESC
698 854
         LIMIT 10
@@ -711,10 +867,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
711 867
         <if test="brigadeId != null">
712 868
             AND brigade_id = #{brigadeId}
713 869
         </if>
870
+        <if test="terminalId != null">
871
+            AND terminal_id = #{terminalId}
872
+        </if>
714 873
         <if test="startTime != null and endTime != null">
715 874
             AND review_date &gt;= #{startTime}
716 875
             AND review_date &lt;= #{endTime}
717 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 886
         GROUP BY gender
719 887
         ORDER BY count DESC
720 888
     </select>
@@ -732,10 +900,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
732 900
         <if test="brigadeId != null">
733 901
             AND brigade_id = #{brigadeId}
734 902
         </if>
903
+        <if test="terminalId != null">
904
+            AND terminal_id = #{terminalId}
905
+        </if>
735 906
         <if test="startTime != null and endTime != null">
736 907
             AND review_date &gt;= #{startTime}
737 908
             AND review_date &lt;= #{endTime}
738 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 919
         GROUP BY certificate_level
740 920
         ORDER BY count DESC
741 921
     </select>
@@ -774,10 +954,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
774 954
         <if test="brigadeId != null">
775 955
             AND brigade_id = #{brigadeId}
776 956
         </if>
957
+        <if test="terminalId != null">
958
+            AND terminal_id = #{terminalId}
959
+        </if>
777 960
         <if test="startTime != null and endTime != null">
778 961
             AND review_date &gt;= #{startTime}
779 962
             AND review_date &lt;= #{endTime}
780 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 973
         GROUP BY supervisor_id, supervisor_name
782 974
         ORDER BY totalCount DESC
783 975
     </select>
@@ -795,10 +987,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
795 987
         <if test="brigadeId != null">
796 988
             AND brigade_id = #{brigadeId}
797 989
         </if>
990
+        <if test="terminalId != null">
991
+            AND terminal_id = #{terminalId}
992
+        </if>
798 993
         <if test="startTime != null and endTime != null">
799 994
             AND review_date &gt;= #{startTime}
800 995
             AND review_date &lt;= #{endTime}
801 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 1006
         GROUP BY machine_operating_years
803 1007
         ORDER BY count DESC
804 1008
     </select>