瀏覽代碼

增加字段 色泽气味

gaodd 2 年之前
父節點
當前提交
aad5e6247e

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

@@ -73,6 +73,7 @@
73 73
     <result column="sieve_residue" property="sieveResidue" jdbcType="VARCHAR" />
74 74
     <result column="rice_yield" property="riceYield" jdbcType="VARCHAR" />
75 75
     <result column="imperfectgrains_scab_qtbl" property="imperfectgrainsScabQtbl" jdbcType="VARCHAR" />
76
+    <result column="color_smell" property="colorSmell" jdbcType="VARCHAR" />
76 77
   </resultMap>
77 78
   <sql id="Example_Where_Clause" >
78 79
     <where >
@@ -146,7 +147,7 @@
146 147
     avg_length, rice_grains, brokenRice_total, brokenRice_big, brokenRice_small, machiningAccuracy, 
147 148
     chalkiness, machiningAccuracy_essence, machiningAccuracy_suitable, amylose, ash_content, 
148 149
     coarseness, gluten, silt_content, magnetic_metal, input_one, input_two, input_three, 
149
-    input_four,sieve_residue,rice_yield,imperfectgrains_scab_qtbl
150
+    input_four,sieve_residue,rice_yield,imperfectgrains_scab_qtbl,color_smell
150 151
   </sql>
151 152
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspectionExample" >
152 153
     select
@@ -204,7 +205,7 @@
204 205
       coarseness, gluten, silt_content, 
205 206
       magnetic_metal, input_one, input_two, 
206 207
       input_three, input_four,
207
-      sieve_residue,rice_yield,imperfectgrains_scab_qtbl)
208
+      sieve_residue,rice_yield,imperfectgrains_scab_qtbl,color_smell)
208 209
     values (#{id,jdbcType=INTEGER}, #{qualitycheckId,jdbcType=INTEGER}, #{unitWeight,jdbcType=VARCHAR}, 
209 210
       #{impurityTotal,jdbcType=VARCHAR}, #{impurityInorganic,jdbcType=VARCHAR}, #{impurityOrganic,jdbcType=VARCHAR}, 
210 211
       #{impurityBranPowder,jdbcType=VARCHAR}, #{imperfectgrainsTotal,jdbcType=VARCHAR}, 
@@ -230,7 +231,8 @@
230 231
       #{coarseness,jdbcType=VARCHAR}, #{gluten,jdbcType=VARCHAR}, #{siltContent,jdbcType=VARCHAR}, 
231 232
       #{magneticMetal,jdbcType=VARCHAR}, #{inputOne,jdbcType=VARCHAR}, #{inputTwo,jdbcType=VARCHAR}, 
232 233
       #{inputThree,jdbcType=VARCHAR}, #{inputFour,jdbcType=VARCHAR},
233
-      #{sieveResidue,jdbcType=VARCHAR}, #{riceYield,jdbcType=VARCHAR}, #{imperfectgrainsScabQtbl,jdbcType=VARCHAR})
234
+      #{sieveResidue,jdbcType=VARCHAR}, #{riceYield,jdbcType=VARCHAR}, #{imperfectgrainsScabQtbl,jdbcType=VARCHAR}
235
+      , #{colorSmell,jdbcType=VARCHAR})
234 236
   </insert>
235 237
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
236 238
     insert into storage_qualitycheck_inspection
@@ -446,6 +448,9 @@
446 448
       <if test="imperfectgrainsScabQtbl != null">
447 449
         imperfectgrains_scab_qtbl,
448 450
       </if>
451
+       <if test="colorSmell != null">
452
+        color_smell,
453
+      </if>
449 454
     </trim>
450 455
     <trim prefix="values (" suffix=")" suffixOverrides="," >
451 456
       SEQ_STORAGE_QUALITYCHECK_INSPECTION.nextVal,
@@ -659,6 +664,9 @@
659 664
       <if test="imperfectgrainsScabQtbl != null">
660 665
         #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
661 666
       </if>
667
+      <if test="colorSmell != null">
668
+        #{colorSmell,jdbcType=VARCHAR},
669
+      </if>
662 670
     </trim>
663 671
   </insert>
664 672
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspectionExample" resultType="java.lang.Integer" >
@@ -883,6 +891,9 @@
883 891
       <if test="record.imperfectgrainsScabQtbl != null">
884 892
         imperfectgrains_scab_qtbl = #{record.imperfectgrainsScabQtbl,jdbcType=VARCHAR},
885 893
       </if>
894
+      <if test="record.colorSmell != null">
895
+        color_smell = #{record.colorSmell,jdbcType=VARCHAR},
896
+      </if>
886 897
     </set>
887 898
     <if test="_parameter != null" >
888 899
       <include refid="Update_By_Example_Where_Clause" />
@@ -960,7 +971,8 @@
960 971
       input_four = #{record.inputFour,jdbcType=VARCHAR},
961 972
       sieve_residue = #{record.sieveResidue,jdbcType=VARCHAR},
962 973
       rice_yield = #{record.riceYield,jdbcType=VARCHAR},
963
-      imperfectgrains_scab_qtbl = #{record.imperfectgrainsScabQtbl,jdbcType=VARCHAR}
974
+      imperfectgrains_scab_qtbl = #{record.imperfectgrainsScabQtbl,jdbcType=VARCHAR},
975
+      color_smell = #{record.colorSmell,jdbcType=VARCHAR}
964 976
     <if test="_parameter != null" >
965 977
       <include refid="Update_By_Example_Where_Clause" />
966 978
     </if>
@@ -1178,6 +1190,9 @@
1178 1190
       <if test="imperfectgrainsScabQtbl != null">
1179 1191
         imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1180 1192
       </if>
1193
+      <if test="colorSmell != null">
1194
+        color_smell = #{colorSmell,jdbcType=VARCHAR},
1195
+      </if>
1181 1196
     </set>
1182 1197
     where id = #{id,jdbcType=INTEGER}
1183 1198
   </update>
@@ -1252,7 +1267,8 @@
1252 1267
       input_four = #{inputFour,jdbcType=VARCHAR},
1253 1268
       sieve_residue = #{sieveResidue,jdbcType=VARCHAR},
1254 1269
       rice_yield = #{riceYield,jdbcType=VARCHAR},
1255
-      imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR}
1270
+      imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1271
+      color_smell = #{colorSmell,jdbcType=VARCHAR}
1256 1272
     where id = #{id,jdbcType=INTEGER}
1257 1273
   </update>
1258 1274
 

+ 13 - 1
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckInspection.java

@@ -1,7 +1,19 @@
1 1
 package com.chinaitop.depot.storage.model;
2 2
 
3 3
 public class StorageQualitycheckInspection {
4
-    private Integer id;
4
+	
5
+	private String colorSmell;//色泽、气味
6
+	
7
+	
8
+    public String getColorSmell() {
9
+		return colorSmell;
10
+	}
11
+
12
+	public void setColorSmell(String colorSmell) {
13
+		this.colorSmell = colorSmell;
14
+	}
15
+
16
+	private Integer id;
5 17
 
6 18
     private Integer qualitycheckId;
7 19