Bladeren bron

部分细节调整第一版

YL2767 3 maanden geleden
bovenliggende
commit
303dd3cfb3

+ 1
- 1
src/main/java/com/th/demo/mapping/maint/PriceMapper.java Bestand weergeven

19
 
19
 
20
     int updateByPrimaryKey(Price record);
20
     int updateByPrimaryKey(Price record);
21
 
21
 
22
-    Price selectByMaterialChangeTime(String id, int changeTime,String belongId);
22
+    Price selectByMaterialChangeTime(String id, String belongId);
23
 
23
 
24
     List<Price> select(String customerName,  String belongId);
24
     List<Price> select(String customerName,  String belongId);
25
 
25
 

+ 9
- 0
src/main/java/com/th/demo/model/ware/InRecord.java Bestand weergeven

61
     private String tallyPeople;
61
     private String tallyPeople;
62
 
62
 
63
     private String fkComponyName;
63
     private String fkComponyName;
64
+    private double invoicePrice;
65
+
66
+    public double getInvoicePrice() {
67
+        return invoicePrice;
68
+    }
69
+
70
+    public void setInvoicePrice(double invoicePrice) {
71
+        this.invoicePrice = invoicePrice;
72
+    }
64
 
73
 
65
     public String getFkComponyName() {
74
     public String getFkComponyName() {
66
         return fkComponyName;
75
         return fkComponyName;

+ 9
- 0
src/main/java/com/th/demo/model/ware/OutRecord.java Bestand weergeven

85
 
85
 
86
     private Double storeFee;
86
     private Double storeFee;
87
     private Integer inWareDays;
87
     private Integer inWareDays;
88
+    private Double unitPrice;
89
+
90
+    public Double getUnitPrice() {
91
+        return unitPrice;
92
+    }
93
+
94
+    public void setUnitPrice(Double unitPrice) {
95
+        this.unitPrice = unitPrice;
96
+    }
88
 
97
 
89
     public Double getStoreFee() {
98
     public Double getStoreFee() {
90
         return storeFee;
99
         return storeFee;

+ 9
- 0
src/main/java/com/th/demo/model/ware/Store.java Bestand weergeven

74
     private String fkComponyId ;
74
     private String fkComponyId ;
75
 
75
 
76
     private Double invoicePrice;
76
     private Double invoicePrice;
77
+    private String contractNo;
78
+
79
+    public String getContractNo() {
80
+        return contractNo;
81
+    }
82
+
83
+    public void setContractNo(String contractNo) {
84
+        this.contractNo = contractNo;
85
+    }
77
 
86
 
78
     public Double getInvoicePrice() {
87
     public Double getInvoicePrice() {
79
         return invoicePrice;
88
         return invoicePrice;

+ 29
- 29
src/main/java/com/th/demo/service/impl/ware/InServiceImpl.java Bestand weergeven

45
     public MaterialMapper materialMapper;
45
     public MaterialMapper materialMapper;
46
     @Autowired
46
     @Autowired
47
     public ProdPriceMapper prodPriceMapper;
47
     public ProdPriceMapper prodPriceMapper;
48
+    @Autowired
49
+    public PriceMapper priceMapper;
48
     String result = Type.FAIL;
50
     String result = Type.FAIL;
49
     int num = 0;
51
     int num = 0;
50
 
52
 
216
         } else {
218
         } else {
217
             currentLayer = -1;
219
             currentLayer = -1;
218
         }
220
         }
219
-        ProdPrice prodPrice = new ProdPrice();
221
+        Price Price = new Price();
220
         for (int m = 0; m < listSameStack.size(); m++) {
222
         for (int m = 0; m < listSameStack.size(); m++) {
221
 
223
 
222
             if (stack.getIsLayer().equals("1")) {
224
             if (stack.getIsLayer().equals("1")) {
228
             listSameStack.get(m).setAddTime(new Date());
230
             listSameStack.get(m).setAddTime(new Date());
229
             listSameStack.get(m).setCancelFlag("0");
231
             listSameStack.get(m).setCancelFlag("0");
230
             listSameStack.get(m).setBelongId(belongId);
232
             listSameStack.get(m).setBelongId(belongId);
231
-            /*prodPrice = prodPriceMapper.selectByProdNm(listSameStack.get(m).getMaterial().getName());
232
-            if(prodPrice == null){
233
-                throw new Exception(listSameStack.get(m).getMaterial().getName()+"价格未维护");
233
+            Price = priceMapper.selectByMaterialChangeTime(listSameStack.get(m).getFkComponyId().toString(),belongId);
234
+            if(Price == null){
235
+                Customer fk_compony = customerMapper.selectByPrimaryKey(listSameStack.get(m).getFkComponyId());
236
+                throw new Exception(fk_compony.getName()+"公司的价格未维护");
234
             }
237
             }
235
-            listSameStack.get(m).setInvoicePrice(prodPrice.getInvoicePrice());*/
238
+            listSameStack.get(m).setInvoicePrice(Price.getOrdPrice());
236
             InRecord inRecord = getInRecord(listSameStack.get(m), "1", userId);
239
             InRecord inRecord = getInRecord(listSameStack.get(m), "1", userId);
237
             num += inRecordMapper.insert(inRecord);
240
             num += inRecordMapper.insert(inRecord);
238
 
241
 
250
         List<Store> listStore = new ArrayList<>();
253
         List<Store> listStore = new ArrayList<>();
251
         String wareName = listJO.get(0).get("仓库名称").toString();
254
         String wareName = listJO.get(0).get("仓库名称").toString();
252
         String stackName = listJO.get(0).get("垛位号").toString();
255
         String stackName = listJO.get(0).get("垛位号").toString();
253
-        String materialName = listJO.get(0).get("物料类型").toString();
254
-        String standard = listJO.get(0).get("钢种").toString();
256
+        String materialName = listJO.get(0).get("货物品名").toString();
257
+        String standard = listJO.get(0).get("材质").toString();
255
         String customerName = listJO.get(0).get("客户名称").toString();
258
         String customerName = listJO.get(0).get("客户名称").toString();
256
-        String fk_compony_name = listJO.get(0).get("货权单位").toString();
259
+        String fk_compony_name = listJO.get(0).get("客户名称").toString();
257
         Ware ware = wareMapper.selectByWareName(wareName, userId, belongId);
260
         Ware ware = wareMapper.selectByWareName(wareName, userId, belongId);
258
         if (ware == null) {
261
         if (ware == null) {
259
             err += "未找到名为\"" + wareName + "\"的库房;";
262
             err += "未找到名为\"" + wareName + "\"的库房;";
303
                 }
306
                 }
304
                 store.setStack(stack);
307
                 store.setStack(stack);
305
             }
308
             }
306
-            if (listJO.get(i).get("物料类型").toString().equals(materialName) && listJO.get(i).get("钢种").toString().equals(standard)) {
309
+            if (listJO.get(i).get("货物品名").toString().equals(materialName) && listJO.get(i).get("材质").toString().equals(standard)) {
307
                 store.setMaterial(material);
310
                 store.setMaterial(material);
308
             } else {
311
             } else {
309
-                materialName = listJO.get(i).get("物料类型").toString();
310
-                standard = listJO.get(i).get("钢种").toString();
312
+                materialName = listJO.get(i).get("货物品名").toString();
313
+                standard = listJO.get(i).get("材质").toString();
311
                 material = materialMapper.selectByNameStandard(materialName, standard, belongId);
314
                 material = materialMapper.selectByNameStandard(materialName, standard, belongId);
312
                 if (material == null) {
315
                 if (material == null) {
313
-                    err += "未找到名为\"" + materialName + "," + standard + "\"的物料类型;";
316
+                    err += "未找到名为\"" + materialName + "," + standard + "\"的货物品名;";
314
                     throw new Exception(err);
317
                     throw new Exception(err);
315
                 }
318
                 }
316
                 store.setMaterial(material);
319
                 store.setMaterial(material);
317
             }
320
             }
318
-            if (listJO.get(i).get("客户名称").toString().equals(customerName)) {
321
+            if (listJO.get(i).get("订单客户").toString().equals(customerName)) {
319
                 store.setCustomer(customer);
322
                 store.setCustomer(customer);
320
             } else {
323
             } else {
321
-                customerName = listJO.get(i).get("客户名称").toString();
324
+                customerName = listJO.get(i).get("订单客户").toString();
322
                 customer = customerMapper.selectByName(customerName, belongId);
325
                 customer = customerMapper.selectByName(customerName, belongId);
323
                 if (customer == null) {
326
                 if (customer == null) {
324
-                    err += "未找到名为\"" + customerName + "\"的客户名称;";
327
+                    err += "未找到名为\"" + customerName + "\"的订单客户名称;";
325
                     throw new Exception(err);
328
                     throw new Exception(err);
326
                 }
329
                 }
327
                 store.setCustomer(customer);
330
                 store.setCustomer(customer);
328
             }
331
             }
329
-            if (listJO.get(i).get("货权单位").toString().equals(fk_compony_name)) {
332
+            if (listJO.get(i).get("客户名称").toString().equals(fk_compony_name)) {
330
                 store.setFkComponyId(fk_compony.getId());
333
                 store.setFkComponyId(fk_compony.getId());
331
             } else {
334
             } else {
332
-                fk_compony_name = listJO.get(i).get("货权单位").toString();
335
+                fk_compony_name = listJO.get(i).get("客户名称").toString();
333
                 fk_compony = customerMapper.selectByName(fk_compony_name, belongId);
336
                 fk_compony = customerMapper.selectByName(fk_compony_name, belongId);
334
                 if (customer == null) {
337
                 if (customer == null) {
335
                     err += "未找到名为\"" + customerName + "\"的客户名称;";
338
                     err += "未找到名为\"" + customerName + "\"的客户名称;";
338
                 store.setFkComponyId(fk_compony.getId());
341
                 store.setFkComponyId(fk_compony.getId());
339
             }
342
             }
340
             store.setLayer(Integer.parseInt(listJO.get(i).get("层号").toString()));
343
             store.setLayer(Integer.parseInt(listJO.get(i).get("层号").toString()));
341
-            store.setPlateNo(listJO.get(i).get("产品编号").toString());
342
-            store.setModel(listJO.get(i).get("产品规格").toString());
344
+            store.setPlateNo(listJO.get(i).get("顺序号").toString());
345
+            store.setModel(listJO.get(i).get("规格").toString());
343
             store.setCount(Double.parseDouble(listJO.get(i).get("数量").toString()));
346
             store.setCount(Double.parseDouble(listJO.get(i).get("数量").toString()));
344
             store.setWeight(Double.parseDouble(listJO.get(i).get("重量").toString()));
347
             store.setWeight(Double.parseDouble(listJO.get(i).get("重量").toString()));
345
-            if (listJO.get(i).get("收货地址") == null || listJO.get(i).get("收货地址").toString().equals("")) {
348
+            if (listJO.get(i).get("目的地") == null || listJO.get(i).get("目的地").toString().equals("")) {
346
                 store.setReceiveAddress(customer.getAddress());
349
                 store.setReceiveAddress(customer.getAddress());
347
             } else {
350
             } else {
348
-                store.setReceiveAddress(listJO.get(i).get("收货地址").toString());
351
+                store.setReceiveAddress(listJO.get(i).get("目的地").toString());
349
             }
352
             }
350
             if(listJO.get(i).get("备注") != null){
353
             if(listJO.get(i).get("备注") != null){
351
                 store.setRemark(listJO.get(i).get("备注").toString());
354
                 store.setRemark(listJO.get(i).get("备注").toString());
356
             store.setCancelFlag("0");
359
             store.setCancelFlag("0");
357
             store.setOutFlag("0");
360
             store.setOutFlag("0");
358
             store.setBelongId(belongId);
361
             store.setBelongId(belongId);
359
-            if(listJO.get(i).get("计量方式") != null){
360
-                store.setWgtDcnMtcCd(listJO.get(i).get("计量方式").toString());
361
-            }
362
-            if(listJO.get(i).get("切边类型") != null){
363
-                store.setEdgeTy(listJO.get(i).get("切边类型").toString());
364
-            }
365
             if(listJO.get(i).get("产地") != null){
362
             if(listJO.get(i).get("产地") != null){
366
                 store.setProductionPlace(listJO.get(i).get("产地").toString());
363
                 store.setProductionPlace(listJO.get(i).get("产地").toString());
367
             }
364
             }
369
             if(listJO.get(i).get("订单号") != null){
366
             if(listJO.get(i).get("订单号") != null){
370
                 store.setOrdNo(listJO.get(i).get("订单号").toString());
367
                 store.setOrdNo(listJO.get(i).get("订单号").toString());
371
             }
368
             }
369
+            if(listJO.get(i).get("合约号") != null){
370
+                store.setContractNo(listJO.get(i).get("合约号").toString());
371
+            }
372
             if(listJO.get(i).get("车号") != null){
372
             if(listJO.get(i).get("车号") != null){
373
                 store.setCarNo(listJO.get(i).get("车号").toString());
373
                 store.setCarNo(listJO.get(i).get("车号").toString());
374
             }
374
             }
375
-            if(listJO.get(i).get("入库理货人员") != null){
376
-                store.setTallyPeople(listJO.get(i).get("入库理货人员").toString());
375
+            if(listJO.get(i).get("吊装工") != null){
376
+                store.setTallyPeople(listJO.get(i).get("吊装工").toString());
377
             }
377
             }
378
             listStore.add(store);
378
             listStore.add(store);
379
         }
379
         }

+ 15
- 1
src/main/java/com/th/demo/service/impl/ware/OutServiceImpl.java Bestand weergeven

47
     public ChangeRecordMapper changeRecordMapper;
47
     public ChangeRecordMapper changeRecordMapper;
48
     @Autowired
48
     @Autowired
49
     public PriceMapper priceMapper;
49
     public PriceMapper priceMapper;
50
+    @Autowired
51
+    public InRecordMapper inRecordMapper;
50
 
52
 
51
     String result = Type.FAIL;
53
     String result = Type.FAIL;
52
     int num = 0;
54
     int num = 0;
298
         outRecord.setWgtDcnMtcCd(store.getWgtDcnMtcCd());
300
         outRecord.setWgtDcnMtcCd(store.getWgtDcnMtcCd());
299
         outRecord.setEdgeTy(store.getEdgeTy());
301
         outRecord.setEdgeTy(store.getEdgeTy());
300
         outRecord.setProductionPlace(store.getProductionPlace());
302
         outRecord.setProductionPlace(store.getProductionPlace());
301
-        outRecord.setInvoicePrice(store.getInvoicePrice());
303
+        InRecord inRecord = inRecordMapper.selectByPrimaryKey(store.getInId());
304
+        double asd = (outRecord.getAddTime().getDate() - inRecord.getAddTime().getTime())/ (24 * 60 * 60 * 1000);
305
+        Price price = priceMapper.selectByMaterialChangeTime(store.getFkComponyId(),store.getBelongId());
306
+        if (asd > price.getKeepDay()){
307
+            outRecord.setInvoicePrice(price.getOutOrdPrice());
308
+            outRecord.setUnitPrice(price.getOutOrdPrice());
309
+        }else {
310
+            outRecord.setInvoicePrice(price.getOrdPrice());
311
+            outRecord.setUnitPrice(price.getOrdPrice());
312
+        }
313
+
314
+
315
+
302
         return outRecord;
316
         return outRecord;
303
     }
317
     }
304
 
318
 

+ 1
- 2
src/main/resource/mapper/maint/PriceMapper.xml Bestand weergeven

210
 
210
 
211
   <select id="selectByMaterialChangeTime" resultMap="BaseResultMap" >
211
   <select id="selectByMaterialChangeTime" resultMap="BaseResultMap" >
212
     select *   from t_maint_price
212
     select *   from t_maint_price
213
-    where 1=1 --material_id = #{param1,jdbcType=VARCHAR}
214
-      --and storage_type = #{param2,jdbcType=VARCHAR}
213
+    where 1=1
215
       and customer_id = #{param1,jdbcType=VARCHAR}
214
       and customer_id = #{param1,jdbcType=VARCHAR}
216
      and belong_id = #{param2,jdbcType=VARCHAR}
215
      and belong_id = #{param2,jdbcType=VARCHAR}
217
      and cancel_flag = '0'
216
      and cancel_flag = '0'

+ 8
- 5
src/main/resource/mapper/ware/OutRecordMapper.xml Bestand weergeven

39
     <result column="fk_compony_name" property="fkComponyName" jdbcType="VARCHAR" />
39
     <result column="fk_compony_name" property="fkComponyName" jdbcType="VARCHAR" />
40
     <result column="invoice_price" property="invoicePrice" jdbcType="DOUBLE" />
40
     <result column="invoice_price" property="invoicePrice" jdbcType="DOUBLE" />
41
     <result column="verify_account_id" property="verifyAccountId" jdbcType="DOUBLE" />
41
     <result column="verify_account_id" property="verifyAccountId" jdbcType="DOUBLE" />
42
+    <result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
42
 
43
 
43
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
44
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
44
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
45
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
88
     <result column="distribution_id" property="distributionId" jdbcType="VARCHAR" />
89
     <result column="distribution_id" property="distributionId" jdbcType="VARCHAR" />
89
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
90
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
90
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
91
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
92
+    <result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
91
   </resultMap>
93
   </resultMap>
92
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
94
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
93
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
95
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
96
   <sql id="Base_Column_List" >
98
   <sql id="Base_Column_List" >
97
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
99
     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, 
100
     customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, 
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
101
+    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,unit_price
100
   </sql>
102
   </sql>
101
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
103
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
102
     select 
104
     select 
120
       modify_id, modify_time, cancel_id, 
122
       modify_id, modify_time, cancel_id, 
121
       cancel_time, cancel_flag, belong_id, 
123
       cancel_time, cancel_flag, belong_id, 
122
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
124
       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)
125
+    ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price)
124
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
126
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
125
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
127
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
126
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
128
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
130
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
132
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
131
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
133
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
132
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
134
     #{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})
135
+    ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE})
134
   </insert>
136
   </insert>
135
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
137
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
136
     insert into t_ware_out_record
138
     insert into t_ware_out_record
367
            record_type = #{recordType,jdbcType=VARCHAR},
369
            record_type = #{recordType,jdbcType=VARCHAR},
368
           back_flag =  #{backFlag,jdbcType=VARCHAR},
370
           back_flag =  #{backFlag,jdbcType=VARCHAR},
369
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
371
     receive_address = #{receiveAddress,jdbcType=VARCHAR},
370
-      distribution_id =  #{distributionId,jdbcType=VARCHAR}
372
+      distribution_id =  #{distributionId,jdbcType=VARCHAR},
373
+        unit_price =  #{unitPrice,jdbcType=DOUBLE}
371
     where id = #{id,jdbcType=VARCHAR}
374
     where id = #{id,jdbcType=VARCHAR}
372
   </update>
375
   </update>
373
 
376
 
379
 
382
 
380
   <update id="savePriceMod" parameterType="com.th.demo.model.ware.OutRecord" >
383
   <update id="savePriceMod" parameterType="com.th.demo.model.ware.OutRecord" >
381
     update t_ware_out_record t
384
     update t_ware_out_record t
382
-    set t.invoice_price = #{invoicePrice,jdbcType=DOUBLE}
385
+    set t.unit_price = #{invoicePrice,jdbcType=DOUBLE}
383
     where id = #{id,jdbcType=VARCHAR}
386
     where id = #{id,jdbcType=VARCHAR}
384
   </update>
387
   </update>
385
   <update id="cleanVerifyInfo" parameterType="java.lang.String" >
388
   <update id="cleanVerifyInfo" parameterType="java.lang.String" >

+ 6
- 4
src/main/resource/mapper/ware/StoreMapper.xml Bestand weergeven

32
     <result column="fk_compony_id" property="fkComponyId" jdbcType="VARCHAR" />
32
     <result column="fk_compony_id" property="fkComponyId" jdbcType="VARCHAR" />
33
 
33
 
34
     <result column="invoice_price" property="invoicePrice" jdbcType="DOUBLE" />
34
     <result column="invoice_price" property="invoicePrice" jdbcType="DOUBLE" />
35
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
35
 
36
 
36
 
37
 
37
     <association  column="ware_id" property="ware" select="com.th.demo.mapping.maint.WareMapper.selectByPrimaryKey" />
38
     <association  column="ware_id" property="ware" select="com.th.demo.mapping.maint.WareMapper.selectByPrimaryKey" />
56
   <sql id="Base_Column_List" >
57
   <sql id="Base_Column_List" >
57
     id, ware_id, stack_id, layer, material_id, model, plate_no, customer_id, count, weight,
58
     id, ware_id, stack_id, layer, material_id, model, plate_no, customer_id, count, weight,
58
     remark, add_id, add_time, modify_id, modify_time, cancel_id, cancel_time, cancel_flag,
59
     remark, add_id, add_time, modify_id, modify_time, cancel_id, cancel_time, cancel_flag,
59
-    belong_id, in_id, out_id, receive_address, out_flag, lock_flag,wgt_dcn_mtc_cd,edge_ty,production_place
60
+    belong_id, in_id, out_id, receive_address, out_flag, lock_flag,wgt_dcn_mtc_cd,edge_ty,production_place,contract_no
60
   </sql>
61
   </sql>
61
 
62
 
62
 
63
 
86
       belong_id, in_id, out_id,
87
       belong_id, in_id, out_id,
87
       receive_address, out_flag, lock_flag
88
       receive_address, out_flag, lock_flag
88
       ,wgt_dcn_mtc_cd,edge_ty,production_place,ord_no
89
       ,wgt_dcn_mtc_cd,edge_ty,production_place,ord_no
89
-      ,car_no,tally_people,fk_compony_id,invoice_price
90
+      ,car_no,tally_people,fk_compony_id,invoice_price,contract_no
90
     )
91
     )
