Explorar o código

查堵大屏--参数添加

wangxx hai 3 días
pai
achega
760720b773

+ 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
 }

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

@@ -29,6 +29,15 @@ 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="supervisorId != null">
33
+            AND supervisor_id = #{supervisorId}
34
+        </if>
35
+        <if test="teamLeaderId != null">
36
+            AND team_leader_id = #{teamLeaderId}
37
+        </if>
38
+        <if test="missCheckItem != null and missCheckItem != ''">
39
+            AND miss_check_item = #{missCheckItem}
40
+        </if>
32 41
     </select>
33 42
 
34 43
     <!-- 查询各大队查堵总数(用于柱状图) -->
@@ -187,6 +196,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
187 196
         <if test="brigadeId != null">
188 197
             AND brigade_id = #{brigadeId}
189 198
         </if>
199
+        <if test="supervisorId != null">
200
+            AND supervisor_id = #{supervisorId}
201
+        </if>
202
+        <if test="teamLeaderId != null">
203
+            AND team_leader_id = #{teamLeaderId}
204
+        </if>
205
+        <if test="missCheckItem != null and missCheckItem != ''">
206
+            AND miss_check_item = #{missCheckItem}
207
+        </if>
190 208
         GROUP BY miss_check_item
191 209
         ORDER BY count DESC
192 210
     </select>
@@ -233,6 +251,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
233 251
         <if test="brigadeId != null">
234 252
             AND brigade_id = #{brigadeId}
235 253
         </if>
254
+        <if test="supervisorId != null">
255
+            AND supervisor_id = #{supervisorId}
256
+        </if>
257
+        <if test="teamLeaderId != null">
258
+            AND team_leader_id = #{teamLeaderId}
259
+        </if>
260
+        <if test="missCheckItem != null and missCheckItem != ''">
261
+            AND miss_check_item = #{missCheckItem}
262
+        </if>
236 263
         GROUP BY miss_check_item, discrimination_type
237 264
         ORDER BY miss_check_item, count DESC
238 265
     </select>
@@ -356,6 +383,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
356 383
         <if test="supervisorId != null">
357 384
             AND supervisor_id = #{supervisorId}
358 385
         </if>
386
+        <if test="teamLeaderId != null">
387
+            AND team_leader_id = #{teamLeaderId}
388
+        </if>
389
+        <if test="missCheckItem != null and missCheckItem != ''">
390
+            AND miss_check_item = #{missCheckItem}
391
+        </if>
359 392
         GROUP BY supervisor_id, supervisor_name
360 393
         ORDER BY totalCount DESC
361 394
         LIMIT 30
@@ -381,6 +414,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
381 414
         <if test="teamLeaderId != null">
382 415
             AND team_leader_id = #{teamLeaderId}
383 416
         </if>
417
+        <if test="supervisorId != null">
418
+            AND supervisor_id = #{supervisorId}
419
+        </if>
420
+        <if test="missCheckItem != null and missCheckItem != ''">
421
+            AND miss_check_item = #{missCheckItem}
422
+        </if>
384 423
         GROUP BY team_leader_id, team_leader_name
385 424
         ORDER BY totalCount DESC
386 425
         LIMIT 30
@@ -406,6 +445,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
406 445
         <if test="reviewedUserId != null">
407 446
             AND reviewed_user_id = #{reviewedUserId}
408 447
         </if>
448
+        <if test="supervisorId != null">
449
+            AND supervisor_id = #{supervisorId}
450
+        </if>
451
+        <if test="teamLeaderId != null">
452
+            AND team_leader_id = #{teamLeaderId}
453
+        </if>
454
+        <if test="missCheckItem != null and missCheckItem != ''">
455
+            AND miss_check_item = #{missCheckItem}
456
+        </if>
409 457
         GROUP BY reviewed_user_id, reviewed_user_name
410 458
         ORDER BY totalCount DESC
411 459
         LIMIT 30
@@ -431,6 +479,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
431 479
         <if test="itemLocation != null and itemLocation != ''">
