fanxw vor 1 Jahr
Ursprung
Commit
0e1867694a

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckController.java

@@ -154,7 +154,7 @@ public class StorageQualitycheckController {
154 154
         }else{
155 155
         	qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
156 156
         }
157
-       
157
+
158 158
         //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
159 159
         //qualityCheck.setSealStatus("0");
160 160
         if (pageNum!=null && pageSize!=null) {

+ 0 - 1
src/main/java/com/chinaitop/depot/storage/controller/StorageWarterCheckController.java

@@ -107,7 +107,6 @@ public class StorageWarterCheckController {
107 107
 		/* 查询水分检验相关数据  */
108 108
 		if (null == id || "".equals(id)) {
109 109
 			storageWaterCheck = new StorageWaterCheck();
110
-			storageWaterCheck.setHyDate(new Date());
111 110
 			storageWarterFixedPoint_list = new ArrayList<StorageWarterFixedPoint>();
112 111
 			storageWarterMobilePoint_list = new ArrayList<StorageWarterMobilePoint>();
113 112
 			StorageWarterFixedPoint fixedPoint = new StorageWarterFixedPoint();

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

@@ -74,6 +74,7 @@
74 74
     <result column="rice_yield" property="riceYield" jdbcType="VARCHAR" />
75 75
     <result column="imperfectgrains_scab_qtbl" property="imperfectgrainsScabQtbl" jdbcType="VARCHAR" />
76 76
     <result column="color_smell" property="colorSmell" jdbcType="VARCHAR" />
77
+    <result column="wgxt" property="wgxt" jdbcType="VARCHAR" />
77 78
   </resultMap>
78 79
   <sql id="Example_Where_Clause" >
79 80
     <where >
@@ -147,7 +148,7 @@
147 148
     avg_length, rice_grains, brokenRice_total, brokenRice_big, brokenRice_small, machiningAccuracy, 
148 149
     chalkiness, machiningAccuracy_essence, machiningAccuracy_suitable, amylose, ash_content, 
149 150
     coarseness, gluten, silt_content, magnetic_metal, input_one, input_two, input_three, 
150
-    input_four,sieve_residue,rice_yield,imperfectgrains_scab_qtbl,color_smell
151
+    input_four,sieve_residue,rice_yield,imperfectgrains_scab_qtbl,color_smell,wgxt
151 152
   </sql>
152 153
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspectionExample" >
153 154
     select
@@ -205,7 +206,7 @@
205 206
       coarseness, gluten, silt_content, 
206 207
       magnetic_metal, input_one, input_two, 
207 208
       input_three, input_four,
208
-      sieve_residue,rice_yield,imperfectgrains_scab_qtbl,color_smell)
209
+      sieve_residue,rice_yield,imperfectgrains_scab_qtbl,color_smell,wgxt)
209 210
     values (#{id,jdbcType=INTEGER}, #{qualitycheckId,jdbcType=INTEGER}, #{unitWeight,jdbcType=VARCHAR}, 
210 211
       #{impurityTotal,jdbcType=VARCHAR}, #{impurityInorganic,jdbcType=VARCHAR}, #{impurityOrganic,jdbcType=VARCHAR}, 
211 212
       #{impurityBranPowder,jdbcType=VARCHAR}, #{imperfectgrainsTotal,jdbcType=VARCHAR}, 
@@ -232,7 +233,7 @@
232 233
       #{magneticMetal,jdbcType=VARCHAR}, #{inputOne,jdbcType=VARCHAR}, #{inputTwo,jdbcType=VARCHAR}, 
233 234
       #{inputThree,jdbcType=VARCHAR}, #{inputFour,jdbcType=VARCHAR},
234 235
       #{sieveResidue,jdbcType=VARCHAR}, #{riceYield,jdbcType=VARCHAR}, #{imperfectgrainsScabQtbl,jdbcType=VARCHAR}
235
-      , #{colorSmell,jdbcType=VARCHAR})
236
+      , #{colorSmell,jdbcType=VARCHAR}, #{wgxt,jdbcType=VARCHAR})
236 237
   </insert>
237 238
   <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
238 239
     insert into storage_qualitycheck_inspection
@@ -451,6 +452,9 @@
451 452
        <if test="colorSmell != null">
452 453
         color_smell,
453 454
       </if>
455
+      <if test="wgxt != null">
456
+        wgxt,
457
+      </if>
454 458
     </trim>
455 459
     <trim prefix="values (" suffix=")" suffixOverrides="," >
456 460
       SEQ_STORAGE_QUALITYCHECK_INSPECTION.nextVal,
@@ -667,6 +671,9 @@
667 671
       <if test="colorSmell != null">
668 672
         #{colorSmell,jdbcType=VARCHAR},
669 673
       </if>
674
+      <if test="wgxt != null">
675
+        #{wgxt,jdbcType=VARCHAR},
676
+      </if>
670 677
     </trim>
671 678
   </insert>
672 679
   <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspectionExample" resultType="java.lang.Integer" >
@@ -894,6 +901,9 @@
894 901
       <if test="record.colorSmell != null">
895 902
         color_smell = #{record.colorSmell,jdbcType=VARCHAR},
896 903
       </if>
904
+      <if test="record.wgxt != null">
905
+        wgxt = #{record.wgxt,jdbcType=VARCHAR},
906
+      </if>
897 907
     </set>
898 908
     <if test="_parameter != null" >
899 909
       <include refid="Update_By_Example_Where_Clause" />
@@ -972,7 +982,8 @@
972 982
       sieve_residue = #{record.sieveResidue,jdbcType=VARCHAR},
973 983
       rice_yield = #{record.riceYield,jdbcType=VARCHAR},
974 984
       imperfectgrains_scab_qtbl = #{record.imperfectgrainsScabQtbl,jdbcType=VARCHAR},
975
-      color_smell = #{record.colorSmell,jdbcType=VARCHAR}
985
+      color_smell = #{record.colorSmell,jdbcType=VARCHAR},
986
+      wgxt = #{record.wgxt,jdbcType=VARCHAR}
976 987
     <if test="_parameter != null" >
977 988
       <include refid="Update_By_Example_Where_Clause" />
978 989
     </if>
@@ -1193,6 +1204,9 @@
1193 1204
       <if test="colorSmell != null">
1194 1205
         color_smell = #{colorSmell,jdbcType=VARCHAR},
1195 1206
       </if>
1207
+      <if test="wgxt != null">
1208
+        wgxt = #{wgxt,jdbcType=VARCHAR},
1209
+      </if>
1196 1210
     </set>
1197 1211
     where id = #{id,jdbcType=INTEGER}
1198 1212
   </update>
@@ -1268,7 +1282,8 @@
1268 1282
       sieve_residue = #{sieveResidue,jdbcType=VARCHAR},
1269 1283
       rice_yield = #{riceYield,jdbcType=VARCHAR},
1270 1284
       imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1271
-      color_smell = #{colorSmell,jdbcType=VARCHAR}
1285
+      color_smell = #{colorSmell,jdbcType=VARCHAR},
1286
+      wgxt = #{wgxt,jdbcType=VARCHAR}
1272 1287
     where id = #{id,jdbcType=INTEGER}
1273 1288
   </update>
1274 1289
 

+ 2 - 1
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml

@@ -2171,7 +2171,8 @@
2171 2171
       sqi.coarseness,
2172 2172
       sqi.gluten,
2173 2173
       sqi.silt_content,
2174
-      sqi.magnetic_metal
2174
+      sqi.magnetic_metal,
2175
+      sqi.wgxt
2175 2176
   FROM
2176 2177
       storage_qualitycheck sqk
2177 2178
       LEFT JOIN basic_storehouse bs ON bs.storehouse_id = sqk.house_id

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

@@ -155,6 +155,7 @@ public class StorageQualitycheckInspection {
155 155
     
156 156
     private String imperfectgrainsScabQtbl; //其它病粒%2021-08-19
157 157
 
158
+    private String wgxt;//外观形态
158 159
 
159 160
     public String getSieveResidue() {
160 161
         return sieveResidue;
@@ -1273,4 +1274,20 @@ public class StorageQualitycheckInspection {
1273 1274
 	public void setImperfectgrainsScabQtbl(String imperfectgrainsScabQtbl) {
1274 1275
 		this.imperfectgrainsScabQtbl = imperfectgrainsScabQtbl;
1275 1276
 	}
1277
+
1278
+	/**
1279
+	 * 外观形态
1280
+	 * @return
1281
+	 */
1282
+	public String getWgxt() {
1283
+		return wgxt;
1284
+	}
1285
+
1286
+	/**
1287
+	 * 外观形态
1288
+	 * @param wgxt
1289
+	 */
1290
+	public void setWgxt(String wgxt) {
1291
+		this.wgxt = wgxt;
1292
+	}
1276 1293
 }

+ 3 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageWaterCheck.java

@@ -17,14 +17,17 @@ public class StorageWaterCheck {
17 17
 
18 18
     private Integer lspz;
19 19
 
20
+    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
20 21
     private Date hyDate;
21 22
 
22 23
     private String hyPerson;
23 24
 
24 25
     private String remark;
25 26
 
27
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
26 28
     private Date inputTime;
27 29
 
30
+    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
28 31
     private Date editTime;
29 32
 
30 33
     private String dataStatus;