Sfoglia il codice sorgente

转储功能微调

fanxw 5 anni fa
parent
commit
1f946f36c4

+ 39 - 38
src/main/java/com/chinaitop/depot/storage/mapper/StorageDumpMapper.java

@@ -1,39 +1,40 @@
1
-package com.chinaitop.depot.storage.mapper;
2
-
3
-import java.util.List;
4
-import java.util.Map;
5
-
6
-import com.chinaitop.depot.storage.model.StorageDump;
7
-import com.chinaitop.depot.storage.model.StorageDumpExample;
8
-
9
-public interface StorageDumpMapper {
10
-    int countByExample(StorageDumpExample example);
11
-
12
-    int deleteByExample(StorageDumpExample example);
13
-
14
-    int deleteByPrimaryKey(Integer id);
15
-
16
-    int insert(StorageDump record);
17
-
18
-    int insertSelective(StorageDump record);
19
-
20
-    List<StorageDump> selectByExample(StorageDumpExample example);
21
-
22
-    StorageDump selectByPrimaryKey(Integer id);
23
-
24
-    int updateByExampleSelective(StorageDumpExample example);
25
-
26
-    int updateByExample(StorageDumpExample example);
27
-
28
-    int updateByPrimaryKeySelective(StorageDump record);
29
-
30
-    int updateByPrimaryKey(StorageDump record);
31
-
32
-    /**
33
-     * 查询验收通过的数据
34
-     * 
35
-     * @param orgId 单位ID
36
-     * @return
37
-     */
38
-    List<Map<String, Object>> selectYswData(Integer orgId);
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageDump;
4
+import com.chinaitop.depot.storage.model.StorageDumpExample;
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+import org.apache.ibatis.annotations.Param;
9
+
10
+public interface StorageDumpMapper {
11
+    int countByExample(StorageDumpExample example);
12
+
13
+    int deleteByExample(StorageDumpExample example);
14
+
15
+    int deleteByPrimaryKey(Integer id);
16
+
17
+    int insert(StorageDump record);
18
+
19
+    int insertSelective(StorageDump record);
20
+
21
+    List<StorageDump> selectByExample(StorageDumpExample example);
22
+
23
+    StorageDump selectByPrimaryKey(Integer id);
24
+
25
+    int updateByExampleSelective(@Param("record") StorageDump record, @Param("example") StorageDumpExample example);
26
+
27
+    int updateByExample(@Param("record") StorageDump record, @Param("example") StorageDumpExample example);
28
+
29
+    int updateByPrimaryKeySelective(StorageDump record);
30
+
31
+    int updateByPrimaryKey(StorageDump record);
32
+
33
+    /**
34
+     * 查询验收通过的数据
35
+     * 
36
+     * @param orgId 单位ID
37
+     * @return
38
+     */
39
+    List<Map<String, Object>> selectYswData(Integer orgId);
39 40
 }

+ 106 - 26
src/main/java/com/chinaitop/depot/storage/mapper/StorageDumpMapper.xml

@@ -19,9 +19,13 @@
19 19
     <result column="business_create_time" jdbcType="TIMESTAMP" property="businessCreateTime" />
20 20
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
21 21
     <result column="create_person" jdbcType="VARCHAR" property="createPerson" />
22
+    <result column="ccshr" jdbcType="VARCHAR" property="ccshr" />
23
+    <result column="zjshr" jdbcType="VARCHAR" property="zjshr" />
24
+    <result column="tjshr" jdbcType="VARCHAR" property="tjshr" />
25
+    <result column="kjshr" jdbcType="VARCHAR" property="kjshr" />
26
+    <result column="ldshr" jdbcType="VARCHAR" property="ldshr" />
22 27
     <result column="is_upload" jdbcType="INTEGER" property="isUpload" />
23 28
     <result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime" />
24
-    <result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
25 29
   </resultMap>
26 30
   <sql id="Example_Where_Clause">
27 31
     <where>
@@ -82,8 +86,9 @@
82 86
     </where>
83 87
   </sql>
84 88
   <sql id="Base_Column_List">
85
-    id, ys_id, org_id, house_id, ware_id, lspz, y_lsxz, x_lsxz, lsdj, clsl, zjjg, ys_status, 
86
-    business_create_time, create_time, create_person, is_upload, upload_time, updatetime
89
+    id, ys_id, org_id, house_id, ware_id, lspz, y_lsxz, x_lsxz, lsdj, clsl, transfer_quantity, 
90
+    approval_no, zjjg, ys_status, business_create_time, create_time, create_person, ccshr, 
91
+    zjshr, tjshr, kjshr, ldshr, is_upload, upload_time
87 92
   </sql>
88 93
   <select id="selectByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample" resultMap="BaseResultMap">
89 94
     select
@@ -119,17 +124,19 @@
119 124
     insert into storage_dump (id, ys_id, org_id, 
120 125
       house_id, ware_id, lspz, 
121 126
       y_lsxz, x_lsxz, lsdj, 
122
-      clsl, zjjg, ys_status, 
123
-      business_create_time, create_time, create_person, 
124
-      is_upload, upload_time, updatetime
125
-      )
127
+      clsl, transfer_quantity, approval_no, 
128
+      zjjg, ys_status, business_create_time, 
129
+      create_time, create_person, ccshr, 
130
+      zjshr, tjshr, kjshr, 
131
+      ldshr, is_upload, upload_time)
126 132
     values (#{id,jdbcType=INTEGER}, #{ysId,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, 
127 133
       #{houseId,jdbcType=VARCHAR}, #{wareId,jdbcType=VARCHAR}, #{lspz,jdbcType=INTEGER}, 
128 134
       #{yLsxz,jdbcType=INTEGER}, #{xLsxz,jdbcType=INTEGER}, #{lsdj,jdbcType=INTEGER}, 
129
-      #{clsl,jdbcType=DECIMAL}, #{zjjg,jdbcType=VARCHAR}, #{ysStatus,jdbcType=VARCHAR}, 
130
-      #{businessCreateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{createPerson,jdbcType=VARCHAR}, 
131
-      #{isUpload,jdbcType=INTEGER}, #{uploadTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}
132
-      )
135
+      #{clsl,jdbcType=DECIMAL}, #{transferQuantity,jdbcType=DECIMAL}, #{approvalNo,jdbcType=VARCHAR}, 
136
+      #{zjjg,jdbcType=VARCHAR}, #{ysStatus,jdbcType=VARCHAR}, #{businessCreateTime,jdbcType=TIMESTAMP}, 
137
+      #{createTime,jdbcType=TIMESTAMP}, #{createPerson,jdbcType=VARCHAR}, #{ccshr,jdbcType=VARCHAR}, 
138
+      #{zjshr,jdbcType=VARCHAR}, #{tjshr,jdbcType=VARCHAR}, #{kjshr,jdbcType=VARCHAR}, 
139
+      #{ldshr,jdbcType=VARCHAR}, #{isUpload,jdbcType=INTEGER}, #{uploadTime,jdbcType=TIMESTAMP})
133 140
   </insert>