91
     values (#{id,jdbcType=VARCHAR}, #{ware.id,jdbcType=VARCHAR}, #{stack.id,jdbcType=VARCHAR},
92
     values (#{id,jdbcType=VARCHAR}, #{ware.id,jdbcType=VARCHAR}, #{stack.id,jdbcType=VARCHAR},
92
       #{layer,jdbcType=INTEGER}, #{material.id,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR},
93
       #{layer,jdbcType=INTEGER}, #{material.id,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR},
97
       #{belongId,jdbcType=VARCHAR}, #{inId,jdbcType=VARCHAR}, #{outId,jdbcType=VARCHAR},
98
       #{belongId,jdbcType=VARCHAR}, #{inId,jdbcType=VARCHAR}, #{outId,jdbcType=VARCHAR},
98
       #{receiveAddress,jdbcType=VARCHAR}, #{outFlag,jdbcType=VARCHAR}, #{lockFlag,jdbcType=VARCHAR}
99
       #{receiveAddress,jdbcType=VARCHAR}, #{outFlag,jdbcType=VARCHAR}, #{lockFlag,jdbcType=VARCHAR}
99
       ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{ordNo,jdbcType=VARCHAR}
100
       ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{ordNo,jdbcType=VARCHAR}
100
-     ,#{carNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyId,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE}
101
+     ,#{carNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyId,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{contractNo,jdbcType=VARCHAR}
101
       )
102
       )
102
   </insert>
103
   </insert>
103
 
104
 
324
       out_id = #{outId,jdbcType=VARCHAR},
325
       out_id = #{outId,jdbcType=VARCHAR},
325
       receive_address = #{receiveAddress,jdbcType=VARCHAR},
326
       receive_address = #{receiveAddress,jdbcType=VARCHAR},
326
       out_flag = #{outFlag,jdbcType=VARCHAR},
327
       out_flag = #{outFlag,jdbcType=VARCHAR},
327
-      lock_flag = #{lockFlag,jdbcType=VARCHAR}
328
+      lock_flag = #{lockFlag,jdbcType=VARCHAR},
329
+      contract_no = #{contractNo,jdbcType=VARCHAR}
328
     where id = #{id,jdbcType=VARCHAR}
330
     where id = #{id,jdbcType=VARCHAR}
329
   </update>
331
   </update>
330
 
332
 

Laden…
Annuleren
Opslaan