Pārlūkot izejas kodu

成品粮粮情卡

fanxw 1 gadu atpakaļ
vecāks
revīzija
edbd6b05ef

+ 20 - 5
src/main/java/com/chinaitop/depot/grainSituationCard/mapper/StorageCerealsCardMapper.xml

@@ -52,6 +52,7 @@
52 52
     <result column="remark" property="remark" jdbcType="VARCHAR" />
53 53
     <result column="data_status" property="dataStatus" jdbcType="VARCHAR" />
54 54
     <result column="bzq" property="bzq" jdbcType="TIMESTAMP" />
55
+    <result column="sjcygd" property="sjcygd" jdbcType="DECIMAL" />
55 56
   </resultMap>
56 57
   <sql id="Example_Where_Clause" >
57 58
     <where >
@@ -117,7 +118,7 @@
117 118
     in_width, grain_line_heigth, bin_volume, storeman_code, storeman_name, lypz_code,
118 119
     lypz_name, lydj_code, lydj_name, rksj, scrq, lycd_code, lycd_name, lysl, js, bzgg,
119 120
     pinp, ccfs_code, ccfs_name, jkrq, org_id, image_url, spare_one, spare_two, spare_three,
120
-    spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark, data_status, bzq
121
+    spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark, data_status, bzq, sjcygd
121 122
   </sql>
122 123
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" >
123 124
     select
@@ -163,7 +164,7 @@
163 164
       ccfs_name, jkrq, org_id,
164 165
       image_url, spare_one, spare_two,
165 166
       spare_three, spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark,
166
-      data_status, bzq)
167
+      data_status, bzq, sjcygd)
167 168
     values (#{id,jdbcType=VARCHAR}, #{storehouseCode,jdbcType=VARCHAR}, #{storehouseName,jdbcType=VARCHAR},
168 169
       #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{storehouseType,jdbcType=VARCHAR},
169 170
       #{storehouseTypeName,jdbcType=VARCHAR}, #{buildDate,jdbcType=TIMESTAMP}, #{wallCode,jdbcType=VARCHAR},
@@ -179,7 +180,7 @@
179 180
       #{spareThree,jdbcType=VARCHAR}, #{spareFour,jdbcType=VARCHAR}, #{spareFive,jdbcType=VARCHAR},
180 181
       #{sfgd,jdbcType=VARCHAR}, #{gdsj,jdbcType=TIMESTAMP}, #{zhycsj,jdbcType=TIMESTAMP}, #{jkr,jdbcType=VARCHAR}, 
181 182
       #{updatetime,jdbcType=TIMESTAMP}, #{lqss,jdbcType=VARCHAR}, #{ywlx,jdbcType=VARCHAR}, #{cj,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
182
-      #{dataStatus,jdbcType=VARCHAR}, #{bzq,jdbcType=TIMESTAMP}
183
+      #{dataStatus,jdbcType=VARCHAR}, #{bzq,jdbcType=TIMESTAMP}, #{sjcygd,jdbcType=DECIMAL}
183 184
       )
184 185
   </insert>
185 186
   <insert id="insertSelective" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCard" >
@@ -335,6 +336,9 @@
335 336
       <if test="bzq != null">
336 337
         bzq,
337 338
       </if>
339
+      <if test="sjcygd != null">
340
+        sjcygd,
341
+      </if>
338 342
     </trim>
339 343
     <trim prefix="values (" suffix=")" suffixOverrides="," >
340 344
       <if test="id != null" >
@@ -487,6 +491,9 @@
487 491
       <if test="bzq != null">
488 492
         #{bzq,jdbcType=TIMESTAMP},
489 493
       </if>
494
+      <if test="sjcygd != null">
495
+        #{sjcygd,jdbcType=DECIMAL},
496
+      </if>
490 497
     </trim>
491 498
   </insert>
492 499
   <select id="countByExample" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" resultType="java.lang.Integer" >
@@ -648,6 +655,9 @@
648 655
       <if test="record.bzq != null">
649 656
         bzq = #{record.bzq,jdbcType=TIMESTAMP},
650 657
       </if>
658
+      <if test="record.sjcygd != null">
659
+        sjcygd = #{record.sjcygd,jdbcType=DECIMAL},
660
+      </if>
651 661
     </set>
652 662
     <if test="_parameter != null" >
653 663
       <include refid="Update_By_Example_Where_Clause" />
@@ -704,7 +714,8 @@
704 714
       cj = #{record.cj,jdbcType=VARCHAR},
705 715
       remark = #{record.remark,jdbcType=VARCHAR},
706 716
       data_status = #{record.dataStatus,jdbcType=VARCHAR},
707
-      bzq = #{record.bzq,jdbcType=TIMESTAMP}
717
+      bzq = #{record.bzq,jdbcType=TIMESTAMP},
718
+      sjcygd = #{record.sjcygd,jdbcType=DECIMAL}
708 719
     <if test="_parameter != null" >
709 720
       <include refid="Update_By_Example_Where_Clause" />
710 721
     </if>
@@ -859,6 +870,9 @@
859 870
       <if test="bzq != null">
860 871
         bzq = #{bzq,jdbcType=TIMESTAMP},
861 872
       </if>
873
+      <if test="sjcygd != null">
874
+        sjcygd = #{sjcygd,jdbcType=DECIMAL},
875
+      </if>
862 876
     </set>
863 877
     where id = #{id,jdbcType=VARCHAR}
864 878
   </update>
@@ -912,7 +926,8 @@
912 926
       cj = #{cj,jdbcType=VARCHAR},
913 927
       remark = #{remark,jdbcType=VARCHAR},
914 928
       data_status = #{dataStatus,jdbcType=VARCHAR},
915
-      bzq = #{bzq,jdbcType=TIMESTAMP}
929
+      bzq = #{bzq,jdbcType=TIMESTAMP},
930
+      sjcygd = #{sjcygd,jdbcType=DECIMAL}
916 931
     where id = #{id,jdbcType=VARCHAR}
917 932
   </update>
918 933
 

+ 18 - 0
src/main/java/com/chinaitop/depot/grainSituationCard/model/StorageCerealsCard.java

@@ -112,6 +112,8 @@ public class StorageCerealsCard {
112 112
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
113 113
     private Date bzq;
114 114
 
115
+    private BigDecimal sjcygd;
116
+
115 117
     /**
116 118
      * 成品粮粮情卡主键
117 119
      * @return id 成品粮粮情卡主键
@@ -912,4 +914,20 @@ public class StorageCerealsCard {
912 914
 		this.bzq = bzq;
913 915
 	}
914 916
 
917
+	/**
918
+	 * 实际储油高度
919
+	 * @return
920
+	 */
921
+	public BigDecimal getSjcygd() {
922
+		return sjcygd;
923
+	}
924
+
925
+	/**
926
+	 * 实际储油高度
927
+	 * @param sjcygd
928
+	 */
929
+	public void setSjcygd(BigDecimal sjcygd) {
930
+		this.sjcygd = sjcygd;
931
+	}
932
+
915 933
 }