|
|
@@ -211,6 +211,25 @@
|
|
211
|
211
|
<if test="inspectTeamId != null">and isr.inspect_team_id = #{inspectTeamId}</if>
|
|
212
|
212
|
</select>
|
|
213
|
213
|
|
|
|
214
|
+ <!--查获总数量+移交公安数量+故意隐匿数量 不只查审批通过的-->
|
|
|
215
|
+ <select id="getPcTotalSome" resultType="com.sundot.airport.item.domain.ItemLargeScreenTotalSomeDto">
|
|
|
216
|
+ select ifnull(sum(isi.quantity), 0) total,
|
|
|
217
|
+ ifnull(sum(case when isi.handling_method = 'TRANSFER_TO_AIRPORT_POLICE' then isi.quantity else 0 end),
|
|
|
218
|
+ 0) as policeTotal,
|
|
|
219
|
+ ifnull(sum(case when isi.is_active_concealment = 1 then isi.quantity else 0 end), 0) as concealTotal
|
|
|
220
|
+ from item_seizure_record isr
|
|
|
221
|
+ left join item_seizure_items isi on isr.id = isi.record_id
|
|
|
222
|
+ where 1=1
|
|
|
223
|
+ <if test="specifiedDate != null">and date(isr.seizure_time) = #{specifiedDate}</if>
|
|
|
224
|
+ <if test="startDate != null and endDate != null">
|
|
|
225
|
+ and (isr.seizure_time >= #{startDate}
|
|
|
226
|
+ and isr.seizure_time <![CDATA[ < ]]> date_add(#{endDate}, interval 1 day))
|
|
|
227
|
+ </if>
|
|
|
228
|
+ <if test="inspectBrigadeId != null">and isr.inspect_brigade_id = #{inspectBrigadeId}</if>
|
|
|
229
|
+ <if test="inspectDepartmentId != null">and isr.inspect_department_id = #{inspectDepartmentId}</if>
|
|
|
230
|
+ <if test="inspectTeamId != null">and isr.inspect_team_id = #{inspectTeamId}</if>
|
|
|
231
|
+ </select>
|
|
|
232
|
+
|
|
214
|
233
|
<!--查获排名-按大队-->
|
|
215
|
234
|
<select id="rankByBrigade" resultType="com.sundot.airport.item.domain.ItemLargeScreenCommonDto">
|
|
216
|
235
|
select isr.inspect_brigade_id id,
|