134 141
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageDump">
135 142
     insert into storage_dump
@@ -185,15 +192,27 @@
185 192
       <if test="createPerson != null">
186 193
         create_person,
187 194
       </if>
195
+      <if test="ccshr != null">
196
+        ccshr,
197
+      </if>
198
+      <if test="zjshr != null">
199
+        zjshr,
200
+      </if>
201
+      <if test="tjshr != null">
202
+        tjshr,
203
+      </if>
204
+      <if test="kjshr != null">
205
+        kjshr,
206
+      </if>
207
+      <if test="ldshr != null">
208
+        ldshr,
209
+      </if>
188 210
       <if test="isUpload != null">
189 211
         is_upload,
190 212
       </if>
191 213
       <if test="uploadTime != null">
192 214
         upload_time,
193 215
       </if>
194
-      <if test="updatetime != null">
195
-        updatetime,
196
-      </if>
197 216
     </trim>
198 217
     <trim prefix="values (" suffix=")" suffixOverrides=",">
199 218
       <if test="id != null">
@@ -247,15 +266,27 @@
247 266
       <if test="createPerson != null">
248 267
         #{createPerson,jdbcType=VARCHAR},
249 268
       </if>
269
+      <if test="ccshr != null">
270
+        #{ccshr,jdbcType=VARCHAR},
271
+      </if>
272
+      <if test="zjshr != null">
273
+        #{zjshr,jdbcType=VARCHAR},
274
+      </if>
275
+      <if test="tjshr != null">
276
+        #{tjshr,jdbcType=VARCHAR},
277
+      </if>
278
+      <if test="kjshr != null">
279
+        #{kjshr,jdbcType=VARCHAR},
280
+      </if>
281
+      <if test="ldshr != null">
282
+        #{ldshr,jdbcType=VARCHAR},
283
+      </if>
250 284
       <if test="isUpload != null">
