Przeglądaj źródła

出库结算管理-新增备注字段

hanqingsong 1 rok temu
rodzic
commit
2220ae2401

+ 7 - 0
pom.xml

@@ -126,6 +126,13 @@
126 126
 		    <groupId>org.springframework.cloud</groupId>
127 127
 		    <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
128 128
 		</dependency>
129
+		<!-- lombok -->
130
+		<dependency>
131
+			<groupId>org.projectlombok</groupId>
132
+			<artifactId>lombok</artifactId>
133
+			<version>1.18.22</version>
134
+			<scope>provided</scope>
135
+		</dependency>
129 136
 	</dependencies>
130 137
 
131 138
 	<dependencyManagement>

+ 24 - 7
src/main/java/com/chinaitop/depot/device/mapper/StorageJsglMapper.xml

@@ -34,6 +34,7 @@
34 34
     <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
35 35
     <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
36 36
     <result column="ywlx" jdbcType="VARCHAR" property="ywlx" />
37
+    <result column="remarks" jdbcType="VARCHAR" property="remarks" />
37 38
   </resultMap>
38 39
   <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chinaitop.depot.device.model.StorageJsgl">
39 40
     <result column="fp_text" jdbcType="LONGVARCHAR" property="fpText" />
@@ -99,7 +100,7 @@
99 100
   <sql id="Base_Column_List">
100 101
     id, org_id, data_status, jslx, htid, htbh, htzsl, yjssl, house_id, warehouse_id, 
101 102
     lypz, mxpz, lyxz, bcjssl, bcjsdj, bcjsje, bcjssj, bcjsfs, fp_start, fp_end, fps, 
102
-    fpzt, customer_id, sfkr, khhmc, khhh, yhzh, skrsfzh, fkdw, create_time, update_time, ywlx
103
+    fpzt, customer_id, sfkr, khhmc, khhh, yhzh, skrsfzh, fkdw, create_time, update_time, ywlx,remarks
103 104
   </sql>
104 105
   <sql id="Blob_Column_List">
105 106
     fp_text
@@ -162,7 +163,7 @@
162 163
       fps, fpzt, customer_id, 
163 164
       sfkr, khhmc, khhh, 
164 165
       yhzh, skrsfzh, fkdw, 
165
-      create_time, update_time, fp_text, ywlx
166
+      create_time, update_time, fp_text, ywlx,remarks
166 167
       )
167 168
     values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{dataStatus,jdbcType=VARCHAR}, 
168 169
       #{jslx,jdbcType=VARCHAR}, #{htid,jdbcType=VARCHAR}, #{htbh,jdbcType=VARCHAR}, #{htzsl,jdbcType=DECIMAL}, 
@@ -174,7 +175,7 @@
174 175
       #{sfkr,jdbcType=VARCHAR}, #{khhmc,jdbcType=VARCHAR}, #{khhh,jdbcType=VARCHAR}, 
175 176
       #{yhzh,jdbcType=VARCHAR}, #{skrsfzh,jdbcType=VARCHAR}, #{fkdw,jdbcType=VARCHAR}, 
176 177
       #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{fpText,jdbcType=LONGVARCHAR},
177
-      #{ywlx,jdbcType=VARCHAR}
178
+      #{ywlx,jdbcType=VARCHAR},#{remarks,jdbcType=VARCHAR}
178 179
       )
179 180
   </insert>
180 181
   <insert id="insertSelective" parameterType="com.chinaitop.depot.device.model.StorageJsgl">
@@ -279,6 +280,9 @@
279 280
       <if test="ywlx != null">
280 281
         ywlx,
281 282
       </if>
283
+      <if test="remarks != null">
284
+        remarks,
285
+      </if>
282 286
     </trim>
283 287
     <trim prefix="values (" suffix=")" suffixOverrides=",">
284 288
       <if test="id != null">
@@ -380,6 +384,9 @@
380 384
       <if test="ywlx != null">
381 385
         #{ywlx,jdbcType=VARCHAR},
382 386
       </if>
387
+      <if test="remarks != null">
388
+        #{remarks,jdbcType=VARCHAR},
389
+      </if>
383 390
     </trim>
