Explorar o código

查获记录-是否常见违禁品+违禁品描述

chenshudong hai 1 semana
pai
achega
6a8a4d1df0

+ 4 - 2
airport-admin/src/main/java/com/sundot/airport/web/controller/item/ItemSeizureRecordController.java

@@ -166,7 +166,8 @@ public class ItemSeizureRecordController extends BaseController {
166 166
                     exportVO.setCheckPositionNameTwo("");
167 167
                     exportVO.setHandlingMethod("");
168 168
                     exportVO.setIsActiveConcealmentDesc("");
169
-
169
+                    exportVO.setCommonContraband(null);
170
+                    exportVO.setContrabandDesc("");
170 171
                     exportList.add(exportVO);
171 172
                 } else {
172 173
                     // 处理有物品的记录
@@ -201,7 +202,8 @@ public class ItemSeizureRecordController extends BaseController {
201 202
                         String handlingMethodLabel = DictUtils.getDictLabel("item_handling_method", item.getHandlingMethod());
202 203
                         exportVO.setHandlingMethod(StringUtils.isNotEmpty(handlingMethodLabel) ? handlingMethodLabel : item.getHandlingMethod());
203 204
                         exportVO.setIsActiveConcealmentDesc("1".equals(String.valueOf(item.getIsActiveConcealment())) ? "是" : "否");
204
-
205
+                        exportVO.setCommonContraband(item.getCommonContraband());
206
+                        exportVO.setContrabandDesc(item.getContrabandDesc());
205 207
                         exportList.add(exportVO);
206 208
                     }
207 209
                 }

+ 30 - 0
airport-item/src/main/java/com/sundot/airport/item/domain/ItemSeizureItems.java

@@ -177,6 +177,18 @@ public class ItemSeizureItems extends BaseEntity {
177 177
     private String attachmentName;
178 178
 
179 179
     /**
180
+     * 是否常见违禁品(0-否,1-是)
181
+     */
182
+    @Excel(name = "是否常见违禁品(0-否,1-是)")
183
+    private Integer commonContraband;
184
+
185
+    /**
186
+     * 违禁品描述
187
+     */
188
+    @Excel(name = "违禁品描述")
189
+    private String contrabandDesc;
190
+
191
+    /**
180 192
      * 附件列表
181 193
      */
182 194
     private List<BaseAttachment> baseAttachmentList;
@@ -373,6 +385,22 @@ public class ItemSeizureItems extends BaseEntity {
373 385
         return attachmentName;
374 386
     }
375 387
 
388
+    public Integer getCommonContraband() {
389
+        return commonContraband;
390
+    }
391
+
392
+    public void setCommonContraband(Integer commonContraband) {
393
+        this.commonContraband = commonContraband;
394
+    }
395
+
396
+    public String getContrabandDesc() {
397
+        return contrabandDesc;
398
+    }
399
+
400
+    public void setContrabandDesc(String contrabandDesc) {
401
+        this.contrabandDesc = contrabandDesc;
402
+    }
403
+
376 404
     public List<BaseAttachment> getBaseAttachmentList() {
377 405
         return baseAttachmentList;
378 406
     }
@@ -427,6 +455,8 @@ public class ItemSeizureItems extends BaseEntity {
427 455
                 ", attachmentId='" + attachmentId + '\'' +
428 456
                 ", attachmentUrl='" + attachmentUrl + '\'' +
429 457
                 ", attachmentName='" + attachmentName + '\'' +
458
+                ", commonContraband='" + commonContraband + '\'' +
459
+                ", contrabandDesc='" + contrabandDesc + '\'' +
430 460
                 ", baseAttachmentList=" + baseAttachmentList +
431 461
                 '}';
432 462
     }

+ 12 - 0
airport-item/src/main/java/com/sundot/airport/item/domain/vo/ItemSeizureRecordExportVO.java

@@ -91,6 +91,18 @@ public class ItemSeizureRecordExportVO {
91 91
     private String xrayOperator;
92 92
 
93 93
     /**
94
+     * 是否常见违禁品(0-否,1-是)
95
+     */
96
+    @Excel(name = "是否常见违禁品", readConverterExp = "0=否,1=是", combo = "否,是", sort = 14)
97
+    private Integer commonContraband;
98
+
99
+    /**
100
+     * 违禁品描述
101
+     */
102
+    @Excel(name = "违禁品描述", sort = 15)
103
+    private String contrabandDesc;
104
+
105
+    /**
94 106
      * 流程状态:0=草稿,1=审核中,2=人工终止,3=归档
95 107
      */
96 108
     @Excel(name = "流程状态", readConverterExp = "0=草稿,1=审核中,2=人工终止,3=归档", combo = "草稿,审核中,人工终止,归档")

+ 16 - 0
airport-item/src/main/resources/mapper/item/ItemSeizureItemsMapper.xml

@@ -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>