251 285
         #{isUpload,jdbcType=INTEGER},
252 286
       </if>
253 287
       <if test="uploadTime != null">
254 288
         #{uploadTime,jdbcType=TIMESTAMP},
255 289
       </if>
256
-      <if test="updatetime != null">
257
-        #{updatetime,jdbcType=TIMESTAMP},
258
-      </if>
259 290
     </trim>
260 291
   </insert>
261 292
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample" resultType="java.lang.Integer">
@@ -297,6 +328,12 @@
297 328
       <if test="record.clsl != null">
298 329
         clsl = #{record.clsl,jdbcType=DECIMAL},
299 330
       </if>
331
+      <if test="record.transferQuantity != null">
332
+        transfer_quantity = #{record.transferQuantity,jdbcType=DECIMAL},
333
+      </if>
334
+      <if test="record.approvalNo != null">
335
+        approval_no = #{record.approvalNo,jdbcType=VARCHAR},
336
+      </if>
300 337
       <if test="record.zjjg != null">
301 338
         zjjg = #{record.zjjg,jdbcType=VARCHAR},
302 339
       </if>
@@ -312,15 +349,27 @@
312 349
       <if test="record.createPerson != null">
313 350
         create_person = #{record.createPerson,jdbcType=VARCHAR},
314 351
       </if>
352
+      <if test="record.ccshr != null">
353
+        ccshr = #{record.ccshr,jdbcType=VARCHAR},
354
+      </if>
355
+      <if test="record.zjshr != null">
356
+        zjshr = #{record.zjshr,jdbcType=VARCHAR},
357
+      </if>
358
+      <if test="record.tjshr != null">
359
+        tjshr = #{record.tjshr,jdbcType=VARCHAR},
360
+      </if>
361
+      <if test="record.kjshr != null">
362
+        kjshr = #{record.kjshr,jdbcType=VARCHAR},
363
+      </if>
364
+      <if test="record.ldshr != null">
365
+        ldshr = #{record.ldshr,jdbcType=VARCHAR},
366
+      </if>
315 367
       <if test="record.isUpload != null">
316 368
         is_upload = #{record.isUpload,jdbcType=INTEGER},
317 369
       </if>
318 370
       <if test="record.uploadTime != null">
319 371
         upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
320 372
       </if>
321
-      <if test="record.updatetime != null">
322
-        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
323
-      </if>
324 373
     </set>
325 374
     <if test="_parameter != null">
326 375
       <include refid="Update_By_Example_Where_Clause" />
@@ -338,14 +387,20 @@
338 387
       x_lsxz = #{record.xLsxz,jdbcType=INTEGER},
339 388
       lsdj = #{record.lsdj,jdbcType=INTEGER},
