|
|
@@ -34,6 +34,8 @@
|
|
34
|
34
|
<result property="attachmentId" column="attachment_id"/>
|
|
35
|
35
|
<result property="attachmentUrl" column="attachment_url"/>
|
|
36
|
36
|
<result property="attachmentName" column="attachment_name"/>
|
|
|
37
|
+ <result property="commonContraband" column="common_contraband"/>
|
|
|
38
|
+ <result property="contrabandDesc" column="contraband_desc"/>
|
|
37
|
39
|
<result property="location" column="location"/>
|
|
38
|
40
|
<result property="locationText" column="location_text"/>
|
|
39
|
41
|
</resultMap>
|
|
|
@@ -68,6 +70,8 @@
|
|
68
|
70
|
attachment_id,
|
|
69
|
71
|
attachment_url,
|
|
70
|
72
|
attachment_name,
|
|
|
73
|
+ common_contraband,
|
|
|
74
|
+ contraband_desc,
|
|
71
|
75
|
location,
|
|
72
|
76
|
location_text
|
|
73
|
77
|
from item_seizure_items
|
|
|
@@ -117,6 +121,12 @@
|
|
117
|
121
|
<if test="attachmentName != null and attachmentName != ''">and attachment_name like concat('%',
|
|
118
|
122
|
#{attachmentName}, '%')
|
|
119
|
123
|
</if>
|
|
|
124
|
+ <if test="commonContraband != null and commonContraband != ''">and common_contraband =
|
|
|
125
|
+ #{commonContraband}
|
|
|
126
|
+ </if>
|
|
|
127
|
+ <if test="contrabandDesc != null and contrabandDesc != ''">and contraband_desc like
|
|
|
128
|
+ concat('%', #{contrabandDesc}, '%')
|
|
|
129
|
+ </if>
|
|
120
|
130
|
</where>
|
|
121
|
131
|
order by create_time desc
|
|
122
|
132
|
</select>
|
|
|
@@ -167,6 +177,8 @@
|
|
167
|
177
|
<if test="attachmentId != null">attachment_id,</if>
|
|
168
|
178
|
<if test="attachmentUrl != null">attachment_url,</if>
|
|
169
|
179
|
<if test="attachmentName != null">attachment_name,</if>
|
|
|
180
|
+ <if test="commonContraband != null">common_contraband,</if>
|
|
|
181
|
+ <if test="contrabandDesc != null">contraband_desc,</if>
|
|
170
|
182
|
<if test="location != null">location,</if>
|
|
171
|
183
|
<if test="locationText != null">location_text,</if>
|
|
172
|
184
|
</trim>
|
|
|
@@ -200,6 +212,8 @@
|
|
200
|
212
|
<if test="attachmentId != null">#{attachmentId},</if>
|
|
201
|
213
|
<if test="attachmentUrl != null">#{attachmentUrl},</if>
|
|
202
|
214
|
<if test="attachmentName != null">#{attachmentName},</if>
|
|
|
215
|
+ <if test="commonContraband != null">#{commonContraband},</if>
|
|
|
216
|
+ <if test="contrabandDesc != null">#{contrabandDesc},</if>
|
|
203
|
217
|
<if test="location != null">#{location},</if>
|
|
204
|
218
|
<if test="locationText != null">#{locationText},</if>
|
|
205
|
219
|
</trim>
|
|
|
@@ -248,6 +262,8 @@
|
|
248
|
262
|
<if test="attachmentId != null">attachment_id = #{attachmentId},</if>
|
|
249
|
263
|
<if test="attachmentUrl != null">attachment_url = #{attachmentUrl},</if>
|
|
250
|
264
|
<if test="attachmentName != null">attachment_name = #{attachmentName},</if>
|
|
|
265
|
+ <if test="commonContraband != null">common_contraband = #{commonContraband},</if>
|
|
|
266
|
+ <if test="contrabandDesc != null">contraband_desc = #{contrabandDesc},</if>
|
|
251
|
267
|
<if test="location != null">location = #{location},</if>
|
|
252
|
268
|
<if test="locationText != null">location_text = #{locationText},</if>
|
|
253
|
269
|
</trim>
|