Browse Source

新增委托单位

fanxw 6 months ago
parent
commit
8e70b4c7a2

+ 21 - 5
src/main/java/com/chinaitop/depot/business/mapper/BusinessContractReceiveMapper.xml

@@ -27,6 +27,7 @@
27
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
27
     <result column="input_time" property="inputTime" jdbcType="TIMESTAMP" />
28
     <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
28
     <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
29
     <result column="data_type" property="dataType" jdbcType="VARCHAR" />
29
     <result column="data_type" property="dataType" jdbcType="VARCHAR" />
30
+    <result column="wtdw" property="wtdw" jdbcType="VARCHAR" />
30
   </resultMap>
31
   </resultMap>
31
   <sql id="Example_Where_Clause" >
32
   <sql id="Example_Where_Clause" >
32
     <where >
33
     <where >
@@ -89,7 +90,7 @@
89
   <sql id="Base_Column_List" >
90
   <sql id="Base_Column_List" >
90
     id, org_id, spt_htid, htbh, htlx, htzsl, htdj, htzj, yjssl, house_id, warehouse_id, 
91
     id, org_id, spt_htid, htbh, htlx, htzsl, htdj, htzj, yjssl, house_id, warehouse_id, 
91
     lypz, mxpz, lydj, lyxz, scnf, shnd, lycd, rksj, khid, khmc, tyxydm, input_time, update_time, 
92
     lypz, mxpz, lydj, lyxz, scnf, shnd, lycd, rksj, khid, khmc, tyxydm, input_time, update_time, 
92
-    data_type
93
+    data_type, wtdw
93
   </sql>
94
   </sql>
94
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessContractReceiveExample" >
95
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessContractReceiveExample" >
95
     select
96
     select
@@ -129,7 +130,7 @@
129
       mxpz, lydj, lyxz, scnf, 
130
       mxpz, lydj, lyxz, scnf, 
130
       shnd, lycd, rksj, 
131
       shnd, lycd, rksj, 
131
       khid, khmc, tyxydm, 
132
       khid, khmc, tyxydm, 
132
-      input_time, update_time, data_type
133
+      input_time, update_time, data_type, wtdw
133
       )
134
       )
134
     values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{sptHtid,jdbcType=VARCHAR}, 
135
     values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{sptHtid,jdbcType=VARCHAR}, 
135
       #{htbh,jdbcType=VARCHAR}, #{htlx,jdbcType=VARCHAR}, #{htzsl,jdbcType=DECIMAL}, 
136
       #{htbh,jdbcType=VARCHAR}, #{htlx,jdbcType=VARCHAR}, #{htzsl,jdbcType=DECIMAL}, 
@@ -138,7 +139,8 @@
138
       #{mxpz,jdbcType=INTEGER}, #{lydj,jdbcType=INTEGER}, #{lyxz,jdbcType=INTEGER}, #{scnf,jdbcType=INTEGER}, 
139
       #{mxpz,jdbcType=INTEGER}, #{lydj,jdbcType=INTEGER}, #{lyxz,jdbcType=INTEGER}, #{scnf,jdbcType=INTEGER}, 
139
       #{shnd,jdbcType=INTEGER}, #{lycd,jdbcType=INTEGER}, #{rksj,jdbcType=TIMESTAMP}, 
140
       #{shnd,jdbcType=INTEGER}, #{lycd,jdbcType=INTEGER}, #{rksj,jdbcType=TIMESTAMP}, 
140
       #{khid,jdbcType=INTEGER}, #{khmc,jdbcType=VARCHAR}, #{tyxydm,jdbcType=VARCHAR}, 
141
       #{khid,jdbcType=INTEGER}, #{khmc,jdbcType=VARCHAR}, #{tyxydm,jdbcType=VARCHAR}, 
141
-      #{inputTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{dataType,jdbcType=VARCHAR}
142
+      #{inputTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{dataType,jdbcType=VARCHAR},
143
+      #{wtdw,jdbcType=VARCHAR}
142
       )
144
       )
143
   </insert>
145
   </insert>
144
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessContractReceive" >
146
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessContractReceive" >
@@ -219,6 +221,9 @@
219
       <if test="dataType != null" >
221
       <if test="dataType != null" >
220
         data_type,
222
         data_type,
221
       </if>
223
       </if>
224
+      <if test="wtdw != null">
225
+        wtdw,
226
+      </if>
222
     </trim>
227
     </trim>
223
     <trim prefix="values (" suffix=")" suffixOverrides="," >
228
     <trim prefix="values (" suffix=")" suffixOverrides="," >
224
       <if test="id != null" >
229
       <if test="id != null" >
@@ -296,6 +301,9 @@
296
       <if test="dataType != null" >
301
       <if test="dataType != null" >
297
         #{dataType,jdbcType=VARCHAR},
302
         #{dataType,jdbcType=VARCHAR},
298
       </if>
303
       </if>
304
+      <if test="wtdw != null">
305
+        #{wtdw,jdbcType=VARCHAR},
306
+      </if>
299
     </trim>
307
     </trim>
300
   </insert>
308
   </insert>
