Zhangqy 1 개월 전
부모
커밋
c16b80bac7

+ 19
- 0
src/main/java/com/th/demo/model/ware/OutRecord.java 파일 보기

@@ -86,6 +86,9 @@ public class OutRecord {
86 86
     private Double storeFee;
87 87
     private Integer inWareDays;
88 88
 
89
+    private String contractNo;
90
+    private String packNo;
91
+
89 92
     public Double getStoreFee() {
90 93
         return storeFee;
91 94
     }
@@ -428,4 +431,20 @@ public class OutRecord {
428 431
     public void setProductionPlace(String productionPlace) {
429 432
         this.productionPlace = productionPlace;
430 433
     }
434
+
435
+    public String getContractNo() {
436
+        return contractNo;
437
+    }
438
+
439
+    public void setContractNo(String contractNo) {
440
+        this.contractNo = contractNo;
441
+    }
442
+
443
+    public String getPackNo() {
444
+        return packNo;
445
+    }
446
+
447
+    public void setPackNo(String packNo) {
448
+        this.packNo = packNo;
449
+    }
431 450
 }

+ 11
- 1
src/main/java/com/th/demo/service/impl/ware/OutServiceImpl.java 파일 보기

@@ -285,6 +285,15 @@ public class OutServiceImpl implements OutService {
285 285
             outRecord.setCount(store.getCount());
286 286
             outRecord.setWeight(store.getWeight());
287 287
         }
288
+        if (recordType.equals("0")) {
289
+            outRecord.setCancelFlag("9");
290
+        } else {
291
+            outRecord.setCancelFlag("0");
292
+        }
293
+
294
+        outRecord.setPackNo(store.getPackNo());
295
+        outRecord.setContractNo(store.getContractNo());
296
+
288 297
         outRecord.setRemark(store.getRemark());
289 298
         outRecord.setBelongId(store.getBelongId());
290 299
         outRecord.setPlateNo(store.getPlateNo());
@@ -294,7 +303,8 @@ public class OutServiceImpl implements OutService {
294 303
         outRecord.setRecordType(recordType);
295 304
         outRecord.setReceiveAddress(store.getReceiveAddress());
296 305
         outRecord.setDistributionId(distributionId);
297
-        outRecord.setCancelFlag("0");
306
+
307
+
298 308
         outRecord.setWgtDcnMtcCd(store.getWgtDcnMtcCd());
299 309
         outRecord.setEdgeTy(store.getEdgeTy());
300 310
         outRecord.setProductionPlace(store.getProductionPlace());

+ 12
- 4
src/main/resource/mapper/ware/OutRecordMapper.xml 파일 보기

@@ -43,6 +43,9 @@
43 43
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
44 44
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
45 45
 
46
+    <result column="pack_no" property="packNo" jdbcType="VARCHAR" />
47
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
48
+
46 49
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
47 50
     <association  column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
48 51
   </resultMap>
@@ -88,6 +91,8 @@
88 91
     <result column="distribution_id" property="distributionId" jdbcType="VARCHAR" />
89 92
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
90 93
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
94
+    <result column="pack_no" property="packNo" jdbcType="VARCHAR" />
95
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
91 96
   </resultMap>
92 97
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
93 98
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
@@ -95,7 +100,7 @@
95 100
   </resultMap>
96 101
   <sql id="Base_Column_List" >
97 102
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
98
-    customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, 
103
+    customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, pack_no,contract_no,
99 104
     cancel_time, cancel_flag, belong_id, plate_no,in_id, record_type,back_flag,receive_address,distribution_id,wgt_dcn_mtc_cd,edge_ty,production_place,verify_account_id
100 105
   </sql>
101 106
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
@@ -120,7 +125,7 @@
120 125
       modify_id, modify_time, cancel_id, 
121 126
       cancel_time, cancel_flag, belong_id, 
122 127
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
123
-    ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price)
128
+    ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,pack_no,contract_no)
124 129
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
125 130
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
126 131
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
@@ -130,7 +135,8 @@
130 135
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
131 136
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
132 137
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
133
-    ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE})
138
+    ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},
139
+    #{packNo,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR})
134 140
   </insert>
135 141
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
136 142
     insert into t_ware_out_record
@@ -367,7 +373,9 @@
367 373
            record_type = #{recordType,jdbcType=VARCHAR},
368 374
           back_flag =  #{backFlag,jdbcType=VARCHAR},
369 375
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
370
-      distribution_id =  #{distributionId,jdbcType=VARCHAR}
376
+      distribution_id =  #{distributionId,jdbcType=VARCHAR},
377
+        pack_no = #{packNo,jdbcType=VARCHAR},
378
+        contract_no =  #{contractNo,jdbcType=VARCHAR}
371 379
     where id = #{id,jdbcType=VARCHAR}
372 380
   </update>
373 381
 

Loading…
취소
저장