384 391
   </insert>
385 392
   <select id="countByExample" parameterType="com.chinaitop.depot.device.model.StorageJsglExample" resultType="java.lang.Integer">
@@ -490,6 +497,9 @@
490 497
       <if test="record.ywlx != null">
491 498
         ywlx = #{record.ywlx,jdbcType=VARCHAR},
492 499
       </if>
500
+      <if test="record.remarks != null">
501
+        remarks = #{record.remarks,jdbcType=VARCHAR},
502
+      </if>
493 503
     </set>
494 504
     <if test="_parameter != null">
495 505
       <include refid="Update_By_Example_Where_Clause" />
@@ -529,7 +539,8 @@
529 539
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
530 540
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
531 541
       fp_text = #{record.fpText,jdbcType=LONGVARCHAR},
532
-      ywlx = #{record.ywlx,jdbcType=VARCHAR}
542
+      ywlx = #{record.ywlx,jdbcType=VARCHAR},
543
+      remarks = #{record.remarks,jdbcType=VARCHAR}
533 544
     <if test="_parameter != null">
534 545
       <include refid="Update_By_Example_Where_Clause" />
535 546
     </if>
@@ -567,7 +578,8 @@
567 578
       fkdw = #{record.fkdw,jdbcType=VARCHAR},
568 579
       create_time = #{record.createTime,jdbcType=TIMESTAMP},
569 580
       update_time = #{record.updateTime,jdbcType=TIMESTAMP},
570
-      ywlx = #{record.ywlx,jdbcType=VARCHAR}
581
+      ywlx = #{record.ywlx,jdbcType=VARCHAR},
582
+      remarks = #{record.remarks,jdbcType=VARCHAR}
571 583
     <if test="_parameter != null">
572 584
       <include refid="Update_By_Example_Where_Clause" />
573 585
     </if>
@@ -671,6 +683,9 @@
671 683
       <if test="ywlx != null">
672 684
         ywlx = #{ywlx,jdbcType=VARCHAR},
673 685
       </if>
686
+      <if test="remarks != null">
687
+        remarks = #{remarks,jdbcType=VARCHAR},
688
+      </if>
674 689
     </set>
675 690
     where id = #{id,jdbcType=VARCHAR}
676 691
   </update>
@@ -707,7 +722,8 @@
707 722
       create_time = #{createTime,jdbcType=TIMESTAMP},
708 723
       update_time = #{updateTime,jdbcType=TIMESTAMP},
709 724
       fp_text = #{fpText,jdbcType=LONGVARCHAR},
710
-      ywlx = #{ywlx,jdbcType=VARCHAR}
725
+      ywlx = #{ywlx,jdbcType=VARCHAR},
726
+      remarks = #{remarks,jdbcType=VARCHAR}
711 727
     where id = #{id,jdbcType=VARCHAR}
712 728
   </update>
713 729
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.device.model.StorageJsgl">
@@ -742,7 +758,8 @@
742 758
       fkdw = #{fkdw,jdbcType=VARCHAR},
743 759
       create_time = #{createTime,jdbcType=TIMESTAMP},
744 760
       update_time = #{updateTime,jdbcType=TIMESTAMP},
745
-      ywlx = #{ywlx,jdbcType=VARCHAR}
761
+      ywlx = #{ywlx,jdbcType=VARCHAR},
762
+      remarks = #{remarks,jdbcType=VARCHAR}
746 763
     where id = #{id,jdbcType=VARCHAR}
747 764
   </update>
748 765
 

+ 5 - 0
src/main/java/com/chinaitop/depot/device/model/StorageJsgl.java

@@ -4,6 +4,8 @@ import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 
6 6
 import com.fasterxml.jackson.annotation.JsonFormat;
7
+import lombok.Getter;
8
+import lombok.Setter;
7 9
 
8 10
 public class StorageJsgl {
9 11
     private String id;
@@ -74,6 +76,9 @@ public class StorageJsgl {
74 76
     private Date updateTime;
75 77
 
76 78
     private String fpText;
79
+    // 备注
80
+    @Getter @Setter
81
+    private String remarks;
77 82
 
78 83
     /**
79 84
      * 主键唯一ID