Explorar el Código

质控分析报告-勤务组织/风险隐患-部门或用户筛选功能

chenshudong hace 1 semana
padre
commit
df4c1499e1

+ 21 - 0
airport-item/src/main/resources/mapper/item/ItemCategoryStatsMapper.xml

@@ -18,6 +18,9 @@
18 18
         AND isr.process_status = '3' -- 已归档状态
19 19
         AND isi.category_code_one IS NOT NULL
20 20
         AND isi.category_name_one IS NOT NULL
21
+        <if test="brigadeId != null">
22
+            AND isr.inspect_brigade_id = #{brigadeId}
23
+        </if>
21 24
         <if test="departmentId != null">
22 25
             AND isr.inspect_department_id = #{departmentId}
23 26
         </if>
@@ -40,6 +43,9 @@
40 43
         AND isr.seizure_time >= #{startTime}
41 44
         AND isr.seizure_time &lt;= #{endTime}
42 45
         AND isr.process_status = '3' -- 已归档状态
46
+        <if test="brigadeId != null">
47
+            AND isr.inspect_brigade_id = #{brigadeId}
48
+        </if>
43 49
         <if test="departmentId != null">
44 50
             AND isr.inspect_department_id = #{departmentId}
45 51
         </if>
@@ -66,6 +72,9 @@
66 72
         AND isi.is_active_concealment = 1 -- 是否隐匿夹带为"是"
67 73
         AND isi.check_position_code_two IS NOT NULL
68 74
         AND isi.check_position_name_two IS NOT NULL
75
+        <if test="brigadeId != null">
76
+            AND isr.inspect_brigade_id = #{brigadeId}
77
+        </if>
69 78
         <if test="departmentId != null">
70 79
             AND isr.inspect_department_id = #{departmentId}
71 80
         </if>
@@ -89,6 +98,9 @@
89 98
         AND isr.seizure_time &lt;= #{endTime}
90 99
         AND isr.process_status = '3' -- 已归档状态
91 100
         AND isi.is_active_concealment = 1 -- 是否隐匿夹带为"是"
101
+        <if test="brigadeId != null">
102
+            AND isr.inspect_brigade_id = #{brigadeId}
103
+        </if>
92 104
         <if test="departmentId != null">
93 105
             AND isr.inspect_department_id = #{departmentId}
94 106
         </if>
@@ -114,6 +126,9 @@
114 126
         AND isr.process_status = '3' -- 已归档状态
115 127
         AND isr.check_method IS NOT NULL
116 128
         AND isr.check_method_desc IS NOT NULL
129
+        <if test="brigadeId != null">
130
+            AND isr.inspect_brigade_id = #{brigadeId}
131
+        </if>
117 132
         <if test="departmentId != null">
118 133
             AND isr.inspect_department_id = #{departmentId}
119 134
         </if>
@@ -136,6 +151,9 @@
136 151
         AND isr.seizure_time >= #{startTime}
137 152
         AND isr.seizure_time &lt;= #{endTime}
138 153
         AND isr.process_status = '3' -- 已归档状态
154
+        <if test="brigadeId != null">
155
+            AND isr.inspect_brigade_id = #{brigadeId}
156
+        </if>
139 157
         <if test="departmentId != null">
140 158
             AND isr.inspect_department_id = #{departmentId}
141 159
         </if>
@@ -165,6 +183,9 @@
165 183
         AND isr.process_status = '3' -- 已归档状态
166 184
         AND isr.channel_name IS NOT NULL
167 185
         AND isr.regional_name IS NOT NULL
186
+        <if test="brigadeId != null">
187
+            AND isr.inspect_brigade_id = #{brigadeId}
188
+        </if>
168 189
         <if test="departmentId != null">
169 190
             AND isr.inspect_department_id = #{departmentId}
170 191
         </if>