Преглед изворни кода

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

2.出库操作导入出库明细表字段 新增合约号字段
3.导出入库明细表excel 新增合约号字段
4.导出出库明细表excel 新增合约号字段
dw пре 4 месеци
родитељ
комит
713b023d38

+ 9
- 1
src/main/java/com/th/demo/model/ware/InRecord.java Прегледај датотеку

63
     private String fkComponyName;
63
     private String fkComponyName;
64
     private double invoicePrice;
64
     private double invoicePrice;
65
     private String remark1;
65
     private String remark1;
66
-
66
+    private String contractNo;
67
     public double getInvoicePrice() {
67
     public double getInvoicePrice() {
68
         return invoicePrice;
68
         return invoicePrice;
69
     }
69
     }
340
     public void setRemark1(String remark1) {
340
     public void setRemark1(String remark1) {
341
         this.remark1 = remark1;
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 Прегледај датотеку

87
     private Integer inWareDays;
87
     private Integer inWareDays;
88
     private Double unitPrice;
88
     private Double unitPrice;
89
     private String remark1; //垛位备注
89
     private String remark1; //垛位备注
90
+//    合约号
91
+    private String contractNo;
90
 
92
 
91
     public Double getUnitPrice() {
93
     public Double getUnitPrice() {
92
         return unitPrice;
94
         return unitPrice;
446
     public void setRemark1(String remark1) {
448
     public void setRemark1(String remark1) {
447
         this.remark1 = remark1;
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 Прегледај датотеку

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

+ 1
- 0
src/main/java/com/th/demo/service/impl/ware/OutServiceImpl.java Прегледај датотеку

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

+ 9
- 3
src/main/resource/mapper/ware/InRecordMapper.xml Прегледај датотеку

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

+ 4
- 3
src/main/resource/mapper/ware/OutRecordMapper.xml Прегледај датотеку

91
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
91
     <result column="in_ware_days" property="inWareDays" jdbcType="INTEGER" />
92
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
92
     <result column="store_fee" property="storeFee" jdbcType="DOUBLE" />
93
     <result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
93
     <result column="unit_price" property="unitPrice" jdbcType="DOUBLE" />
94
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
94
   </resultMap>
95
   </resultMap>
95
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
96
   <resultMap id="TotalResultMap" type="com.th.demo.model.ware.TotalRecord">
96
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
97
     <result column="total_amount" property="totalAmount" jdbcType="DOUBLE" />
124
       cancel_time, cancel_flag, belong_id, 
125
       cancel_time, cancel_flag, belong_id, 
125
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
126
       plate_no,in_id, record_type,back_flag,receive_address,distribution_id
126
     ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price
127
     ,wgt_dcn_mtc_cd,edge_ty,production_place,tally_people,invoice_price,unit_price
127
-    ,remark1)
128
+    ,remark1,contract_no)
128
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
129
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
129
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
130
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
130
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
131
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
135
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
136
     #{plateNo,jdbcType=VARCHAR},  #{inId,jdbcType=VARCHAR}, #{recordType,jdbcType=VARCHAR},
136
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
137
     #{backFlag,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}, #{distributionId,jdbcType=VARCHAR}
137
     ,#{wgtDcnMtcCd,jdbcType=VARCHAR},#{edgeTy,jdbcType=VARCHAR},#{productionPlace,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{invoicePrice,jdbcType=DOUBLE},#{unitPrice,jdbcType=DOUBLE}
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
   </insert>
140
   </insert>
140
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
141
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.OutRecord" >
141
     insert into t_ware_out_record
142
     insert into t_ware_out_record
470
     select
471
     select
471
     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
     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
     ,(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
     ,(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
     from t_ware_out_record t LEFT JOIN sys_user f on t.add_id = f.id
475
     from t_ware_out_record t LEFT JOIN sys_user f on t.add_id = f.id
475
     ,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
     ,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
     LEFT JOIN t_maint_customer e on d.fk_compony_name = e.id
477
     LEFT JOIN t_maint_customer e on d.fk_compony_name = e.id

Loading…
Откажи
Сачувај