340 389
       clsl = #{record.clsl,jdbcType=DECIMAL},
390
+      transfer_quantity = #{record.transferQuantity,jdbcType=DECIMAL},
391
+      approval_no = #{record.approvalNo,jdbcType=VARCHAR},
341 392
       zjjg = #{record.zjjg,jdbcType=VARCHAR},
342 393
       ys_status = #{record.ysStatus,jdbcType=VARCHAR},
343 394
       business_create_time = #{record.businessCreateTime,jdbcType=TIMESTAMP},
344 395
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
345 396
       create_person = #{record.createPerson,jdbcType=VARCHAR},
397
+      ccshr = #{record.ccshr,jdbcType=VARCHAR},
398
+      zjshr = #{record.zjshr,jdbcType=VARCHAR},
399
+      tjshr = #{record.tjshr,jdbcType=VARCHAR},
400
+      kjshr = #{record.kjshr,jdbcType=VARCHAR},
401
+      ldshr = #{record.ldshr,jdbcType=VARCHAR},
346 402
       is_upload = #{record.isUpload,jdbcType=INTEGER},
347 403
       upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
348
-      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
349 404
     <if test="_parameter != null">
350 405
       <include refid="Update_By_Example_Where_Clause" />
351 406
     </if>
@@ -380,6 +435,12 @@
380 435
       <if test="clsl != null">
381 436
         clsl = #{clsl,jdbcType=DECIMAL},
382 437
       </if>
438
+      <if test="transferQuantity != null">
439
+        transfer_quantity = #{transferQuantity,jdbcType=DECIMAL},
440
+      </if>
441
+      <if test="approvalNo != null">
442
+        approval_no = #{approvalNo,jdbcType=VARCHAR},
443
+      </if>
383 444
       <if test="zjjg != null">
384 445
         zjjg = #{zjjg,jdbcType=VARCHAR},
385 446
       </if>
@@ -395,15 +456,27 @@
395 456
       <if test="createPerson != null">
396 457
         create_person = #{createPerson,jdbcType=VARCHAR},
397 458
       </if>
459
+      <if test="ccshr != null">
460
+        ccshr = #{ccshr,jdbcType=VARCHAR},
461
+      </if>
462
+      <if test="zjshr != null">
463
+        zjshr = #{zjshr,jdbcType=VARCHAR},
464
+      </if>
465
+      <if test="tjshr != null">
466
+        tjshr = #{tjshr,jdbcType=VARCHAR},
467
+      </if>
468
+      <if test="kjshr != null">
469
+        kjshr = #{kjshr,jdbcType=VARCHAR},
470
+      </if>
471
+      <if test="ldshr != null">
472
+        ldshr = #{ldshr,jdbcType=VARCHAR},
473
+      </if>
398 474
       <if test="isUpload != null">
399 475
         is_upload = #{isUpload,jdbcType=INTEGER},
400 476
       </if>
401 477
       <if test="uploadTime != null">
402 478
         upload_time = #{uploadTime,jdbcType=TIMESTAMP},
403 479
       </if>
404
-      <if test="updatetime != null">
405
-        updatetime = #{updatetime,jdbcType=TIMESTAMP},
406
-      </if>
407 480
     </set>
408 481
     where id = #{id,jdbcType=INTEGER}
409 482
   </update>
@@ -418,16 +491,23 @@
418 491
       x_lsxz = #{xLsxz,jdbcType=INTEGER},
419 492
       lsdj = #{lsdj,jdbcType=INTEGER},
420 493
       clsl = #{clsl,jdbcType=DECIMAL},
494
+      transfer_quantity = #{transferQuantity,jdbcType=DECIMAL},
495
+      approval_no = #{approvalNo,jdbcType=VARCHAR},
421 496
       zjjg = #{zjjg,jdbcType=VARCHAR},
422 497
       ys_status = #{ysStatus,jdbcType=VARCHAR},
423 498
       business_create_time = #{businessCreateTime,jdbcType=TIMESTAMP},
