张庆宇 4 个月前
父节点
当前提交
c16b80bac7

+ 19
- 0
src/main/java/com/th/demo/model/ware/OutRecord.java 查看文件

86
     private Double storeFee;
86
     private Double storeFee;
87
     private Integer inWareDays;
87
     private Integer inWareDays;
88
 
88
 
89
+    private String contractNo;
90
+    private String packNo;
91
+
89
     public Double getStoreFee() {
92
     public Double getStoreFee() {
90
         return storeFee;
93
         return storeFee;
91
     }
94
     }
428
     public void setProductionPlace(String productionPlace) {
431
     public void setProductionPlace(String productionPlace) {
429
         this.productionPlace = productionPlace;
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
             outRecord.setCount(store.getCount());
285
             outRecord.setCount(store.getCount());
286
             outRecord.setWeight(store.getWeight());
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
         outRecord.setRemark(store.getRemark());
297
         outRecord.setRemark(store.getRemark());
289
         outRecord.setBelongId(store.getBelongId());
298
         outRecord.setBelongId(store.getBelongId());
290
         outRecord.setPlateNo(store.getPlateNo());
299
         outRecord.setPlateNo(store.getPlateNo());
294
         outRecord.setRecordType(recordType);
303
         outRecord.setRecordType(recordType);
295
         outRecord.setReceiveAddress(store.getReceiveAddress());
304
         outRecord.setReceiveAddress(store.getReceiveAddress());
296
         outRecord.setDistributionId(distributionId);
305
         outRecord.setDistributionId(distributionId);
297
-        outRecord.setCancelFlag("0");
306
+
307
+
298
         outRecord.setWgtDcnMtcCd(store.getWgtDcnMtcCd());
308
         outRecord.setWgtDcnMtcCd(store.getWgtDcnMtcCd());
299
         outRecord.setEdgeTy(store.getEdgeTy());
309
         outRecord.setEdgeTy(store.getEdgeTy());
300
         outRecord.setProductionPlace(store.getProductionPlace());
310
         outRecord.setProductionPlace(store.getProductionPlace());

+ 12
- 4
src/main/resource/mapper/ware/OutRecordMapper.xml 查看文件

43
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
43
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
44
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
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
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
49
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
47
     <association  column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
50
     <association  column="distribution_id" property="distribution" select="com.th.demo.mapping.ware.DistributionMapper.selectByPrimaryKey" />
48
   </resultMap>
51
   </resultMap>
88
     <result column="distribution_id" property="distributionId" jdbcType="VARCHAR" />
91
     <result column="distribution_id" property="distributionId" jdbcType="VARCHAR" />
89
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
92
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
90
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
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
   </resultMap>
96
   </resultMap>
92
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
97
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
93
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
98
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
95
   </resultMap>
100
   </resultMap>
96
   <sql id="Base_Column_List" >
101
   <sql id="Base_Column_List" >
97
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
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
     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
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
   </sql>
105
   </sql>
101
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
106
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
120
       modify_id, modify_time, cancel_id, 
125
       modify_id, modify_time, cancel_id, 
121
       cancel_time, cancel_flag, belong_id, 
126
       cancel_time, cancel_flag, belong_id, 
122
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
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
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
129
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
125
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
130
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
126
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
131
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
130
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
135
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
131
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
136
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
132
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
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
   </insert>
140
   </insert>
135
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
141
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
136
     insert into t_ware_out_record
142
     insert into t_ware_out_record
367
            record_type = #{recordType,jdbcType=VARCHAR},
373
            record_type = #{recordType,jdbcType=VARCHAR},
368
           back_flag =  #{backFlag,jdbcType=VARCHAR},
374
           back_flag =  #{backFlag,jdbcType=VARCHAR},
369
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
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
     where id = #{id,jdbcType=VARCHAR}
379
     where id = #{id,jdbcType=VARCHAR}
372
   </update>
380
   </update>
373
 
381
 

正在加载...
取消
保存