Przeglądaj źródła

1.垛位操作导入入库明细表 新增合约号字段

2.出库操作导入出库明细表字段 新增合约号字段
3.导出入库明细表excel 新增合约号字段
4.导出出库明细表excel 新增合约号字段
dw 1 miesiąc temu
rodzic
commit
713b023d38

+ 9
- 1
src/main/java/com/th/demo/model/ware/InRecord.java Wyświetl plik

@@ -63,7 +63,7 @@ public class InRecord {
63 63
     private String fkComponyName;
64 64
     private double invoicePrice;
65 65
     private String remark1;
66
-
66
+    private String contractNo;
67 67
     public double getInvoicePrice() {
68 68
         return invoicePrice;
69 69
     }
@@ -340,4 +340,12 @@ public class InRecord {
340 340
     public void setRemark1(String remark1) {
341 341
         this.remark1 = remark1;
342 342
     }
343
+
344
+    public String getContractNo() {
345
+        return contractNo;
346
+    }
347
+
348
+    public void setContractNo(String contractNo) {
349
+        this.contractNo = contractNo;
350
+    }
343 351
 }

+ 9
- 0
src/main/java/com/th/demo/model/ware/OutRecord.java Wyświetl plik

@@ -87,6 +87,8 @@ public class OutRecord {
87 87
     private Integer inWareDays;
88 88
     private Double unitPrice;
89 89
     private String remark1; //垛位备注
90
+//    合约号
91
+    private String contractNo;
90 92
 
91 93
     public Double getUnitPrice() {
92 94
         return unitPrice;
@@ -446,4 +448,11 @@ public class OutRecord {
446 448
     public void setRemark1(String remark1) {
447 449
         this.remark1 = remark1;
448 450
     }
451
+
452
+    public void setContractNo(String contractNo) {
453
+        this.contractNo = contractNo;
454
+    }
455
+    public String getContractNo() {
456
+        return contractNo;
457
+    }
449 458
 }

+ 2
- 0
src/main/java/com/th/demo/service/impl/ware/InServiceImpl.java Wyświetl plik

@@ -90,6 +90,7 @@ public class InServiceImpl implements InService {
90 90
         store.setInvoicePrice(prodPrice.getInvoicePrice());*/
91 91
 
92 92
         InRecord inRecord = getInRecord(store, "1", userId);
93
+        inRecord.setContractNo(store.getContractNo());
93 94
         num = inRecordMapper.insert(inRecord);
94 95
 
95 96
 
@@ -471,6 +472,7 @@ public class InServiceImpl implements InService {
471 472
         inRecord.setModel(store.getModel());
472 473
         inRecord.setCustomerName(store.getCustomer().getName());
473 474
         inRecord.setFkComponyName(store.getFkComponyId());
475
+        inRecord.setContractNo(store.getContractNo());
474 476
 
475 477
         if (recordType.equals("0")) {
476 478
             inRecord.setCount(-1 * store.getCount());

+ 1
- 0
src/main/java/com/th/demo/service/impl/ware/OutServiceImpl.java Wyświetl plik

@@ -337,6 +337,7 @@ public class OutServiceImpl implements OutService {
337 337
         outRecord.setEdgeTy(store.getEdgeTy());
338 338
         outRecord.setProductionPlace(store.getProductionPlace());
339 339
         outRecord.setRemark1(store.getRemark1());
340
+        outRecord.setContractNo(store.getContractNo());
340 341
         InRecord inRecord = inRecordMapper.selectByPrimaryKey(store.getInId());
341 342
         /*double asd = (outRecord.getAddTime().getDate() - inRecord.getAddTime().getTime())/ (24 * 60 * 60 * 1000);
342 343
         Price price = priceMapper.selectByMaterialChangeTime(store.getFkComponyId(),store.getBelongId());

+ 9
- 3
src/main/resource/mapper/ware/InRecordMapper.xml Wyświetl plik

@@ -15,7 +15,7 @@
15 15
     <result column="count" property="count" jdbcType="DOUBLE" />
16 16
     <result column="weight" property="weight" jdbcType="DOUBLE" />
17 17
     <result column="remark" property="remark" jdbcType="VARCHAR" />
18
-
18
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
19 19
     <result column="add_time" property="addTime" jdbcType="TIMESTAMP" />
20 20
     <result column="modify_id" property="modifyId" jdbcType="VARCHAR" />
21 21
     <result column="modify_time" property="modifyTime" jdbcType="TIMESTAMP" />
@@ -70,7 +70,7 @@
70 70
       modify_id, modify_time, cancel_id, 
71 71
       cancel_time, cancel_flag, belong_id, 
72 72
       plate_no,record_type,receive_address
73
-    ,wgt_dcn_mtc_cd,edge_ty,production_place,car_no,ord_no,tally_people,fk_compony_name,remark1)
73
+    ,wgt_dcn_mtc_cd,edge_ty,production_place,car_no,ord_no,tally_people,fk_compony_name,remark1,contract_no)
74 74
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
75 75
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
76 76
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
@@ -80,7 +80,7 @@
80 80
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
81 81
     #{plateNo,jdbcType=VARCHAR},#{recordType,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}
82 82
     ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{carNo,jdbcType=VARCHAR}
83
-    ,#{ordNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR},#{remark1,jdbcType=VARCHAR})
83
+    ,#{ordNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR},#{remark1,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR})
84 84
   </insert>
85 85
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.InRecord" >
86 86
     insert into t_ware_in_record
@@ -151,6 +151,9 @@
151 151
       <if test="plateNo != null" >
152 152
         plate_no,
153 153
       </if>
154
+        <if test="contractNo != null" >
155
+            contract_no,
156
+      </if>
154 157
     </trim>
155 158
     <trim prefix="values (" suffix=")" suffixOverrides="," >
156 159
       <if test="id != null" >
@@ -219,6 +222,9 @@
219 222
       <if test="plateNo != null" >
220 223
         #{plateNo,jdbcType=VARCHAR},
221 224
       </if>
225
+        <if test="contractNo != null" >
226
+            #{contractNo,jdbcType=VARCHAR},
227
+      </if>
222 228
     </trim>
223 229
   </insert>
224 230
   <update id="updateByPrimaryKeySelective" parameterType="com.th.demo.model.ware.InRecord" >

+ 4
- 3
src/main/resource/mapper/ware/OutRecordMapper.xml Wyświetl plik

@@ -91,6 +91,7 @@
91 91
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
92 92
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
93 93
     <result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
94
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
94 95
   </resultMap>
95 96
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
96 97
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
@@ -124,7 +125,7 @@
124 125
       cancel_time, cancel_flag, belong_id, 
125 126
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
126 127
     ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price
127
-    ,remark1)
128
+    ,remark1,contract_no)
128 129
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
129 130
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
130 131
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
@@ -135,7 +136,7 @@
135 136
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
136 137
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
137 138
     ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE}
138
-    ,#{remark1,jdbcType=VARCHAR})
139
+    ,#{remark1,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR})
139 140
   </insert>
140 141
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
141 142
     insert into t_ware_out_record
@@ -470,7 +471,7 @@
470 471
     select
471 472
     e.name as fk_compony_name,p.tally_people as tally_people,p.truck_no as out_car_no,f.user_desc as add_id,t.*,c.ord_no,DATE_FORMAT(d.add_time, '%Y-%m-%d %H:%i:%s') as in_time
472 473
     ,(select tt.user_desc as in_user from sys_user tt where tt.id = d.add_id) as in_user,d.car_no as in_car_no
473
-    ,t.invoice_price,t.distribution_id
474
+    ,t.invoice_price,t.distribution_id,t.contract_no
474 475
     from t_ware_out_record t LEFT JOIN sys_user f on t.add_id = f.id
475 476
     ,t_ware_distribution p,(select t.plate_no,max(t.ord_no) ord_no from t_ware_store t group by t.plate_no) c,t_ware_in_record d
476 477
     LEFT JOIN t_maint_customer e on d.fk_compony_name = e.id

Ładowanie…
Anuluj
Zapisz