424 499
       create_time = #{createTime,jdbcType=TIMESTAMP},
425 500
       create_person = #{createPerson,jdbcType=VARCHAR},
501
+      ccshr = #{ccshr,jdbcType=VARCHAR},
502
+      zjshr = #{zjshr,jdbcType=VARCHAR},
503
+      tjshr = #{tjshr,jdbcType=VARCHAR},
504
+      kjshr = #{kjshr,jdbcType=VARCHAR},
505
+      ldshr = #{ldshr,jdbcType=VARCHAR},
426 506
       is_upload = #{isUpload,jdbcType=INTEGER},
427
-      upload_time = #{uploadTime,jdbcType=TIMESTAMP},
428
-      updatetime = #{updatetime,jdbcType=TIMESTAMP}
507
+      upload_time = #{uploadTime,jdbcType=TIMESTAMP}
429 508
     where id = #{id,jdbcType=INTEGER}
430 509
   </update>
510
+
431 511
   <!-- 查询验收过通过的数据 -->
432 512
   <select id="selectYswData" parameterType="java.util.Map" resultType="java.util.Map">
433 513
     SELECT datas.* FROM 

+ 119 - 13
src/main/java/com/chinaitop/depot/storage/model/StorageDump.java

@@ -23,7 +23,7 @@ public class StorageDump {
23 23
     private Integer lsdj;
24 24
 
25 25
     private BigDecimal clsl;
26
-    
26
+
27 27
     private BigDecimal transferQuantity;
28 28
 
29 29
     private String approvalNo;
@@ -38,6 +38,16 @@ public class StorageDump {
38 38
 
39 39
     private String createPerson;
40 40
 
41
+    private String ccshr;
42
+
43
+    private String zjshr;
44
+
45
+    private String tjshr;
46
+
47
+    private String kjshr;
48
+
49
+    private String ldshr;
50
+
41 51
     private Integer isUpload;
42 52
 
43 53
     private Date uploadTime;
@@ -203,22 +213,38 @@ public class StorageDump {
203 213
     public void setClsl(BigDecimal clsl) {
204 214
         this.clsl = clsl;
205 215
     }
206
-    
216
+
217
+    /**
218
+     * 划转数量(单位:公斤)
219
+     * @return transfer_quantity 划转数量(单位:公斤)
220
+     */
207 221
     public BigDecimal getTransferQuantity() {
208
-		return transferQuantity;
209
-	}
222
+        return transferQuantity;
223
+    }
210 224
 
211
-	public void setTransferQuantity(BigDecimal transferQuantity) {
212
-		this.transferQuantity = transferQuantity;
213
-	}
225
+    /**
226
+     * 划转数量(单位:公斤)
227
+     * @param transferQuantity 划转数量(单位:公斤)
228
+     */
229
+    public void setTransferQuantity(BigDecimal transferQuantity) {
230
+        this.transferQuantity = transferQuantity;
231
+    }
214 232
 
215
-	public String getApprovalNo() {
216
-		return approvalNo;
217
-	}
233
+    /**
234
+     * 批准文号
235
+     * @return approval_no 批准文号
236
+     */
237
+    public String getApprovalNo() {
238
+        return approvalNo;
239
+    }
218 240
 
219
-	public void setApprovalNo(String approvalNo) {
220
-		this.approvalNo = approvalNo;
221
-	}
241
+    /**
242
+     * 批准文号
243
+     * @param approvalNo 批准文号
244
+     */
245
+    public void setApprovalNo(String approvalNo) {
246
+        this.approvalNo = approvalNo == null ? null : approvalNo.trim();
247
+    }
222 248
 
223 249
     /**
224 250
      * 质检结果
@@ -301,6 +327,86 @@ public class StorageDump {
301 327
     }
302 328
 
303 329
     /**
330
+     * 仓储审核人
331
+     * @return ccshr 仓储审核人
332
+     */
333
+    public String getCcshr() {
334
+        return ccshr;
335
+    }
336
+
337
+    /**
338
+     * 仓储审核人
339
+     * @param ccshr 仓储审核人
340
+     */
341
+    public void setCcshr(String ccshr) {
342
+        this.ccshr = ccshr == null ? null : ccshr.trim();
343
+    }
344
+
345
+    /**
346
+     * 质检审核人
347
+     * @return zjshr 质检审核人
348
+     */
349
+    public String getZjshr() {
350
+        return zjshr;
351
+    }
352
+
353
+    /**
354
+     * 质检审核人
355
+     * @param zjshr 质检审核人
356
+     */
357
+    public void setZjshr(String zjshr) {
358
+        this.zjshr = zjshr == null ? null : zjshr.trim();
359
+    }
360
+
361
+    /**
362
+     * 统计审核人
363
+     * @return tjshr 统计审核人
364
+     */
365
+    public String getTjshr() {
366
+        return tjshr;
367
+    }
368
+
369
+    /**
370
+     * 统计审核人
371
+     * @param tjshr 统计审核人
372
+     */
373
+    public void setTjshr(String tjshr) {
374
+        this.tjshr = tjshr == null ? null : tjshr.trim();
375
+    }
376
+
377
+    /**
378
+     * 会计审核人
379
+     * @return kjshr 会计审核人
380
+     */
381
+    public String getKjshr() {
382
+        return kjshr;
383
+    }
384
+
385
+    /**
386
+     * 会计审核人
387
+     * @param kjshr 会计审核人
388
+     */
389
+    public void setKjshr(String kjshr) {
390
+        this.kjshr = kjshr == null ? null : kjshr.trim();
391
+    }
392
+
393
+    /**
394
+     * 领导审核人
395
+     * @return ldshr 领导审核人
396
+     */
397
+    public String getLdshr() {
398
+        return ldshr;
399
+    }
400
+
401
+    /**
402
+     * 领导审核人
403
+     * @param ldshr 领导审核人
404
+     */
405
+    public void setLdshr(String ldshr) {
406
+        this.ldshr = ldshr == null ? null : ldshr.trim();
407
+    }
408
+
409
+    /**
304 410
      * 上传状态(1上传成功,0需上传修改,null未上传)
305 411
      * @return is_upload 上传状态(1上传成功,0需上传修改,null未上传)
306 412
      */

File diff suppressed because it is too large
+ 1829 - 1329
src/main/java/com/chinaitop/depot/storage/model/StorageDumpExample.java


+ 0 - 10
src/main/java/com/chinaitop/depot/storage/service/impl/StorageDumpServiceImpl.java

@@ -1,19 +1,11 @@
1 1
 package com.chinaitop.depot.storage.service.impl;
2 2
 
3
-import java.io.BufferedInputStream;
4
-import java.io.InputStream;
5 3
 import java.util.HashMap;
6 4
 import java.util.List;
7 5
 import java.util.Map;
8
-import java.util.Properties;
9 6
 
10 7
 import javax.annotation.Resource;
11
-import javax.xml.namespace.QName;
12 8
 
13
-import org.apache.cxf.endpoint.Endpoint;
14
-import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
15
-import org.apache.cxf.service.model.BindingInfo;
16
-import org.apache.cxf.service.model.BindingOperationInfo;
17 9
 import org.springframework.stereotype.Service;
18 10
 
19 11
 import com.chinaitop.depot.storage.mapper.StorageDumpMapper;
@@ -21,8 +13,6 @@ import com.chinaitop.depot.storage.model.StorageDump;
21 13
 import com.chinaitop.depot.storage.model.StorageDumpExample;
22 14
 import com.chinaitop.depot.storage.service.StorageDumpService;
23 15
 
24
-import net.sf.json.JSONObject;
25
-
26 16
 @Service
27 17
 public class StorageDumpServiceImpl implements StorageDumpService {
28 18