Selaa lähdekoodia

初检详情页面化验项增加其它病粒指标项

fanxw 4 vuotta sitten
vanhempi
commit
9d58458e73

+ 20 - 5
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckInspectionMapper.xml

@@ -72,6 +72,7 @@
72 72
     <result column="input_four" property="inputFour" jdbcType="VARCHAR" />
73 73
     <result column="sieve_residue" property="sieveResidue" jdbcType="VARCHAR" />
74 74
     <result column="rice_yield" property="riceYield" jdbcType="VARCHAR" />
75
+    <result column="imperfectgrains_scab_qtbl" property="imperfectgrainsScabQtbl" jdbcType="VARCHAR" />
75 76
   </resultMap>
76 77
   <sql id="Example_Where_Clause" >
77 78
     <where >
@@ -145,7 +146,7 @@
145 146
     avg_length, rice_grains, brokenRice_total, brokenRice_big, brokenRice_small, machiningAccuracy, 
146 147
     chalkiness, machiningAccuracy_essence, machiningAccuracy_suitable, amylose, ash_content, 
147 148
     coarseness, gluten, silt_content, magnetic_metal, input_one, input_two, input_three, 
148
-    input_four,sieve_residue,rice_yield
149
+    input_four,sieve_residue,rice_yield,imperfectgrains_scab_qtbl
149 150
   </sql>
150 151
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspectionExample" >
151 152
     select
@@ -203,7 +204,7 @@
203 204
       coarseness, gluten, silt_content, 
204 205
       magnetic_metal, input_one, input_two, 
205 206
       input_three, input_four,
