Parcourir la source

新增委托单位

fanxw il y a 1 mois
Parent
commit
8e70b4c7a2

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

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

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

@@ -59,6 +59,8 @@ public class BusinessContractReceive {
59 59
 
60 60
     private String dataType;
61 61
 
62
+    private String wtdw;
63
+
62 64
     /**
63 65
      * 主键ID
64 66
      * @return id 主键ID
@@ -458,4 +460,20 @@ public class BusinessContractReceive {
458 460
     public void setDataType(String dataType) {
459 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 227
 		if (StringUtils.isNotBlank(hw_sptid)) {
228 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 235
 		Map<String, Object> resultMap = new HashMap<>();
232 236
 		resultMap.put("msg", sbf.toString());