432 480
             AND item_location = #{itemLocation}
433 481
         </if>
482
+        <if test="supervisorId != null">
483
+            AND supervisor_id = #{supervisorId}
484
+        </if>
485
+        <if test="teamLeaderId != null">
486
+            AND team_leader_id = #{teamLeaderId}
487
+        </if>
488
+        <if test="missCheckItem != null and missCheckItem != ''">
489
+            AND miss_check_item = #{missCheckItem}
490
+        </if>
434 491
         GROUP BY item_location
435 492
         ORDER BY count DESC
436 493
     </select>
@@ -456,6 +513,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
456 513
         <if test="terminalId != null">
457 514
             AND terminal_id = #{terminalId}
458 515
         </if>
516
+        <if test="supervisorId != null">
517
+            AND supervisor_id = #{supervisorId}
518
+        </if>
519
+        <if test="teamLeaderId != null">
520
+            AND team_leader_id = #{teamLeaderId}
521
+        </if>
522
+        <if test="missCheckItem != null and missCheckItem != ''">
523
+            AND miss_check_item = #{missCheckItem}
524
+        </if>
459 525
         GROUP BY miss_check_reason_category
460 526
         ORDER BY count DESC
461 527
     </select>
@@ -477,6 +543,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
477 543
         <if test="brigadeId != null">
478 544
             AND brigade_id = #{brigadeId}
479 545
         </if>
546
+        <if test="supervisorId != null">
547
+            AND supervisor_id = #{supervisorId}
548
+        </if>
549
+        <if test="teamLeaderId != null">
550
+            AND team_leader_id = #{teamLeaderId}
551
+        </if>
552
+        <if test="missCheckItem != null and missCheckItem != ''">
553
+            AND miss_check_item = #{missCheckItem}
554
+        </if>
480 555
         GROUP BY difficulty_level
481 556
         ORDER BY count DESC
482 557
     </select>
@@ -504,6 +579,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
504 579
         <if test="terminalId != null">
505 580
             AND bms.terminal_id = #{terminalId}
506 581
         </if>
582
+        <if test="supervisorId != null">
583
+            AND bms.supervisor_id = #{supervisorId}
584
+        </if>
585
+        <if test="teamLeaderId != null">
586
+            AND bms.team_leader_id = #{teamLeaderId}
587
+        </if>
588
+        <if test="missCheckItem != null and missCheckItem != ''">
589
+            AND bms.miss_check_item = #{missCheckItem}
590
+        </if>
507 591
         GROUP BY u.qualification_level
508 592
         ORDER BY count DESC
509 593
     </select>
@@ -590,6 +674,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
590 674
             AND review_date &gt;= #{startTime}
591 675
             AND review_date &lt;= #{endTime}
592 676
         </if>
677
+        <if test="supervisorId != null">
678
+            AND supervisor_id = #{supervisorId}
679
+        </if>
680
+        <if test="teamLeaderId != null">
681
+            AND team_leader_id = #{teamLeaderId}
682
+        </if>
683
+        <if test="missCheckItem != null and missCheckItem != ''">
684
+            AND miss_check_item = #{missCheckItem}
685
+        </if>
593 686
     </select>
594 687
 
595 688
     <!-- 查询查堵时间段过检行李数(按大队) -->
@@ -649,6 +742,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
649 742
             AND review_date &gt;= #{startTime}
650 743
             AND review_date &lt;= #{endTime}
651 744
         </if>
745
+        <if test="supervisorId != null">
746
+            AND supervisor_id = #{supervisorId}
747
+        </if>
748
+        <if test="teamLeaderId != null">
749
+            AND team_leader_id = #{teamLeaderId}
750
+        </if>
751
+        <if test="missCheckItem != null and missCheckItem != ''">
752
+            AND miss_check_item = #{missCheckItem}
753
+        </if>
652 754
         GROUP BY supervisor_id, supervisor_name
653 755
         ORDER BY totalCount DESC
654 756
         LIMIT 10
@@ -671,6 +773,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
671 773
             AND review_date &gt;= #{startTime}