206
-      sieve_residue,rice_yield)
207
+      sieve_residue,rice_yield,imperfectgrains_scab_qtbl)
207 208
     values (#{id,jdbcType=INTEGER}, #{qualitycheckId,jdbcType=INTEGER}, #{unitWeight,jdbcType=VARCHAR}, 
208 209
       #{impurityTotal,jdbcType=VARCHAR}, #{impurityInorganic,jdbcType=VARCHAR}, #{impurityOrganic,jdbcType=VARCHAR}, 
209 210
       #{impurityBranPowder,jdbcType=VARCHAR}, #{imperfectgrainsTotal,jdbcType=VARCHAR}, 
@@ -229,7 +230,7 @@
229 230
       #{coarseness,jdbcType=VARCHAR}, #{gluten,jdbcType=VARCHAR}, #{siltContent,jdbcType=VARCHAR}, 
230 231
       #{magneticMetal,jdbcType=VARCHAR}, #{inputOne,jdbcType=VARCHAR}, #{inputTwo,jdbcType=VARCHAR}, 
231 232
       #{inputThree,jdbcType=VARCHAR}, #{inputFour,jdbcType=VARCHAR},
232
-      #{sieveResidue,jdbcType=VARCHAR}, #{riceYield,jdbcType=VARCHAR})
233
+      #{sieveResidue,jdbcType=VARCHAR}, #{riceYield,jdbcType=VARCHAR}, #{imperfectgrainsScabQtbl,jdbcType=VARCHAR})
233 234
   </insert>
234 235
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
235 236
     insert into storage_qualitycheck_inspection
@@ -442,6 +443,9 @@
442 443
       <if test="riceYield != null" >
443 444
         rice_yield,
444 445
       </if>
446
+      <if test="imperfectgrainsScabQtbl != null">
447
+        imperfectgrains_scab_qtbl,
448
+      </if>
445 449
     </trim>
446 450
     <trim prefix="values (" suffix=")" suffixOverrides="," >
447 451
       SEQ_STORAGE_QUALITYCHECK_INSPECTION.nextVal,
@@ -652,6 +656,9 @@
652 656
       <if test="riceYield != null" >
653 657
         #{riceYield,jdbcType=VARCHAR},
654 658
       </if>
659
+      <if test="imperfectgrainsScabQtbl != null">
660
+        #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
661
+      </if>
655 662
     </trim>
656 663
   </insert>
657 664
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspectionExample" resultType="java.lang.Integer" >
@@ -873,6 +880,9 @@
873 880
       <if test="record.riceYield != null" >
874 881
         rice_yield = #{record.riceYield,jdbcType=VARCHAR},
875 882
       </if>
883
+      <if test="record.imperfectgrainsScabQtbl != null">
884
+        imperfectgrains_scab_qtbl = #{record.imperfectgrainsScabQtbl,jdbcType=VARCHAR},
885
+      </if>
876 886
     </set>
877 887
     <if test="_parameter != null" >
878 888
       <include refid="Update_By_Example_Where_Clause" />
@@ -949,7 +959,8 @@
949 959
       input_three = #{record.inputThree,jdbcType=VARCHAR},
950 960
       input_four = #{record.inputFour,jdbcType=VARCHAR},
951 961
       sieve_residue = #{record.sieveResidue,jdbcType=VARCHAR},
952
-      rice_yield = #{record.riceYield,jdbcType=VARCHAR}
962
+      rice_yield = #{record.riceYield,jdbcType=VARCHAR},
963
+      imperfectgrains_scab_qtbl = #{record.imperfectgrainsScabQtbl,jdbcType=VARCHAR}
953 964
     <if test="_parameter != null" >
954 965
       <include refid="Update_By_Example_Where_Clause" />
955 966
     </if>
@@ -1162,6 +1173,9 @@
1162 1173
       <if test="riceYield != null" >
1163 1174
         rice_yield = #{riceYield,jdbcType=VARCHAR},
1164 1175
       </if>
1176
+      <if test="imperfectgrainsScabQtbl != null">
1177
+        imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1178
+      </if>
1165 1179
     </set>
1166 1180
     where qualitycheck_id = #{qualitycheckId,jdbcType=INTEGER}
1167 1181
   </update>
@@ -1235,7 +1249,8 @@
1235 1249
       input_three = #{inputThree,jdbcType=VARCHAR},
1236 1250
       input_four = #{inputFour,jdbcType=VARCHAR},
1237 1251
       sieve_residue = #{sieveResidue,jdbcType=VARCHAR},
1238
-      rice_yield = #{riceYield,jdbcType=VARCHAR}
1252
+      rice_yield = #{riceYield,jdbcType=VARCHAR},
1253
+      imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR}
1239 1254
     where id = #{id,jdbcType=INTEGER}
1240 1255
   </update>
1241 1256
 

+ 18 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckInspection.java

@@ -140,6 +140,8 @@ public class StorageQualitycheckInspection {
140 140
     private String sieveResidue;//筛下物%2020.12.21  新增字段
141 141
 
142 142
     private String riceYield;//出米率%2020.12.21  新增字段
143
+    
144
+    private String imperfectgrainsScabQtbl; //其它病粒%2021-08-19
143 145
 
144 146
 
145 147
     public String getSieveResidue() {
@@ -1243,4 +1245,20 @@ public class StorageQualitycheckInspection {
1243 1245
     public void setInputFour(String inputFour) {
1244 1246
         this.inputFour = inputFour == null ? null : inputFour.trim();
1245 1247
     }
1248
+
1249
+    /**
1250
+     * 其它病粒
1251
+     * @return 其它病粒
1252
+     */
1253
+	public String getImperfectgrainsScabQtbl() {
1254
+		return imperfectgrainsScabQtbl;
1255
+	}
1256
+
1257
+	/**
1258
+	 * 其它病粒
1259
+	 * @param imperfectgrainsScabQtbl 其它病粒
1260
+	 */
1261
+	public void setImperfectgrainsScabQtbl(String imperfectgrainsScabQtbl) {
1262
+		this.imperfectgrainsScabQtbl = imperfectgrainsScabQtbl;
1263
+	}
1246 1264
 }