Ver código fonte

入库记录增加合约号

LiuCheng 2 meses atrás
pai
commit
653bb55a31

+ 9
- 0
src/main/java/com/th/demo/model/ware/InRecord.java Ver arquivo

@@ -67,6 +67,7 @@ public class InRecord {
67 67
         return invoicePrice;
68 68
     }
69 69
 
70
+    private String contractNo;
70 71
     public void setInvoicePrice(double invoicePrice) {
71 72
         this.invoicePrice = invoicePrice;
72 73
     }
@@ -331,4 +332,12 @@ public class InRecord {
331 332
     public void setReceiveAddress(String receiveAddress) {
332 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 Ver arquivo

@@ -1,10 +1,16 @@
1
+#????????
1 2
 #jdbc.driverClass=com.mysql.jdbc.Driver
2 3
 #jdbc.jdbcUrl=jdbc:mysql://172.18.200.32:3306/ware?useUnicode=true&characterEncoding=utf8
3 4
 #jdbc.user=root
4 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 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 15
 jdbc.user=root
10
-jdbc.password=root
16
+jdbc.password=122403

+ 6
- 4
src/main/resource/mapper/ware/InRecordMapper.xml Ver arquivo

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

Carregando…
Cancelar
Salvar