301
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessContractReceiveExample" resultType="java.lang.Integer" >
309
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessContractReceiveExample" resultType="java.lang.Integer" >
@@ -382,6 +390,9 @@
382
       <if test="record.dataType != null" >
390
       <if test="record.dataType != null" >
383
         data_type = #{record.dataType,jdbcType=VARCHAR},
391
         data_type = #{record.dataType,jdbcType=VARCHAR},
384
       </if>
392
       </if>
393
+      <if test="record.wtdw != null">
394
+        wtdw = #{record.wtdw,jdbcType=VARCHAR},
395
+      </if>
385
     </set>
396
     </set>
386
     <if test="_parameter != null" >
397
     <if test="_parameter != null" >
387
       <include refid="Update_By_Example_Where_Clause" />
398
       <include refid="Update_By_Example_Where_Clause" />
@@ -413,7 +424,8 @@
413
       tyxydm = #{record.tyxydm,jdbcType=VARCHAR},
424
       tyxydm = #{record.tyxydm,jdbcType=VARCHAR},
414
       input_time = #{record.inputTime,jdbcType=TIMESTAMP},
425
       input_time = #{record.inputTime,jdbcType=TIMESTAMP},
415
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
426
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
416
-      data_type = #{record.dataType,jdbcType=VARCHAR}
427
+      data_type = #{record.dataType,jdbcType=VARCHAR},
428
+      wtdw = #{record.wtdw,jdbcType=VARCHAR}
417
     <if test="_parameter != null" >
429
     <if test="_parameter != null" >
418
       <include refid="Update_By_Example_Where_Clause" />
430
       <include refid="Update_By_Example_Where_Clause" />
419
     </if>
431
     </if>
@@ -493,6 +505,9 @@
493
       <if test="dataType != null" >
505
       <if test="dataType != null" >
494
         data_type = #{dataType,jdbcType=VARCHAR},
506
         data_type = #{dataType,jdbcType=VARCHAR},
495
       </if>
507
       </if>
508
+      <if test="wtdw != null">
509
+        wtdw = #{wtdw,jdbcType=VARCHAR},
510
+      </if>
496
     </set>
511
     </set>
497
     where id = #{id,jdbcType=INTEGER}
512
     where id = #{id,jdbcType=INTEGER}
498
   </update>
513
   </update>
@@ -521,7 +536,8 @@
521
       tyxydm = #{tyxydm,jdbcType=VARCHAR},
536
       tyxydm = #{tyxydm,jdbcType=VARCHAR},
522
       input_time = #{inputTime,jdbcType=TIMESTAMP},
537
       input_time = #{inputTime,jdbcType=TIMESTAMP},
523
       update_time = #{updateTime,jdbcType=TIMESTAMP},
538
       update_time = #{updateTime,jdbcType=TIMESTAMP},
524
-      data_type = #{dataType,jdbcType=VARCHAR}
539
+      data_type = #{dataType,jdbcType=VARCHAR},
540
+      wtdw = #{wtdw,jdbcType=VARCHAR}
525
     where id = #{id,jdbcType=INTEGER}
541
     where id = #{id,jdbcType=INTEGER}
526
   </update>
542
   </update>
527
 </mapper>
543
 </mapper>

+ 18 - 0
src/main/java/com/chinaitop/depot/business/model/BusinessContractReceive.java

@@ -59,6 +59,8 @@ public class BusinessContractReceive {
59
 
59
 
60
     private String dataType;
60
     private String dataType;
61
 
61
 
62
+    private String wtdw;
63
+
62
     /**
64
     /**
63
      * 主键ID
65
      * 主键ID
64
      * @return id 主键ID
66
      * @return id 主键ID
@@ -458,4 +460,20 @@ public class BusinessContractReceive {
458
     public void setDataType(String dataType) {
460
     public void setDataType(String dataType) {
459
         this.dataType = dataType == null ? null : dataType.trim();
461
         this.dataType = dataType == null ? null : dataType.trim();
460
     }
462
     }
463
+
464
+    /**
465
+     * 委托单位
466
+     * @return
467
+     */
468
+	public String getWtdw() {
469
+		return wtdw;
470
+	}
471
+
472
+	/**
473
+	 * 委托单位
474
+	 * @param wtdw
475
+	 */
476
+	public void setWtdw(String wtdw) {
477
+		this.wtdw = wtdw;
478
+	}
461
 }
479
 }

+ 4 - 0
src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractReceiveServiceImpl.java

@@ -227,6 +227,10 @@ public class BusinessContractReceiveServiceImpl implements BusinessContractRecei
227
 		if (StringUtils.isNotBlank(hw_sptid)) {
227
 		if (StringUtils.isNotBlank(hw_sptid)) {
228
 			dataobj.setSptHtid(id);
228
 			dataobj.setSptHtid(id);
229
 		}
229
 		}
230
+		String wtdw = obj.getString("wtdwmc");//委托单位
231
+		if (StringUtils.isNotBlank(wtdw)) {
232
+			dataobj.setWtdw(wtdw);
233
+		}
230
 
234
 
231
 		Map<String, Object> resultMap = new HashMap<>();
235
 		Map<String, Object> resultMap = new HashMap<>();
232
 		resultMap.put("msg", sbf.toString());
236
 		resultMap.put("msg", sbf.toString());