672 774
             AND review_date &lt;= #{endTime}
673 775
         </if>
776
+        <if test="supervisorId != null">
777
+            AND supervisor_id = #{supervisorId}
778
+        </if>
779
+        <if test="teamLeaderId != null">
780
+            AND team_leader_id = #{teamLeaderId}
781
+        </if>
782
+        <if test="missCheckItem != null and missCheckItem != ''">
783
+            AND miss_check_item = #{missCheckItem}
784
+        </if>
674 785
         GROUP BY team_leader_id, team_leader_name
675 786
         ORDER BY totalCount DESC
676 787
         LIMIT 10
@@ -693,6 +804,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
693 804
             AND review_date &gt;= #{startTime}
694 805
             AND review_date &lt;= #{endTime}
695 806
         </if>
807
+        <if test="supervisorId != null">
808
+            AND supervisor_id = #{supervisorId}
809
+        </if>
810
+        <if test="teamLeaderId != null">
811
+            AND team_leader_id = #{teamLeaderId}
812
+        </if>
813
+        <if test="missCheckItem != null and missCheckItem != ''">
814
+            AND miss_check_item = #{missCheckItem}
815
+        </if>
696 816
         GROUP BY reviewed_user_id, reviewed_user_name
697 817
         ORDER BY totalCount DESC
698 818
         LIMIT 10
@@ -715,6 +835,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
715 835
             AND review_date &gt;= #{startTime}
716 836
             AND review_date &lt;= #{endTime}
717 837
         </if>
838
+        <if test="supervisorId != null">
839
+            AND supervisor_id = #{supervisorId}
840
+        </if>
841
+        <if test="teamLeaderId != null">
842
+            AND team_leader_id = #{teamLeaderId}
843
+        </if>
844
+        <if test="missCheckItem != null and missCheckItem != ''">
845
+            AND miss_check_item = #{missCheckItem}
846
+        </if>
718 847
         GROUP BY gender
719 848
         ORDER BY count DESC
720 849
     </select>
@@ -736,6 +865,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
736 865
             AND review_date &gt;= #{startTime}
737 866
             AND review_date &lt;= #{endTime}
738 867
         </if>
868
+        <if test="supervisorId != null">
869
+            AND supervisor_id = #{supervisorId}
870
+        </if>
871
+        <if test="teamLeaderId != null">
872
+            AND team_leader_id = #{teamLeaderId}
873
+        </if>
874
+        <if test="missCheckItem != null and missCheckItem != ''">
875
+            AND miss_check_item = #{missCheckItem}
876
+        </if>
739 877
         GROUP BY certificate_level
740 878
         ORDER BY count DESC
741 879
     </select>
@@ -778,6 +916,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
778 916
             AND review_date &gt;= #{startTime}
779 917
             AND review_date &lt;= #{endTime}
780 918
         </if>
919
+        <if test="supervisorId != null">
920
+            AND supervisor_id = #{supervisorId}
921
+        </if>
922
+        <if test="teamLeaderId != null">
923
+            AND team_leader_id = #{teamLeaderId}
924
+        </if>
925
+        <if test="missCheckItem != null and missCheckItem != ''">
926
+            AND miss_check_item = #{missCheckItem}
927
+        </if>
781 928
         GROUP BY supervisor_id, supervisor_name
782 929
         ORDER BY totalCount DESC
783 930
     </select>
@@ -799,6 +946,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
799 946
             AND review_date &gt;= #{startTime}
800 947
             AND review_date &lt;= #{endTime}
801 948
         </if>
949
+        <if test="supervisorId != null">
950
+            AND supervisor_id = #{supervisorId}
951
+        </if>
952
+        <if test="teamLeaderId != null">
953
+            AND team_leader_id = #{teamLeaderId}
954
+        </if>
955
+        <if test="missCheckItem != null and missCheckItem != ''">
956
+            AND miss_check_item = #{missCheckItem}
957
+        </if>
802 958
         GROUP BY machine_operating_years
803 959
         ORDER BY count DESC
804 960
     </select>