|
|
@@ -43,6 +43,10 @@
|
|
43
|
43
|
<result property="passengerGenderDesc" column="passenger_gender_desc"/>
|
|
44
|
44
|
<result property="inspectUserName" column="inspect_user_name"/>
|
|
45
|
45
|
<result property="processStatus" column="process_status"/>
|
|
|
46
|
+ <result property="attendanceBrigadeId" column="attendance_brigade_id"/>
|
|
|
47
|
+ <result property="attendanceBrigadeName" column="attendance_brigade_name"/>
|
|
|
48
|
+ <result property="inspectBrigadeId" column="inspect_brigade_id"/>
|
|
|
49
|
+ <result property="inspectBrigadeName" column="inspect_brigade_name"/>
|
|
46
|
50
|
</resultMap>
|
|
47
|
51
|
|
|
48
|
52
|
<resultMap type="ItemSeizureRecord" id="ItemSeizureRecordExportResult" extends="ItemSeizureRecordResult">
|
|
|
@@ -113,11 +117,15 @@
|
|
113
|
117
|
check_method_desc,
|
|
114
|
118
|
passenger_gender_desc,
|
|
115
|
119
|
inspect_user_name,
|
|
116
|
|
- process_status
|
|
|
120
|
+ process_status,
|
|
|
121
|
+ attendance_brigade_id,
|
|
|
122
|
+ attendance_brigade_name,
|
|
|
123
|
+ inspect_brigade_id,
|
|
|
124
|
+ inspect_brigade_name
|
|
117
|
125
|
from item_seizure_record
|
|
118
|
126
|
</sql>
|
|
119
|
127
|
|
|
120
|
|
- <select id="selectItemSeizureRecordList" resultMap="ItemSeizureRecordResult">
|
|
|
128
|
+ <select id="selectItemSeizureRecordList" resultMap="ItemSeizureRecordResult">
|
|
121
|
129
|
<include refid="selectItemSeizureRecordVo"/>
|
|
122
|
130
|
<where>
|
|
123
|
131
|
<if test="tenantId != null and tenantId != ''">and tenant_id = #{tenantId}</if>
|
|
|
@@ -139,26 +147,26 @@
|
|
139
|
147
|
<if test="attendanceStationName != null and attendanceStationName != ''">and attendance_station_name like
|
|
140
|
148
|
concat('%', #{attendanceStationName}, '%')
|
|
141
|
149
|
</if>
|
|
142
|
|
- <if test="channelName != null and channelName != ''">and channel_name like concat('%', #{channelName},
|
|
143
|
|
- '%')
|
|
|
150
|
+ <if test="channelName != null and channelName != ''">and channel_name like
|
|
|
151
|
+ concat('%', #{channelName}, '%')
|
|
144
|
152
|
</if>
|
|
145
|
153
|
<if test="regionalCode != null ">and regional_code = #{regionalCode}</if>
|
|
146
|
|
- <if test="regionalName != null and regionalName != ''">and regional_name like concat('%', #{regionalName},
|
|
147
|
|
- '%')
|
|
|
154
|
+ <if test="regionalName != null and regionalName != ''">and regional_name like
|
|
|
155
|
+ concat('%', #{regionalName}, '%')
|
|
148
|
156
|
</if>
|
|
149
|
157
|
<if test="terminlCode != null ">and terminl_code = #{terminlCode}</if>
|
|
150
|
|
- <if test="terminlName != null and terminlName != ''">and terminl_name like concat('%', #{terminlName},
|
|
151
|
|
- '%')
|
|
|
158
|
+ <if test="terminlName != null and terminlName != ''">and terminl_name like
|
|
|
159
|
+ concat('%', #{terminlName}, '%')
|
|
152
|
160
|
</if>
|
|
153
|
|
- <if test="passengerName != null and passengerName != ''">and passenger_name like concat('%',
|
|
154
|
|
- #{passengerName}, '%')
|
|
|
161
|
+ <if test="passengerName != null and passengerName != ''">and passenger_name like
|
|
|
162
|
+ concat('%', #{passengerName}, '%')
|
|
155
|
163
|
</if>
|
|
156
|
164
|
<if test="passengerGender != null and passengerGender != ''">and passenger_gender = #{passengerGender}</if>
|
|
157
|
165
|
<if test="passengerCard != null and passengerCard != ''">and passenger_card = #{passengerCard}</if>
|
|
158
|
166
|
<if test="passengerFlight != null and passengerFlight != ''">and passenger_flight = #{passengerFlight}</if>
|
|
159
|
167
|
<if test="inspectTeamId != null ">and inspect_team_id = #{inspectTeamId}</if>
|
|
160
|
|
- <if test="inspectTeamName != null and inspectTeamName != ''">and inspect_team_name like concat('%',
|
|
161
|
|
- #{inspectTeamName}, '%')
|
|
|
168
|
+ <if test="inspectTeamName != null and inspectTeamName != ''">and inspect_team_name like
|
|
|
169
|
+ concat('%', #{inspectTeamName}, '%')
|
|
162
|
170
|
</if>
|
|
163
|
171
|
<if test="inspectDepartmentId != null ">and inspect_department_id = #{inspectDepartmentId}</if>
|
|
164
|
172
|
<if test="inspectDepartmentName != null and inspectDepartmentName != ''">and inspect_department_name like
|
|
|
@@ -173,10 +181,18 @@
|
|
173
|
181
|
<if test="passengerGenderDesc != null and passengerGenderDesc != ''">and passenger_gender_desc =
|
|
174
|
182
|
#{passengerGenderDesc}
|
|
175
|
183
|
</if>
|
|
176
|
|
- <if test="inspectUserName != null and inspectUserName != ''">and inspect_user_name like concat('%',
|
|
177
|
|
- #{inspectUserName}, '%')
|
|
|
184
|
+ <if test="inspectUserName != null and inspectUserName != ''">and inspect_user_name like
|
|
|
185
|
+ concat('%', #{inspectUserName}, '%')
|
|
178
|
186
|
</if>
|
|
179
|
187
|
<if test="processStatus != null and processStatus != ''">and process_status = #{processStatus}</if>
|
|
|
188
|
+ <if test="attendanceBrigadeId != null ">and attendance_brigade_id = #{attendanceBrigadeId}</if>
|
|
|
189
|
+ <if test="attendanceBrigadeName != null and attendanceBrigadeName != ''">and attendance_brigade_name like
|
|
|
190
|
+ concat('%', #{attendanceBrigadeName}, '%')
|
|
|
191
|
+ </if>
|
|
|
192
|
+ <if test="inspectBrigadeId != null ">and inspect_brigade_id = #{inspectBrigadeId}</if>
|
|
|
193
|
+ <if test="inspectBrigadeName != null and inspectBrigadeName != ''">and inspect_brigade_name like
|
|
|
194
|
+ concat('%', #{inspectBrigadeName}, '%')
|
|
|
195
|
+ </if>
|
|
180
|
196
|
<if test="beginTime !=null and endTime !=null ">
|
|
181
|
197
|
and seizure_time >= #{beginTime}
|
|
182
|
198
|
and seizure_time <![CDATA[ < ]]> date_add(#{endTime} , interval 1 day)
|
|
|
@@ -186,70 +202,70 @@
|
|
186
|
202
|
</select>
|
|
187
|
203
|
|
|
188
|
204
|
<select id="selectItemSeizureRecordListForExport" resultMap="ItemSeizureRecordExportResult">
|
|
189
|
|
- SELECT
|
|
190
|
|
- isr.tenant_id,
|
|
191
|
|
- isr.revision,
|
|
192
|
|
- isr.create_by,
|
|
193
|
|
- isr.create_time,
|
|
194
|
|
- isr.update_by,
|
|
195
|
|
- isr.update_time,
|
|
196
|
|
- isr.inspect_user_id,
|
|
197
|
|
- isr.channel_code,
|
|
198
|
|
- isr.seizure_time,
|
|
199
|
|
- isr.check_method,
|
|
200
|
|
- isr.remark,
|
|
201
|
|
- isr.attendance_id,
|
|
202
|
|
- isr.id,
|
|
203
|
|
- isr.attendance_team_id,
|
|
204
|
|
- isr.attendance_team_name,
|
|
205
|
|
- isr.attendance_department_id,
|
|
206
|
|
- isr.attendance_department_name,
|
|
207
|
|
- isr.attendance_station_id,
|
|
208
|
|
- isr.attendance_station_name,
|
|
209
|
|
- isr.channel_name,
|
|
210
|
|
- isr.regional_code,
|
|
211
|
|
- isr.regional_name,
|
|
212
|
|
- isr.terminl_code,
|
|
213
|
|
- isr.terminl_name,
|
|
214
|
|
- isr.passenger_name,
|
|
215
|
|
- isr.passenger_gender,
|
|
216
|
|
- isr.passenger_card,
|
|
217
|
|
- isr.passenger_flight,
|
|
218
|
|
- isr.inspect_team_id,
|
|
219
|
|
- isr.inspect_team_name,
|
|
220
|
|
- isr.inspect_department_id,
|
|
221
|
|
- isr.inspect_department_name,
|
|
222
|
|
- isr.inspect_station_id,
|
|
223
|
|
- isr.inspect_station_name,
|
|
224
|
|
- isr.check_method_desc,
|
|
225
|
|
- isr.passenger_gender_desc,
|
|
226
|
|
- isr.inspect_user_name,
|
|
227
|
|
- isr.process_status,
|
|
228
|
|
- isi.id AS items_id,
|
|
229
|
|
- isi.record_id,
|
|
230
|
|
- isi.item_code,
|
|
231
|
|
- isi.quantity,
|
|
232
|
|
- isi.remark AS items_remark,
|
|
233
|
|
- isi.check_position_code_one,
|
|
234
|
|
- isi.is_active_concealment,
|
|
235
|
|
- isi.check_position_code_two,
|
|
236
|
|
- isi.check_position_specific,
|
|
237
|
|
- isi.item_name,
|
|
238
|
|
- isi.category_code_one,
|
|
239
|
|
- isi.category_name_one,
|
|
240
|
|
- isi.category_code_two,
|
|
241
|
|
- isi.category_name_two,
|
|
242
|
|
- isi.unit,
|
|
243
|
|
- isi.check_position_name_one,
|
|
244
|
|
- isi.check_position_name_two,
|
|
245
|
|
- isi.unit_desc,
|
|
246
|
|
- isi.handling_method,
|
|
247
|
|
- isi.handling_method_desc,
|
|
248
|
|
- isi.attachment_id,
|
|
249
|
|
- isi.attachment_url,
|
|
250
|
|
- isi.attachment_name,
|
|
251
|
|
- isi.location,
|
|
252
|
|
- isi.location_text
|
|
|
205
|
+ SELECT
|
|
|
206
|
+ isr.tenant_id,
|
|
|
207
|
+ isr.revision,
|
|
|
208
|
+ isr.create_by,
|
|
|
209
|
+ isr.create_time,
|
|
|
210
|
+ isr.update_by,
|
|
|
211
|
+ isr.update_time,
|
|
|
212
|
+ isr.inspect_user_id,
|
|
|
213
|
+ isr.channel_code,
|
|
|
214
|
+ isr.seizure_time,
|
|
|
215
|
+ isr.check_method,
|
|
|
216
|
+ isr.remark,
|
|
|
217
|
+ isr.attendance_id,
|
|
|
218
|
+ isr.id,
|
|
|
219
|
+ isr.attendance_team_id,
|
|
|
220
|
+ isr.attendance_team_name,
|
|
|
221
|
+ isr.attendance_department_id,
|
|
|
222
|
+ isr.attendance_department_name,
|
|
|
223
|
+ isr.attendance_station_id,
|
|
|
224
|
+ isr.attendance_station_name,
|
|
|
225
|
+ isr.channel_name,
|
|
|
226
|
+ isr.regional_code,
|
|
|
227
|
+ isr.regional_name,
|
|
|
228
|
+ isr.terminl_code,
|
|
|
229
|
+ isr.terminl_name,
|
|
|
230
|
+ isr.passenger_name,
|
|
|
231
|
+ isr.passenger_gender,
|
|
|
232
|
+ isr.passenger_card,
|
|
|
233
|
+ isr.passenger_flight,
|
|
|
234
|
+ isr.inspect_team_id,
|
|
|
235
|
+ isr.inspect_team_name,
|
|
|
236
|
+ isr.inspect_department_id,
|
|
|
237
|
+ isr.inspect_department_name,
|
|
|
238
|
+ isr.inspect_station_id,
|
|
|
239
|
+ isr.inspect_station_name,
|
|
|
240
|
+ isr.check_method_desc,
|
|
|
241
|
+ isr.passenger_gender_desc,
|
|
|
242
|
+ isr.inspect_user_name,
|
|
|
243
|
+ isr.process_status,
|
|
|
244
|
+ isi.id AS items_id,
|
|
|
245
|
+ isi.record_id,
|
|
|
246
|
+ isi.item_code,
|
|
|
247
|
+ isi.quantity,
|
|
|
248
|
+ isi.remark AS items_remark,
|
|
|
249
|
+ isi.check_position_code_one,
|
|
|
250
|
+ isi.is_active_concealment,
|
|
|
251
|
+ isi.check_position_code_two,
|
|
|
252
|
+ isi.check_position_specific,
|
|
|
253
|
+ isi.item_name,
|
|
|
254
|
+ isi.category_code_one,
|
|
|
255
|
+ isi.category_name_one,
|
|
|
256
|
+ isi.category_code_two,
|
|
|
257
|
+ isi.category_name_two,
|
|
|
258
|
+ isi.unit,
|
|
|
259
|
+ isi.check_position_name_one,
|
|
|
260
|
+ isi.check_position_name_two,
|
|
|
261
|
+ isi.unit_desc,
|
|
|
262
|
+ isi.handling_method,
|
|
|
263
|
+ isi.handling_method_desc,
|
|
|
264
|
+ isi.attachment_id,
|
|
|
265
|
+ isi.attachment_url,
|
|
|
266
|
+ isi.attachment_name,
|
|
|
267
|
+ isi.location,
|
|
|
268
|
+ isi.location_text
|
|
253
|
269
|
FROM item_seizure_record isr
|
|
254
|
270
|
LEFT JOIN item_seizure_items isi ON isi.record_id = isr.id
|
|
255
|
271
|
<where>
|
|
|
@@ -269,33 +285,37 @@
|
|
269
|
285
|
isr.attendance_department_name like concat('%', #{attendanceDepartmentName}, '%')
|
|
270
|
286
|
</if>
|
|
271
|
287
|
<if test="attendanceStationId != null ">and isr.attendance_station_id = #{attendanceStationId}</if>
|
|
272
|
|
- <if test="attendanceStationName != null and attendanceStationName != ''">and isr.attendance_station_name like
|
|
273
|
|
- concat('%', #{attendanceStationName}, '%')
|
|
|
288
|
+ <if test="attendanceStationName != null and attendanceStationName != ''">and isr.attendance_station_name
|
|
|
289
|
+ like concat('%', #{attendanceStationName}, '%')
|
|
274
|
290
|
</if>
|
|
275
|
|
- <if test="channelName != null and channelName != ''">and isr.channel_name like concat('%', #{channelName},
|
|
276
|
|
- '%')
|
|
|
291
|
+ <if test="channelName != null and channelName != ''">and isr.channel_name like
|
|
|
292
|
+ concat('%', #{channelName}, '%')
|
|
277
|
293
|
</if>
|
|
278
|
294
|
<if test="regionalCode != null ">and isr.regional_code = #{regionalCode}</if>
|
|
279
|
|
- <if test="regionalName != null and regionalName != ''">and isr.regional_name like concat('%', #{regionalName},
|
|
280
|
|
- '%')
|
|
|
295
|
+ <if test="regionalName != null and regionalName != ''">and isr.regional_name like
|
|
|
296
|
+ concat('%', #{regionalName}, '%')
|
|
281
|
297
|
</if>
|
|
282
|
298
|
<if test="terminlCode != null ">and isr.terminl_code = #{terminlCode}</if>
|
|
283
|
|
- <if test="terminlName != null and terminlName != ''">and isr.terminl_name like concat('%', #{terminlName},
|
|
284
|
|
- '%')
|
|
|
299
|
+ <if test="terminlName != null and terminlName != ''">and isr.terminl_name like
|
|
|
300
|
+ concat('%', #{terminlName}, '%')
|
|
285
|
301
|
</if>
|
|
286
|
|
- <if test="passengerName != null and passengerName != ''">and isr.passenger_name like concat('%',
|
|
287
|
|
- #{passengerName}, '%')
|
|
|
302
|
+ <if test="passengerName != null and passengerName != ''">and isr.passenger_name like
|
|
|
303
|
+ concat('%', #{passengerName}, '%')
|
|
|
304
|
+ </if>
|
|
|
305
|
+ <if test="passengerGender != null and passengerGender != ''">and isr.passenger_gender =
|
|
|
306
|
+ #{passengerGender}
|
|
288
|
307
|
</if>
|
|
289
|
|
- <if test="passengerGender != null and passengerGender != ''">and isr.passenger_gender = #{passengerGender}</if>
|
|
290
|
308
|
<if test="passengerCard != null and passengerCard != ''">and isr.passenger_card = #{passengerCard}</if>
|
|
291
|
|
- <if test="passengerFlight != null and passengerFlight != ''">and isr.passenger_flight = #{passengerFlight}</if>
|
|
|
309
|
+ <if test="passengerFlight != null and passengerFlight != ''">and isr.passenger_flight =
|
|
|
310
|
+ #{passengerFlight}
|
|
|
311
|
+ </if>
|
|
292
|
312
|
<if test="inspectTeamId != null ">and isr.inspect_team_id = #{inspectTeamId}</if>
|
|
293
|
|
- <if test="inspectTeamName != null and inspectTeamName != ''">and isr.inspect_team_name like concat('%',
|
|
294
|
|
- #{inspectTeamName}, '%')
|
|
|
313
|
+ <if test="inspectTeamName != null and inspectTeamName != ''">and isr.inspect_team_name like
|
|
|
314
|
+ concat('%', #{inspectTeamName}, '%')
|
|
295
|
315
|
</if>
|
|
296
|
316
|
<if test="inspectDepartmentId != null ">and isr.inspect_department_id = #{inspectDepartmentId}</if>
|
|
297
|
|
- <if test="inspectDepartmentName != null and inspectDepartmentName != ''">and isr.inspect_department_name like
|
|
298
|
|
- concat('%', #{inspectDepartmentName}, '%')
|
|
|
317
|
+ <if test="inspectDepartmentName != null and inspectDepartmentName != ''">and isr.inspect_department_name
|
|
|
318
|
+ like concat('%', #{inspectDepartmentName}, '%')
|
|
299
|
319
|
</if>
|
|
300
|
320
|
<if test="inspectStationId != null ">and isr.inspect_station_id = #{inspectStationId}</if>
|
|
301
|
321
|
<if test="inspectStationName != null and inspectStationName != ''">and isr.inspect_station_name like
|
|
|
@@ -306,8 +326,8 @@
|
|
306
|
326
|
<if test="passengerGenderDesc != null and passengerGenderDesc != ''">and isr.passenger_gender_desc =
|
|
307
|
327
|
#{passengerGenderDesc}
|
|
308
|
328
|
</if>
|
|
309
|
|
- <if test="inspectUserName != null and inspectUserName != ''">and isr.inspect_user_name like concat('%',
|
|
310
|
|
- #{inspectUserName}, '%')
|
|
|
329
|
+ <if test="inspectUserName != null and inspectUserName != ''">and isr.inspect_user_name like
|
|
|
330
|
+ concat('%', #{inspectUserName}, '%')
|
|
311
|
331
|
</if>
|
|
312
|
332
|
<if test="processStatus != null and processStatus != ''">and isr.process_status = #{processStatus}</if>
|
|
313
|
333
|
<if test="beginTime !=null and endTime !=null ">
|
|
|
@@ -363,6 +383,11 @@
|
|
363
|
383
|
<if test="checkMethodDesc != null and checkMethodDesc != ''">check_method_desc,</if>
|
|
364
|
384
|
<if test="passengerGenderDesc != null and passengerGenderDesc != ''">passenger_gender_desc,</if>
|
|
365
|
385
|
<if test="inspectUserName != null and inspectUserName != ''">inspect_user_name,</if>
|
|
|
386
|
+ <if test="processStatus != null">process_status,</if>
|
|
|
387
|
+ <if test="attendanceBrigadeId != null">attendance_brigade_id,</if>
|
|
|
388
|
+ <if test="attendanceBrigadeName != null">attendance_brigade_name,</if>
|
|
|
389
|
+ <if test="inspectBrigadeId != null">inspect_brigade_id,</if>
|
|
|
390
|
+ <if test="inspectBrigadeName != null">inspect_brigade_name,</if>
|
|
366
|
391
|
</trim>
|
|
367
|
392
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
368
|
393
|
<if test="tenantId != null">#{tenantId},</if>
|
|
|
@@ -403,6 +428,11 @@
|
|
403
|
428
|
<if test="checkMethodDesc != null and checkMethodDesc != ''">#{checkMethodDesc},</if>
|
|
404
|
429
|
<if test="passengerGenderDesc != null and passengerGenderDesc != ''">#{passengerGenderDesc},</if>
|
|
405
|
430
|
<if test="inspectUserName != null and inspectUserName != ''">#{inspectUserName},</if>
|
|
|
431
|
+ <if test="processStatus != null">#{processStatus},</if>
|
|
|
432
|
+ <if test="attendanceBrigadeId != null">#{attendanceBrigadeId},</if>
|
|
|
433
|
+ <if test="attendanceBrigadeName != null">#{attendanceBrigadeName},</if>
|
|
|
434
|
+ <if test="inspectBrigadeId != null">#{inspectBrigadeId},</if>
|
|
|
435
|
+ <if test="inspectBrigadeName != null">#{inspectBrigadeName},</if>
|
|
406
|
436
|
</trim>
|
|
407
|
437
|
</insert>
|
|
408
|
438
|
|
|
|
@@ -457,6 +487,11 @@
|
|
457
|
487
|
#{passengerGenderDesc},
|
|
458
|
488
|
</if>
|
|
459
|
489
|
<if test="inspectUserName != null and inspectUserName != ''">inspect_user_name = #{inspectUserName},</if>
|
|
|
490
|
+ <if test="processStatus != null">process_status = #{processStatus},</if>
|
|
|
491
|
+ <if test="attendanceBrigadeId != null">attendance_brigade_id = #{attendanceBrigadeId},</if>
|
|
|
492
|
+ <if test="attendanceBrigadeName != null">attendance_brigade_name = #{attendanceBrigadeName},</if>
|
|
|
493
|
+ <if test="inspectBrigadeId != null">inspect_brigade_id = #{inspectBrigadeId},</if>
|
|
|
494
|
+ <if test="inspectBrigadeName != null">inspect_brigade_name = #{inspectBrigadeName},</if>
|
|
460
|
495
|
</trim>
|
|
461
|
496
|
where id = #{id}
|
|
462
|
497
|
</update>
|