Browse Source

入库记录增加合约号

LiuCheng 2 months ago
parent
commit
653bb55a31

+ 9
- 0
src/main/java/com/th/demo/model/ware/InRecord.java View File

67
         return invoicePrice;
67
         return invoicePrice;
68
     }
68
     }
69
 
69
 
70
+    private String contractNo;
70
     public void setInvoicePrice(double invoicePrice) {
71
     public void setInvoicePrice(double invoicePrice) {
71
         this.invoicePrice = invoicePrice;
72
         this.invoicePrice = invoicePrice;
72
     }
73
     }
331
     public void setReceiveAddress(String receiveAddress) {
332
     public void setReceiveAddress(String receiveAddress) {
332
         this.receiveAddress = receiveAddress == null ? null : receiveAddress.trim();
333
         this.receiveAddress = receiveAddress == null ? null : receiveAddress.trim();
333
     }
334
     }
335
+
336
+    public String getContractNo() {
337
+        return contractNo;
338
+    }
339
+
340
+    public void setContractNo(String contractNo) {
341
+        this.contractNo = contractNo;
342
+    }
334
 }
343
 }

+ 9
- 3
src/main/resource/localhost/db.properties View File

1
+#????????
1
 #jdbc.driverClass=com.mysql.jdbc.Driver
2
 #jdbc.driverClass=com.mysql.jdbc.Driver
2
 #jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware?useUnicode=true&characterEncoding=utf8
3
 #jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware?useUnicode=true&characterEncoding=utf8
3
 #jdbc.user=root
4
 #jdbc.user=root
4
 #jdbc.password=root
5
 #jdbc.password=root
6
+#????????
7
+#jdbc.driverClass=com.mysql.jdbc.Driver
8
+#jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ware?characterEncoding=utf8
9
+#jdbc.user=root
10
+#jdbc.password=root
5
 
11
 
6
-#???????????????????????????????
12
+#60?????
7
 jdbc.driverClass=com.mysql.jdbc.Driver
13
 jdbc.driverClass=com.mysql.jdbc.Driver
8
-jdbc.jdbcUrl=jdbc:mysql://localhost:3306/ware?characterEncoding=utf8
14
+jdbc.jdbcUrl=jdbc:mysql://60.205.9.174:3309/ware?useUnicode=true&characterEncoding=utf8
9
 jdbc.user=root
15
 jdbc.user=root
10
-jdbc.password=root
16
+jdbc.password=122403

+ 6
- 4
src/main/resource/mapper/ware/InRecordMapper.xml View File

33
     <result column="ord_no" property="ordNo" jdbcType="VARCHAR" />
33
     <result column="ord_no" property="ordNo" jdbcType="VARCHAR" />
34
     <result column="tally_people" property="tallyPeople" jdbcType="VARCHAR" />
34
     <result column="tally_people" property="tallyPeople" jdbcType="VARCHAR" />
35
     <result column="fk_compony_name" property="fkComponyName" jdbcType="VARCHAR" />
35
     <result column="fk_compony_name" property="fkComponyName" jdbcType="VARCHAR" />
36
+    <result column="contract_no" property="contractNo" jdbcType="VARCHAR" />
36
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
37
     <association  column="add_id" property="addUser" select="com.th.demo.mapping.system.SysUserMapper.selectByPrimaryKey" />
37
 
38
 
38
   </resultMap>
39
   </resultMap>
43
   <sql id="Base_Column_List" >
44
   <sql id="Base_Column_List" >
44
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
45
     id, ware_name, stack_name, layer, material_name, material_no, standard, model, customer_name, 
45
     customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, 
46
     customer_no, count, weight, remark, add_id, add_time, modify_id, modify_time, cancel_id, 
46
-    cancel_time, cancel_flag, belong_id, plate_no,record_type,receive_address ,wgt_dcn_mtc_cd,edge_ty,production_place
47
+    cancel_time, cancel_flag, belong_id, plate_no,record_type,receive_address ,wgt_dcn_mtc_cd,edge_ty,production_place,contract_no
47
   </sql>
48
   </sql>
48
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
49
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
49
     select 
50
     select 
69
       modify_id, modify_time, cancel_id, 
70
       modify_id, modify_time, cancel_id, 
70
       cancel_time, cancel_flag, belong_id, 
71
       cancel_time, cancel_flag, belong_id, 
71
       plate_no,record_type,receive_address
72
       plate_no,record_type,receive_address
72
-    ,wgt_dcn_mtc_cd,edge_ty,production_place,car_no,ord_no,tally_people,fk_compony_name)
73
+    ,wgt_dcn_mtc_cd,edge_ty,production_place,car_no,ord_no,tally_people,fk_compony_name,contract_no)
73
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
74
     values (#{id,jdbcType=VARCHAR}, #{wareName,jdbcType=VARCHAR}, #{stackName,jdbcType=VARCHAR}, 
74
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
75
       #{layer,jdbcType=INTEGER}, #{materialName,jdbcType=VARCHAR}, #{materialNo,jdbcType=VARCHAR}, 
75
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
76
       #{standard,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, 
79
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
80
       #{cancelTime,jdbcType=TIMESTAMP}, #{cancelFlag,jdbcType=VARCHAR}, #{belongId,jdbcType=VARCHAR},
80
     #{plateNo,jdbcType=VARCHAR},#{recordType,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}
81
     #{plateNo,jdbcType=VARCHAR},#{recordType,jdbcType=VARCHAR}, #{receiveAddress,jdbcType=VARCHAR}
81
     ,#{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}
82
-    ,#{ordNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR})
83
+    ,#{ordNo,jdbcType=VARCHAR},#{tallyPeople,jdbcType=VARCHAR},#{fkComponyName,jdbcType=VARCHAR},#{contractNo,jdbcType=VARCHAR})
83
   </insert>
84
   </insert>
84
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.InRecord" >
85
   <insert id="insertSelective" parameterType="com.th.demo.model.ware.InRecord" >
85
     insert into t_ware_in_record
86
     insert into t_ware_in_record
313
       belong_id = #{belongId,jdbcType=VARCHAR},
314
       belong_id = #{belongId,jdbcType=VARCHAR},
314
       plate_no = #{plateNo,jdbcType=VARCHAR},
315
       plate_no = #{plateNo,jdbcType=VARCHAR},
315
          record_type = #{recordType,jdbcType=VARCHAR},
316
          record_type = #{recordType,jdbcType=VARCHAR},
316
-    receive_address = #{receiveAddress,jdbcType=VARCHAR}
317
+    receive_address = #{receiveAddress,jdbcType=VARCHAR},
318
+      contract_no = #{contractNo,jdbcType=VARCHAR}
317
     where id = #{id,jdbcType=VARCHAR}
319
     where id = #{id,jdbcType=VARCHAR}
318
   </update>
320
   </update>
319
 
321
 

Loading…
Cancel
Save