admin пре 4 година
родитељ
комит
aad0acdac6

+ 51 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitystandardPreparationController.java

@@ -0,0 +1,51 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.util.List;
4
+
5
+import javax.servlet.http.HttpServletRequest;
6
+
7
+import org.springframework.beans.factory.annotation.Autowired;
8
+import org.springframework.http.MediaType;
9
+import org.springframework.web.bind.annotation.RequestMapping;
10
+import org.springframework.web.bind.annotation.RequestMethod;
11
+import org.springframework.web.bind.annotation.RestController;
12
+
13
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparation;
14
+import com.chinaitop.depot.storage.service.StorageQualitystandardPreparationService;
15
+import com.github.pagehelper.PageHelper;
16
+import com.github.pagehelper.PageInfo;
17
+
18
+import io.swagger.annotations.Api;
19
+import io.swagger.annotations.ApiImplicitParam;
20
+import io.swagger.annotations.ApiImplicitParams;
21
+import io.swagger.annotations.ApiOperation;
22
+
23
+@RestController
24
+@RequestMapping(value="StorageQualitystandardPreparationController")
25
+@Api(value= "StorageQualitystandardPreparationController", description = "质量标准配置控制类")
26
+public class StorageQualitystandardPreparationController {
27
+
28
+	@Autowired
29
+	private StorageQualitystandardPreparationService storageQualitystandardPreparationService;
30
+
31
+	@RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
32
+    @ApiOperation(value="质量标准配置数据列表", notes = "支持分页")
33
+    @ApiImplicitParams({
34
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
35
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
36
+            @ApiImplicitParam(name = "lspz", value = "粮食品种ID", paramType = "query")
37
+    })
38
+	public PageInfo<StorageQualitystandardPreparation> getList(HttpServletRequest request, Integer pageNum, Integer pageSize, Integer lspz) {
39
+		PageInfo<StorageQualitystandardPreparation> pageInfo = null;
40
+		try {
41
+			if (null != pageNum && null != pageSize) {
42
+				PageHelper.startPage(pageNum, pageSize);
43
+			}
44
+			List<StorageQualitystandardPreparation> list = storageQualitystandardPreparationService.getList(request, lspz);
45
+			pageInfo = new PageInfo<StorageQualitystandardPreparation>(list);
46
+		} catch (Exception e) {
47
+			e.printStackTrace();
48
+		}
49
+		return pageInfo;
50
+	}
51
+}

+ 30 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardPreparationMapper.java

@@ -0,0 +1,30 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparation;
4
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparationExample;
5
+import java.util.List;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+public interface StorageQualitystandardPreparationMapper {
9
+    int countByExample(StorageQualitystandardPreparationExample example);
10
+
11
+    int deleteByExample(StorageQualitystandardPreparationExample example);
12
+
13
+    int deleteByPrimaryKey(String id);
14
+
15
+    int insert(StorageQualitystandardPreparation record);
16
+
17
+    int insertSelective(StorageQualitystandardPreparation record);
18
+
19
+    List<StorageQualitystandardPreparation> selectByExample(StorageQualitystandardPreparationExample example);
20
+
21
+    StorageQualitystandardPreparation selectByPrimaryKey(String id);
22
+
23
+    int updateByExampleSelective(@Param("record") StorageQualitystandardPreparation record, @Param("example") StorageQualitystandardPreparationExample example);
24
+
25
+    int updateByExample(@Param("record") StorageQualitystandardPreparation record, @Param("example") StorageQualitystandardPreparationExample example);
26
+
27
+    int updateByPrimaryKeySelective(StorageQualitystandardPreparation record);
28
+
29
+    int updateByPrimaryKey(StorageQualitystandardPreparation record);
30
+}

+ 815 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardPreparationMapper.xml

@@ -0,0 +1,815 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.chinaitop.depot.storage.mapper.StorageQualitystandardPreparationMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageQualitystandardPreparation" >
5
+    <id column="id" property="id" jdbcType="VARCHAR" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
+    <result column="open_not" property="openNot" jdbcType="INTEGER" />
8
+    <result column="creater" property="creater" jdbcType="VARCHAR" />
9
+    <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
10
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
11
+    <result column="sub_type" property="subType" jdbcType="INTEGER" />
12
+    <result column="sub_type_detailed" property="subTypeDetailed" jdbcType="INTEGER" />
13
+    <result column="standard_name" property="standardName" jdbcType="VARCHAR" />
14
+    <result column="level_update" property="levelUpdate" jdbcType="VARCHAR" />
15
+    <result column="capacity" property="capacity" jdbcType="VARCHAR" />
16
+    <result column="badpart" property="badpart" jdbcType="VARCHAR" />
17
+    <result column="impurity_total" property="impurityTotal" jdbcType="VARCHAR" />
18
+    <result column="mineral" property="mineral" jdbcType="VARCHAR" />
19
+    <result column="water" property="water" jdbcType="VARCHAR" />
20
+    <result column="colorsmell" property="colorsmell" jdbcType="VARCHAR" />
21
+    <result column="mildew_count" property="mildewCount" jdbcType="VARCHAR" />
22
+    <result column="goodpart" property="goodpart" jdbcType="VARCHAR" />
23
+    <result column="damage_ratio" property="damageRatio" jdbcType="VARCHAR" />
24
+    <result column="hot_damage_ratio" property="hotDamageRatio" jdbcType="VARCHAR" />
25
+    <result column="husked_ration" property="huskedRation" jdbcType="VARCHAR" />
26
+    <result column="full_good_ration" property="fullGoodRation" jdbcType="VARCHAR" />
27
+    <result column="yellow_part" property="yellowPart" jdbcType="VARCHAR" />
28
+    <result column="out_husked_ration" property="outHuskedRation" jdbcType="VARCHAR" />
29
+    <result column="intermixing_rate" property="intermixingRate" jdbcType="VARCHAR" />
30
+    <result column="brokenrice_total" property="brokenriceTotal" jdbcType="VARCHAR" />
31
+    <result column="brokenrice_small" property="brokenriceSmall" jdbcType="VARCHAR" />
32
+    <result column="machiningaccuracy" property="machiningaccuracy" jdbcType="VARCHAR" />
33
+    <result column="machiningaccuracy_essence" property="machiningaccuracyEssence" jdbcType="VARCHAR" />
34
+    <result column="machiningaccuracy_suitable" property="machiningaccuracySuitable" jdbcType="VARCHAR" />
35
+    <result column="impurity_inorganic" property="impurityInorganic" jdbcType="VARCHAR" />
36
+    <result column="ash_content" property="ashContent" jdbcType="VARCHAR" />
37
+    <result column="gluten" property="gluten" jdbcType="VARCHAR" />
38
+    <result column="silt_content" property="siltContent" jdbcType="VARCHAR" />
39
+    <result column="magnetic_metal" property="magneticMetal" jdbcType="VARCHAR" />
40
+    <result column="fat_index" property="fatIndex" jdbcType="VARCHAR" />
41
+    <result column="smelltaste" property="smelltaste" jdbcType="VARCHAR" />
42
+    <result column="acid_value" property="acidValue" jdbcType="VARCHAR" />
43
+    <result column="residual_solvent" property="residualSolvent" jdbcType="VARCHAR" />
44
+    <result column="water_volatiles" property="waterVolatiles" jdbcType="VARCHAR" />
45
+    <result column="insoluble_impurity" property="insolubleImpurity" jdbcType="VARCHAR" />
46
+    <result column="soap_content" property="soapContent" jdbcType="VARCHAR" />
47
+    <result column="smoke_point" property="smokePoint" jdbcType="VARCHAR" />
48
+  </resultMap>
49
+  <sql id="Example_Where_Clause" >
50
+    <where >
51
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
52
+        <if test="criteria.valid" >
53
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
54
+            <foreach collection="criteria.criteria" item="criterion" >
55
+              <choose >
56
+                <when test="criterion.noValue" >
57
+                  and ${criterion.condition}
58
+                </when>
59
+                <when test="criterion.singleValue" >
60
+                  and ${criterion.condition} #{criterion.value}
61
+                </when>
62
+                <when test="criterion.betweenValue" >
63
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
64
+                </when>
65
+                <when test="criterion.listValue" >
66
+                  and ${criterion.condition}
67
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
68
+                    #{listItem}
69
+                  </foreach>
70
+                </when>
71
+              </choose>
72
+            </foreach>
73
+          </trim>
74
+        </if>
75
+      </foreach>
76
+    </where>
77
+  </sql>
78
+  <sql id="Update_By_Example_Where_Clause" >
79
+    <where >
80
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
81
+        <if test="criteria.valid" >
82
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
83
+            <foreach collection="criteria.criteria" item="criterion" >
84
+              <choose >
85
+                <when test="criterion.noValue" >
86
+                  and ${criterion.condition}
87
+                </when>
88
+                <when test="criterion.singleValue" >
89
+                  and ${criterion.condition} #{criterion.value}
90
+                </when>
91
+                <when test="criterion.betweenValue" >
92
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
93
+                </when>
94
+                <when test="criterion.listValue" >
95
+                  and ${criterion.condition}
96
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
97
+                    #{listItem}
98
+                  </foreach>
99
+                </when>
100
+              </choose>
101
+            </foreach>
102
+          </trim>
103
+        </if>
104
+      </foreach>
105
+    </where>
106
+  </sql>
107
+  <sql id="Base_Column_List" >
108
+    id, org_id, open_not, creater, createtime, updatetime, sub_type, sub_type_detailed, 
109
+    standard_name, level_update, capacity, badpart, impurity_total, mineral, water, colorsmell, 
110
+    mildew_count, goodpart, damage_ratio, hot_damage_ratio, husked_ration, full_good_ration, 
111
+    yellow_part, out_husked_ration, intermixing_rate, brokenrice_total, brokenrice_small, 
112
+    machiningaccuracy, machiningaccuracy_essence, machiningaccuracy_suitable, impurity_inorganic, 
113
+    ash_content, gluten, silt_content, magnetic_metal, fat_index, smelltaste, acid_value, 
114
+    residual_solvent, water_volatiles, insoluble_impurity, soap_content, smoke_point
115
+  </sql>
116
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparationExample" >
117
+    select
118
+    <if test="distinct" >
119
+      distinct
120
+    </if>
121
+    <include refid="Base_Column_List" />
122
+    from storage_qualitystandard_preparation
123
+    <if test="_parameter != null" >
124
+      <include refid="Example_Where_Clause" />
125
+    </if>
126
+    <if test="orderByClause != null" >
127
+      order by ${orderByClause}
128
+    </if>
129
+  </select>
130
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
131
+    select 
132
+    <include refid="Base_Column_List" />
133
+    from storage_qualitystandard_preparation
134
+    where id = #{id,jdbcType=VARCHAR}
135
+  </select>
136
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
137
+    delete from storage_qualitystandard_preparation
138
+    where id = #{id,jdbcType=VARCHAR}
139
+  </delete>
140
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparationExample" >
141
+    delete from storage_qualitystandard_preparation
142
+    <if test="_parameter != null" >
143
+      <include refid="Example_Where_Clause" />
144
+    </if>
145
+  </delete>
146
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparation" >
147
+    insert into storage_qualitystandard_preparation (id, org_id, open_not, 
148
+      creater, createtime, updatetime, 
149
+      sub_type, sub_type_detailed, standard_name, 
150
+      level_update, capacity, badpart, 
151
+      impurity_total, mineral, water, 
152
+      colorsmell, mildew_count, goodpart, 
153
+      damage_ratio, hot_damage_ratio, husked_ration, 
154
+      full_good_ration, yellow_part, out_husked_ration, 
155
+      intermixing_rate, brokenrice_total, brokenrice_small, 
156
+      machiningaccuracy, machiningaccuracy_essence, 
157
+      machiningaccuracy_suitable, impurity_inorganic, 
158
+      ash_content, gluten, silt_content, 
159
+      magnetic_metal, fat_index, smelltaste, 
160
+      acid_value, residual_solvent, water_volatiles, 
161
+      insoluble_impurity, soap_content, smoke_point
162
+      )
163
+    values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{openNot,jdbcType=INTEGER}, 
164
+      #{creater,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, 
165
+      #{subType,jdbcType=INTEGER}, #{subTypeDetailed,jdbcType=INTEGER}, #{standardName,jdbcType=VARCHAR}, 
166
+      #{levelUpdate,jdbcType=VARCHAR}, #{capacity,jdbcType=VARCHAR}, #{badpart,jdbcType=VARCHAR}, 
167
+      #{impurityTotal,jdbcType=VARCHAR}, #{mineral,jdbcType=VARCHAR}, #{water,jdbcType=VARCHAR}, 
168
+      #{colorsmell,jdbcType=VARCHAR}, #{mildewCount,jdbcType=VARCHAR}, #{goodpart,jdbcType=VARCHAR}, 
169
+      #{damageRatio,jdbcType=VARCHAR}, #{hotDamageRatio,jdbcType=VARCHAR}, #{huskedRation,jdbcType=VARCHAR}, 
170
+      #{fullGoodRation,jdbcType=VARCHAR}, #{yellowPart,jdbcType=VARCHAR}, #{outHuskedRation,jdbcType=VARCHAR}, 
171
+      #{intermixingRate,jdbcType=VARCHAR}, #{brokenriceTotal,jdbcType=VARCHAR}, #{brokenriceSmall,jdbcType=VARCHAR}, 
172
+      #{machiningaccuracy,jdbcType=VARCHAR}, #{machiningaccuracyEssence,jdbcType=VARCHAR}, 
173
+      #{machiningaccuracySuitable,jdbcType=VARCHAR}, #{impurityInorganic,jdbcType=VARCHAR}, 
174
+      #{ashContent,jdbcType=VARCHAR}, #{gluten,jdbcType=VARCHAR}, #{siltContent,jdbcType=VARCHAR}, 
175
+      #{magneticMetal,jdbcType=VARCHAR}, #{fatIndex,jdbcType=VARCHAR}, #{smelltaste,jdbcType=VARCHAR}, 
176
+      #{acidValue,jdbcType=VARCHAR}, #{residualSolvent,jdbcType=VARCHAR}, #{waterVolatiles,jdbcType=VARCHAR}, 
177
+      #{insolubleImpurity,jdbcType=VARCHAR}, #{soapContent,jdbcType=VARCHAR}, #{smokePoint,jdbcType=VARCHAR}
178
+      )
179
+  </insert>
180
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparation" >
181
+    insert into storage_qualitystandard_preparation
182
+    <trim prefix="(" suffix=")" suffixOverrides="," >
183
+      <if test="id != null" >
184
+        id,
185
+      </if>
186
+      <if test="orgId != null" >
187
+        org_id,
188
+      </if>
189
+      <if test="openNot != null" >
190
+        open_not,
191
+      </if>
192
+      <if test="creater != null" >
193
+        creater,
194
+      </if>
195
+      <if test="createtime != null" >
196
+        createtime,
197
+      </if>
198
+      <if test="updatetime != null" >
199
+        updatetime,
200
+      </if>
201
+      <if test="subType != null" >
202
+        sub_type,
203
+      </if>
204
+      <if test="subTypeDetailed != null" >
205
+        sub_type_detailed,
206
+      </if>
207
+      <if test="standardName != null" >
208
+        standard_name,
209
+      </if>
210
+      <if test="levelUpdate != null" >
211
+        level_update,
212
+      </if>
213
+      <if test="capacity != null" >
214
+        capacity,
215
+      </if>
216
+      <if test="badpart != null" >
217
+        badpart,
218
+      </if>
219
+      <if test="impurityTotal != null" >
220
+        impurity_total,
221
+      </if>
222
+      <if test="mineral != null" >
223
+        mineral,
224
+      </if>
225
+      <if test="water != null" >
226
+        water,
227
+      </if>
228
+      <if test="colorsmell != null" >
229
+        colorsmell,
230
+      </if>
231
+      <if test="mildewCount != null" >
232
+        mildew_count,
233
+      </if>
234
+      <if test="goodpart != null" >
235
+        goodpart,
236
+      </if>
237
+      <if test="damageRatio != null" >
238
+        damage_ratio,
239
+      </if>
240
+      <if test="hotDamageRatio != null" >
241
+        hot_damage_ratio,
242
+      </if>
243
+      <if test="huskedRation != null" >
244
+        husked_ration,
245
+      </if>
246
+      <if test="fullGoodRation != null" >
247
+        full_good_ration,
248
+      </if>
249
+      <if test="yellowPart != null" >
250
+        yellow_part,
251
+      </if>
252
+      <if test="outHuskedRation != null" >
253
+        out_husked_ration,
254
+      </if>
255
+      <if test="intermixingRate != null" >
256
+        intermixing_rate,
257
+      </if>
258
+      <if test="brokenriceTotal != null" >
259
+        brokenrice_total,
260
+      </if>
261
+      <if test="brokenriceSmall != null" >
262
+        brokenrice_small,
263
+      </if>
264
+      <if test="machiningaccuracy != null" >
265
+        machiningaccuracy,
266
+      </if>
267
+      <if test="machiningaccuracyEssence != null" >
268
+        machiningaccuracy_essence,
269
+      </if>
270
+      <if test="machiningaccuracySuitable != null" >
271
+        machiningaccuracy_suitable,
272
+      </if>
273
+      <if test="impurityInorganic != null" >
274
+        impurity_inorganic,
275
+      </if>
276
+      <if test="ashContent != null" >
277
+        ash_content,
278
+      </if>
279
+      <if test="gluten != null" >
280
+        gluten,
281
+      </if>
282
+      <if test="siltContent != null" >
283
+        silt_content,
284
+      </if>
285
+      <if test="magneticMetal != null" >
286
+        magnetic_metal,
287
+      </if>
288
+      <if test="fatIndex != null" >
289
+        fat_index,
290
+      </if>
291
+      <if test="smelltaste != null" >
292
+        smelltaste,
293
+      </if>
294
+      <if test="acidValue != null" >
295
+        acid_value,
296
+      </if>
297
+      <if test="residualSolvent != null" >
298
+        residual_solvent,
299
+      </if>
300
+      <if test="waterVolatiles != null" >
301
+        water_volatiles,
302
+      </if>
303
+      <if test="insolubleImpurity != null" >
304
+        insoluble_impurity,
305
+      </if>
306
+      <if test="soapContent != null" >
307
+        soap_content,
308
+      </if>
309
+      <if test="smokePoint != null" >
310
+        smoke_point,
311
+      </if>
312
+    </trim>
313
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
314
+      <if test="id != null" >
315
+        #{id,jdbcType=VARCHAR},
316
+      </if>
317
+      <if test="orgId != null" >
318
+        #{orgId,jdbcType=INTEGER},
319
+      </if>
320
+      <if test="openNot != null" >
321
+        #{openNot,jdbcType=INTEGER},
322
+      </if>
323
+      <if test="creater != null" >
324
+        #{creater,jdbcType=VARCHAR},
325
+      </if>
326
+      <if test="createtime != null" >
327
+        #{createtime,jdbcType=TIMESTAMP},
328
+      </if>
329
+      <if test="updatetime != null" >
330
+        #{updatetime,jdbcType=TIMESTAMP},
331
+      </if>
332
+      <if test="subType != null" >
333
+        #{subType,jdbcType=INTEGER},
334
+      </if>
335
+      <if test="subTypeDetailed != null" >
336
+        #{subTypeDetailed,jdbcType=INTEGER},
337
+      </if>
338
+      <if test="standardName != null" >
339
+        #{standardName,jdbcType=VARCHAR},
340
+      </if>
341
+      <if test="levelUpdate != null" >
342
+        #{levelUpdate,jdbcType=VARCHAR},
343
+      </if>
344
+      <if test="capacity != null" >
345
+        #{capacity,jdbcType=VARCHAR},
346
+      </if>
347
+      <if test="badpart != null" >
348
+        #{badpart,jdbcType=VARCHAR},
349
+      </if>
350
+      <if test="impurityTotal != null" >
351
+        #{impurityTotal,jdbcType=VARCHAR},
352
+      </if>
353
+      <if test="mineral != null" >
354
+        #{mineral,jdbcType=VARCHAR},
355
+      </if>
356
+      <if test="water != null" >
357
+        #{water,jdbcType=VARCHAR},
358
+      </if>
359
+      <if test="colorsmell != null" >
360
+        #{colorsmell,jdbcType=VARCHAR},
361
+      </if>
362
+      <if test="mildewCount != null" >
363
+        #{mildewCount,jdbcType=VARCHAR},
364
+      </if>
365
+      <if test="goodpart != null" >
366
+        #{goodpart,jdbcType=VARCHAR},
367
+      </if>
368
+      <if test="damageRatio != null" >
369
+        #{damageRatio,jdbcType=VARCHAR},
370
+      </if>
371
+      <if test="hotDamageRatio != null" >
372
+        #{hotDamageRatio,jdbcType=VARCHAR},
373
+      </if>
374
+      <if test="huskedRation != null" >
375
+        #{huskedRation,jdbcType=VARCHAR},
376
+      </if>
377
+      <if test="fullGoodRation != null" >
378
+        #{fullGoodRation,jdbcType=VARCHAR},
379
+      </if>
380
+      <if test="yellowPart != null" >
381
+        #{yellowPart,jdbcType=VARCHAR},
382
+      </if>
383
+      <if test="outHuskedRation != null" >
384
+        #{outHuskedRation,jdbcType=VARCHAR},
385
+      </if>
386
+      <if test="intermixingRate != null" >
387
+        #{intermixingRate,jdbcType=VARCHAR},
388
+      </if>
389
+      <if test="brokenriceTotal != null" >
390
+        #{brokenriceTotal,jdbcType=VARCHAR},
391
+      </if>
392
+      <if test="brokenriceSmall != null" >
393
+        #{brokenriceSmall,jdbcType=VARCHAR},
394
+      </if>
395
+      <if test="machiningaccuracy != null" >
396
+        #{machiningaccuracy,jdbcType=VARCHAR},
397
+      </if>
398
+      <if test="machiningaccuracyEssence != null" >
399
+        #{machiningaccuracyEssence,jdbcType=VARCHAR},
400
+      </if>
401
+      <if test="machiningaccuracySuitable != null" >
402
+        #{machiningaccuracySuitable,jdbcType=VARCHAR},
403
+      </if>
404
+      <if test="impurityInorganic != null" >
405
+        #{impurityInorganic,jdbcType=VARCHAR},
406
+      </if>
407
+      <if test="ashContent != null" >
408
+        #{ashContent,jdbcType=VARCHAR},
409
+      </if>
410
+      <if test="gluten != null" >
411
+        #{gluten,jdbcType=VARCHAR},
412
+      </if>
413
+      <if test="siltContent != null" >
414
+        #{siltContent,jdbcType=VARCHAR},
415
+      </if>
416
+      <if test="magneticMetal != null" >
417
+        #{magneticMetal,jdbcType=VARCHAR},
418
+      </if>
419
+      <if test="fatIndex != null" >
420
+        #{fatIndex,jdbcType=VARCHAR},
421
+      </if>
422
+      <if test="smelltaste != null" >
423
+        #{smelltaste,jdbcType=VARCHAR},
424
+      </if>
425
+      <if test="acidValue != null" >
426
+        #{acidValue,jdbcType=VARCHAR},
427
+      </if>
428
+      <if test="residualSolvent != null" >
429
+        #{residualSolvent,jdbcType=VARCHAR},
430
+      </if>
431
+      <if test="waterVolatiles != null" >
432
+        #{waterVolatiles,jdbcType=VARCHAR},
433
+      </if>
434
+      <if test="insolubleImpurity != null" >
435
+        #{insolubleImpurity,jdbcType=VARCHAR},
436
+      </if>
437
+      <if test="soapContent != null" >
438
+        #{soapContent,jdbcType=VARCHAR},
439
+      </if>
440
+      <if test="smokePoint != null" >
441
+        #{smokePoint,jdbcType=VARCHAR},
442
+      </if>
443
+    </trim>
444
+  </insert>
445
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparationExample" resultType="java.lang.Integer" >
446
+    select count(*) from storage_qualitystandard_preparation
447
+    <if test="_parameter != null" >
448
+      <include refid="Example_Where_Clause" />
449
+    </if>
450
+  </select>
451
+  <update id="updateByExampleSelective" parameterType="map" >
452
+    update storage_qualitystandard_preparation
453
+    <set >
454
+      <if test="record.id != null" >
455
+        id = #{record.id,jdbcType=VARCHAR},
456
+      </if>
457
+      <if test="record.orgId != null" >
458
+        org_id = #{record.orgId,jdbcType=INTEGER},
459
+      </if>
460
+      <if test="record.openNot != null" >
461
+        open_not = #{record.openNot,jdbcType=INTEGER},
462
+      </if>
463
+      <if test="record.creater != null" >
464
+        creater = #{record.creater,jdbcType=VARCHAR},
465
+      </if>
466
+      <if test="record.createtime != null" >
467
+        createtime = #{record.createtime,jdbcType=TIMESTAMP},
468
+      </if>
469
+      <if test="record.updatetime != null" >
470
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
471
+      </if>
472
+      <if test="record.subType != null" >
473
+        sub_type = #{record.subType,jdbcType=INTEGER},
474
+      </if>
475
+      <if test="record.subTypeDetailed != null" >
476
+        sub_type_detailed = #{record.subTypeDetailed,jdbcType=INTEGER},
477
+      </if>
478
+      <if test="record.standardName != null" >
479
+        standard_name = #{record.standardName,jdbcType=VARCHAR},
480
+      </if>
481
+      <if test="record.levelUpdate != null" >
482
+        level_update = #{record.levelUpdate,jdbcType=VARCHAR},
483
+      </if>
484
+      <if test="record.capacity != null" >
485
+        capacity = #{record.capacity,jdbcType=VARCHAR},
486
+      </if>
487
+      <if test="record.badpart != null" >
488
+        badpart = #{record.badpart,jdbcType=VARCHAR},
489
+      </if>
490
+      <if test="record.impurityTotal != null" >
491
+        impurity_total = #{record.impurityTotal,jdbcType=VARCHAR},
492
+      </if>
493
+      <if test="record.mineral != null" >
494
+        mineral = #{record.mineral,jdbcType=VARCHAR},
495
+      </if>
496
+      <if test="record.water != null" >
497
+        water = #{record.water,jdbcType=VARCHAR},
498
+      </if>
499
+      <if test="record.colorsmell != null" >
500
+        colorsmell = #{record.colorsmell,jdbcType=VARCHAR},
501
+      </if>
502
+      <if test="record.mildewCount != null" >
503
+        mildew_count = #{record.mildewCount,jdbcType=VARCHAR},
504
+      </if>
505
+      <if test="record.goodpart != null" >
506
+        goodpart = #{record.goodpart,jdbcType=VARCHAR},
507
+      </if>
508
+      <if test="record.damageRatio != null" >
509
+        damage_ratio = #{record.damageRatio,jdbcType=VARCHAR},
510
+      </if>
511
+      <if test="record.hotDamageRatio != null" >
512
+        hot_damage_ratio = #{record.hotDamageRatio,jdbcType=VARCHAR},
513
+      </if>
514
+      <if test="record.huskedRation != null" >
515
+        husked_ration = #{record.huskedRation,jdbcType=VARCHAR},
516
+      </if>
517
+      <if test="record.fullGoodRation != null" >
518
+        full_good_ration = #{record.fullGoodRation,jdbcType=VARCHAR},
519
+      </if>
520
+      <if test="record.yellowPart != null" >
521
+        yellow_part = #{record.yellowPart,jdbcType=VARCHAR},
522
+      </if>
523
+      <if test="record.outHuskedRation != null" >
524
+        out_husked_ration = #{record.outHuskedRation,jdbcType=VARCHAR},
525
+      </if>
526
+      <if test="record.intermixingRate != null" >
527
+        intermixing_rate = #{record.intermixingRate,jdbcType=VARCHAR},
528
+      </if>
529
+      <if test="record.brokenriceTotal != null" >
530
+        brokenrice_total = #{record.brokenriceTotal,jdbcType=VARCHAR},
531
+      </if>
532
+      <if test="record.brokenriceSmall != null" >
533
+        brokenrice_small = #{record.brokenriceSmall,jdbcType=VARCHAR},
534
+      </if>
535
+      <if test="record.machiningaccuracy != null" >
536
+        machiningaccuracy = #{record.machiningaccuracy,jdbcType=VARCHAR},
537
+      </if>
538
+      <if test="record.machiningaccuracyEssence != null" >
539
+        machiningaccuracy_essence = #{record.machiningaccuracyEssence,jdbcType=VARCHAR},
540
+      </if>
541
+      <if test="record.machiningaccuracySuitable != null" >
542
+        machiningaccuracy_suitable = #{record.machiningaccuracySuitable,jdbcType=VARCHAR},
543
+      </if>
544
+      <if test="record.impurityInorganic != null" >
545
+        impurity_inorganic = #{record.impurityInorganic,jdbcType=VARCHAR},
546
+      </if>
547
+      <if test="record.ashContent != null" >
548
+        ash_content = #{record.ashContent,jdbcType=VARCHAR},
549
+      </if>
550
+      <if test="record.gluten != null" >
551
+        gluten = #{record.gluten,jdbcType=VARCHAR},
552
+      </if>
553
+      <if test="record.siltContent != null" >
554
+        silt_content = #{record.siltContent,jdbcType=VARCHAR},
555
+      </if>
556
+      <if test="record.magneticMetal != null" >
557
+        magnetic_metal = #{record.magneticMetal,jdbcType=VARCHAR},
558
+      </if>
559
+      <if test="record.fatIndex != null" >
560
+        fat_index = #{record.fatIndex,jdbcType=VARCHAR},
561
+      </if>
562
+      <if test="record.smelltaste != null" >
563
+        smelltaste = #{record.smelltaste,jdbcType=VARCHAR},
564
+      </if>
565
+      <if test="record.acidValue != null" >
566
+        acid_value = #{record.acidValue,jdbcType=VARCHAR},
567
+      </if>
568
+      <if test="record.residualSolvent != null" >
569
+        residual_solvent = #{record.residualSolvent,jdbcType=VARCHAR},
570
+      </if>
571
+      <if test="record.waterVolatiles != null" >
572
+        water_volatiles = #{record.waterVolatiles,jdbcType=VARCHAR},
573
+      </if>
574
+      <if test="record.insolubleImpurity != null" >
575
+        insoluble_impurity = #{record.insolubleImpurity,jdbcType=VARCHAR},
576
+      </if>
577
+      <if test="record.soapContent != null" >
578
+        soap_content = #{record.soapContent,jdbcType=VARCHAR},
579
+      </if>
580
+      <if test="record.smokePoint != null" >
581
+        smoke_point = #{record.smokePoint,jdbcType=VARCHAR},
582
+      </if>
583
+    </set>
584
+    <if test="_parameter != null" >
585
+      <include refid="Update_By_Example_Where_Clause" />
586
+    </if>
587
+  </update>
588
+  <update id="updateByExample" parameterType="map" >
589
+    update storage_qualitystandard_preparation
590
+    set id = #{record.id,jdbcType=VARCHAR},
591
+      org_id = #{record.orgId,jdbcType=INTEGER},
592
+      open_not = #{record.openNot,jdbcType=INTEGER},
593
+      creater = #{record.creater,jdbcType=VARCHAR},
594
+      createtime = #{record.createtime,jdbcType=TIMESTAMP},
595
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
596
+      sub_type = #{record.subType,jdbcType=INTEGER},
597
+      sub_type_detailed = #{record.subTypeDetailed,jdbcType=INTEGER},
598
+      standard_name = #{record.standardName,jdbcType=VARCHAR},
599
+      level_update = #{record.levelUpdate,jdbcType=VARCHAR},
600
+      capacity = #{record.capacity,jdbcType=VARCHAR},
601
+      badpart = #{record.badpart,jdbcType=VARCHAR},
602
+      impurity_total = #{record.impurityTotal,jdbcType=VARCHAR},
603
+      mineral = #{record.mineral,jdbcType=VARCHAR},
604
+      water = #{record.water,jdbcType=VARCHAR},
605
+      colorsmell = #{record.colorsmell,jdbcType=VARCHAR},
606
+      mildew_count = #{record.mildewCount,jdbcType=VARCHAR},
607
+      goodpart = #{record.goodpart,jdbcType=VARCHAR},
608
+      damage_ratio = #{record.damageRatio,jdbcType=VARCHAR},
609
+      hot_damage_ratio = #{record.hotDamageRatio,jdbcType=VARCHAR},
610
+      husked_ration = #{record.huskedRation,jdbcType=VARCHAR},
611
+      full_good_ration = #{record.fullGoodRation,jdbcType=VARCHAR},
612
+      yellow_part = #{record.yellowPart,jdbcType=VARCHAR},
613
+      out_husked_ration = #{record.outHuskedRation,jdbcType=VARCHAR},
614
+      intermixing_rate = #{record.intermixingRate,jdbcType=VARCHAR},
615
+      brokenrice_total = #{record.brokenriceTotal,jdbcType=VARCHAR},
616
+      brokenrice_small = #{record.brokenriceSmall,jdbcType=VARCHAR},
617
+      machiningaccuracy = #{record.machiningaccuracy,jdbcType=VARCHAR},
618
+      machiningaccuracy_essence = #{record.machiningaccuracyEssence,jdbcType=VARCHAR},
619
+      machiningaccuracy_suitable = #{record.machiningaccuracySuitable,jdbcType=VARCHAR},
620
+      impurity_inorganic = #{record.impurityInorganic,jdbcType=VARCHAR},
621
+      ash_content = #{record.ashContent,jdbcType=VARCHAR},
622
+      gluten = #{record.gluten,jdbcType=VARCHAR},
623
+      silt_content = #{record.siltContent,jdbcType=VARCHAR},
624
+      magnetic_metal = #{record.magneticMetal,jdbcType=VARCHAR},
625
+      fat_index = #{record.fatIndex,jdbcType=VARCHAR},
626
+      smelltaste = #{record.smelltaste,jdbcType=VARCHAR},
627
+      acid_value = #{record.acidValue,jdbcType=VARCHAR},
628
+      residual_solvent = #{record.residualSolvent,jdbcType=VARCHAR},
629
+      water_volatiles = #{record.waterVolatiles,jdbcType=VARCHAR},
630
+      insoluble_impurity = #{record.insolubleImpurity,jdbcType=VARCHAR},
631
+      soap_content = #{record.soapContent,jdbcType=VARCHAR},
632
+      smoke_point = #{record.smokePoint,jdbcType=VARCHAR}
633
+    <if test="_parameter != null" >
634
+      <include refid="Update_By_Example_Where_Clause" />
635
+    </if>
636
+  </update>
637
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparation" >
638
+    update storage_qualitystandard_preparation
639
+    <set >
640
+      <if test="orgId != null" >
641
+        org_id = #{orgId,jdbcType=INTEGER},
642
+      </if>
643
+      <if test="openNot != null" >
644
+        open_not = #{openNot,jdbcType=INTEGER},
645
+      </if>
646
+      <if test="creater != null" >
647
+        creater = #{creater,jdbcType=VARCHAR},
648
+      </if>
649
+      <if test="createtime != null" >
650
+        createtime = #{createtime,jdbcType=TIMESTAMP},
651
+      </if>
652
+      <if test="updatetime != null" >
653
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
654
+      </if>
655
+      <if test="subType != null" >
656
+        sub_type = #{subType,jdbcType=INTEGER},
657
+      </if>
658
+      <if test="subTypeDetailed != null" >
659
+        sub_type_detailed = #{subTypeDetailed,jdbcType=INTEGER},
660
+      </if>
661
+      <if test="standardName != null" >
662
+        standard_name = #{standardName,jdbcType=VARCHAR},
663
+      </if>
664
+      <if test="levelUpdate != null" >
665
+        level_update = #{levelUpdate,jdbcType=VARCHAR},
666
+      </if>
667
+      <if test="capacity != null" >
668
+        capacity = #{capacity,jdbcType=VARCHAR},
669
+      </if>
670
+      <if test="badpart != null" >
671
+        badpart = #{badpart,jdbcType=VARCHAR},
672
+      </if>
673
+      <if test="impurityTotal != null" >
674
+        impurity_total = #{impurityTotal,jdbcType=VARCHAR},
675
+      </if>
676
+      <if test="mineral != null" >
677
+        mineral = #{mineral,jdbcType=VARCHAR},
678
+      </if>
679
+      <if test="water != null" >
680
+        water = #{water,jdbcType=VARCHAR},
681
+      </if>
682
+      <if test="colorsmell != null" >
683
+        colorsmell = #{colorsmell,jdbcType=VARCHAR},
684
+      </if>
685
+      <if test="mildewCount != null" >
686
+        mildew_count = #{mildewCount,jdbcType=VARCHAR},
687
+      </if>
688
+      <if test="goodpart != null" >
689
+        goodpart = #{goodpart,jdbcType=VARCHAR},
690
+      </if>
691
+      <if test="damageRatio != null" >
692
+        damage_ratio = #{damageRatio,jdbcType=VARCHAR},
693
+      </if>
694
+      <if test="hotDamageRatio != null" >
695
+        hot_damage_ratio = #{hotDamageRatio,jdbcType=VARCHAR},
696
+      </if>
697
+      <if test="huskedRation != null" >
698
+        husked_ration = #{huskedRation,jdbcType=VARCHAR},
699
+      </if>
700
+      <if test="fullGoodRation != null" >
701
+        full_good_ration = #{fullGoodRation,jdbcType=VARCHAR},
702
+      </if>
703
+      <if test="yellowPart != null" >
704
+        yellow_part = #{yellowPart,jdbcType=VARCHAR},
705
+      </if>
706
+      <if test="outHuskedRation != null" >
707
+        out_husked_ration = #{outHuskedRation,jdbcType=VARCHAR},
708
+      </if>
709
+      <if test="intermixingRate != null" >
710
+        intermixing_rate = #{intermixingRate,jdbcType=VARCHAR},
711
+      </if>
712
+      <if test="brokenriceTotal != null" >
713
+        brokenrice_total = #{brokenriceTotal,jdbcType=VARCHAR},
714
+      </if>
715
+      <if test="brokenriceSmall != null" >
716
+        brokenrice_small = #{brokenriceSmall,jdbcType=VARCHAR},
717
+      </if>
718
+      <if test="machiningaccuracy != null" >
719
+        machiningaccuracy = #{machiningaccuracy,jdbcType=VARCHAR},
720
+      </if>
721
+      <if test="machiningaccuracyEssence != null" >
722
+        machiningaccuracy_essence = #{machiningaccuracyEssence,jdbcType=VARCHAR},
723
+      </if>
724
+      <if test="machiningaccuracySuitable != null" >
725
+        machiningaccuracy_suitable = #{machiningaccuracySuitable,jdbcType=VARCHAR},
726
+      </if>
727
+      <if test="impurityInorganic != null" >
728
+        impurity_inorganic = #{impurityInorganic,jdbcType=VARCHAR},
729
+      </if>
730
+      <if test="ashContent != null" >
731
+        ash_content = #{ashContent,jdbcType=VARCHAR},
732
+      </if>
733
+      <if test="gluten != null" >
734
+        gluten = #{gluten,jdbcType=VARCHAR},
735
+      </if>
736
+      <if test="siltContent != null" >
737
+        silt_content = #{siltContent,jdbcType=VARCHAR},
738
+      </if>
739
+      <if test="magneticMetal != null" >
740
+        magnetic_metal = #{magneticMetal,jdbcType=VARCHAR},
741
+      </if>
742
+      <if test="fatIndex != null" >
743
+        fat_index = #{fatIndex,jdbcType=VARCHAR},
744
+      </if>
745
+      <if test="smelltaste != null" >
746
+        smelltaste = #{smelltaste,jdbcType=VARCHAR},
747
+      </if>
748
+      <if test="acidValue != null" >
749
+        acid_value = #{acidValue,jdbcType=VARCHAR},
750
+      </if>
751
+      <if test="residualSolvent != null" >
752
+        residual_solvent = #{residualSolvent,jdbcType=VARCHAR},
753
+      </if>
754
+      <if test="waterVolatiles != null" >
755
+        water_volatiles = #{waterVolatiles,jdbcType=VARCHAR},
756
+      </if>
757
+      <if test="insolubleImpurity != null" >
758
+        insoluble_impurity = #{insolubleImpurity,jdbcType=VARCHAR},
759
+      </if>
760
+      <if test="soapContent != null" >
761
+        soap_content = #{soapContent,jdbcType=VARCHAR},
762
+      </if>
763
+      <if test="smokePoint != null" >
764
+        smoke_point = #{smokePoint,jdbcType=VARCHAR},
765
+      </if>
766
+    </set>
767
+    where id = #{id,jdbcType=VARCHAR}
768
+  </update>
769
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardPreparation" >
770
+    update storage_qualitystandard_preparation
771
+    set org_id = #{orgId,jdbcType=INTEGER},
772
+      open_not = #{openNot,jdbcType=INTEGER},
773
+      creater = #{creater,jdbcType=VARCHAR},
774
+      createtime = #{createtime,jdbcType=TIMESTAMP},
775
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
776
+      sub_type = #{subType,jdbcType=INTEGER},
777
+      sub_type_detailed = #{subTypeDetailed,jdbcType=INTEGER},
778
+      standard_name = #{standardName,jdbcType=VARCHAR},
779
+      level_update = #{levelUpdate,jdbcType=VARCHAR},
780
+      capacity = #{capacity,jdbcType=VARCHAR},
781
+      badpart = #{badpart,jdbcType=VARCHAR},
782
+      impurity_total = #{impurityTotal,jdbcType=VARCHAR},
783
+      mineral = #{mineral,jdbcType=VARCHAR},
784
+      water = #{water,jdbcType=VARCHAR},
785
+      colorsmell = #{colorsmell,jdbcType=VARCHAR},
786
+      mildew_count = #{mildewCount,jdbcType=VARCHAR},
787
+      goodpart = #{goodpart,jdbcType=VARCHAR},
788
+      damage_ratio = #{damageRatio,jdbcType=VARCHAR},
789
+      hot_damage_ratio = #{hotDamageRatio,jdbcType=VARCHAR},
790
+      husked_ration = #{huskedRation,jdbcType=VARCHAR},
791
+      full_good_ration = #{fullGoodRation,jdbcType=VARCHAR},
792
+      yellow_part = #{yellowPart,jdbcType=VARCHAR},
793
+      out_husked_ration = #{outHuskedRation,jdbcType=VARCHAR},
794
+      intermixing_rate = #{intermixingRate,jdbcType=VARCHAR},
795
+      brokenrice_total = #{brokenriceTotal,jdbcType=VARCHAR},
796
+      brokenrice_small = #{brokenriceSmall,jdbcType=VARCHAR},
797
+      machiningaccuracy = #{machiningaccuracy,jdbcType=VARCHAR},
798
+      machiningaccuracy_essence = #{machiningaccuracyEssence,jdbcType=VARCHAR},
799
+      machiningaccuracy_suitable = #{machiningaccuracySuitable,jdbcType=VARCHAR},
800
+      impurity_inorganic = #{impurityInorganic,jdbcType=VARCHAR},
801
+      ash_content = #{ashContent,jdbcType=VARCHAR},
802
+      gluten = #{gluten,jdbcType=VARCHAR},
803
+      silt_content = #{siltContent,jdbcType=VARCHAR},
804
+      magnetic_metal = #{magneticMetal,jdbcType=VARCHAR},
805
+      fat_index = #{fatIndex,jdbcType=VARCHAR},
806
+      smelltaste = #{smelltaste,jdbcType=VARCHAR},
807
+      acid_value = #{acidValue,jdbcType=VARCHAR},
808
+      residual_solvent = #{residualSolvent,jdbcType=VARCHAR},
809
+      water_volatiles = #{waterVolatiles,jdbcType=VARCHAR},
810
+      insoluble_impurity = #{insolubleImpurity,jdbcType=VARCHAR},
811
+      soap_content = #{soapContent,jdbcType=VARCHAR},
812
+      smoke_point = #{smokePoint,jdbcType=VARCHAR}
813
+    where id = #{id,jdbcType=VARCHAR}
814
+  </update>
815
+</mapper>

+ 779 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardPreparation.java

@@ -0,0 +1,779 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+public class StorageQualitystandardPreparation {
6
+    private String id;
7
+
8
+    private Integer orgId;
9
+
10
+    private Integer openNot;
11
+
12
+    private String creater;
13
+
14
+    private Date createtime;
15
+
16
+    private Date updatetime;
17
+
18
+    private Integer subType;
19
+
20
+    private Integer subTypeDetailed;
21
+
22
+    private String standardName;
23
+
24
+    private String levelUpdate;
25
+
26
+    private String capacity;
27
+
28
+    private String badpart;
29
+
30
+    private String impurityTotal;
31
+
32
+    private String mineral;
33
+
34
+    private String water;
35
+
36
+    private String colorsmell;
37
+
38
+    private String mildewCount;
39
+
40
+    private String goodpart;
41
+
42
+    private String damageRatio;
43
+
44
+    private String hotDamageRatio;
45
+
46
+    private String huskedRation;
47
+
48
+    private String fullGoodRation;
49
+
50
+    private String yellowPart;
51
+
52
+    private String outHuskedRation;
53
+
54
+    private String intermixingRate;
55
+
56
+    private String brokenriceTotal;
57
+
58
+    private String brokenriceSmall;
59
+
60
+    private String machiningaccuracy;
61
+
62
+    private String machiningaccuracyEssence;
63
+
64
+    private String machiningaccuracySuitable;
65
+
66
+    private String impurityInorganic;
67
+
68
+    private String ashContent;
69
+
70
+    private String gluten;
71
+
72
+    private String siltContent;
73
+
74
+    private String magneticMetal;
75
+
76
+    private String fatIndex;
77
+
78
+    private String smelltaste;
79
+
80
+    private String acidValue;
81
+
82
+    private String residualSolvent;
83
+
84
+    private String waterVolatiles;
85
+
86
+    private String insolubleImpurity;
87
+
88
+    private String soapContent;
89
+
90
+    private String smokePoint;
91
+
92
+    /**
93
+     * null
94
+     * @return id null
95
+     */
96
+    public String getId() {
97
+        return id;
98
+    }
99
+
100
+    /**
101
+     * null
102
+     * @param id null
103
+     */
104
+    public void setId(String id) {
105
+        this.id = id == null ? null : id.trim();
106
+    }
107
+
108
+    /**
109
+     * null
110
+     * @return org_id null
111
+     */
112
+    public Integer getOrgId() {
113
+        return orgId;
114
+    }
115
+
116
+    /**
117
+     * null
118
+     * @param orgId null
119
+     */
120
+    public void setOrgId(Integer orgId) {
121
+        this.orgId = orgId;
122
+    }
123
+
124
+    /**
125
+     * null
126
+     * @return open_not null
127
+     */
128
+    public Integer getOpenNot() {
129
+        return openNot;
130
+    }
131
+
132
+    /**
133
+     * null
134
+     * @param openNot null
135
+     */
136
+    public void setOpenNot(Integer openNot) {
137
+        this.openNot = openNot;
138
+    }
139
+
140
+    /**
141
+     * null
142
+     * @return creater null
143
+     */
144
+    public String getCreater() {
145
+        return creater;
146
+    }
147
+
148
+    /**
149
+     * null
150
+     * @param creater null
151
+     */
152
+    public void setCreater(String creater) {
153
+        this.creater = creater == null ? null : creater.trim();
154
+    }
155
+
156
+    /**
157
+     * null
158
+     * @return createtime null
159
+     */
160
+    public Date getCreatetime() {
161
+        return createtime;
162
+    }
163
+
164
+    /**
165
+     * null
166
+     * @param createtime null
167
+     */
168
+    public void setCreatetime(Date createtime) {
169
+        this.createtime = createtime;
170
+    }
171
+
172
+    /**
173
+     * null
174
+     * @return updatetime null
175
+     */
176
+    public Date getUpdatetime() {
177
+        return updatetime;
178
+    }
179
+
180
+    /**
181
+     * null
182
+     * @param updatetime null
183
+     */
184
+    public void setUpdatetime(Date updatetime) {
185
+        this.updatetime = updatetime;
186
+    }
187
+
188
+    /**
189
+     * null
190
+     * @return sub_type null
191
+     */
192
+    public Integer getSubType() {
193
+        return subType;
194
+    }
195
+
196
+    /**
197
+     * null
198
+     * @param subType null
199
+     */
200
+    public void setSubType(Integer subType) {
201
+        this.subType = subType;
202
+    }
203
+
204
+    /**
205
+     * null
206
+     * @return sub_type_detailed null
207
+     */
208
+    public Integer getSubTypeDetailed() {
209
+        return subTypeDetailed;
210
+    }
211
+
212
+    /**
213
+     * null
214
+     * @param subTypeDetailed null
215
+     */
216
+    public void setSubTypeDetailed(Integer subTypeDetailed) {
217
+        this.subTypeDetailed = subTypeDetailed;
218
+    }
219
+
220
+    /**
221
+     * null
222
+     * @return standard_name null
223
+     */
224
+    public String getStandardName() {
225
+        return standardName;
226
+    }
227
+
228
+    /**
229
+     * null
230
+     * @param standardName null
231
+     */
232
+    public void setStandardName(String standardName) {
233
+        this.standardName = standardName == null ? null : standardName.trim();
234
+    }
235
+
236
+    /**
237
+     * null
238
+     * @return level_update null
239
+     */
240
+    public String getLevelUpdate() {
241
+        return levelUpdate;
242
+    }
243
+
244
+    /**
245
+     * null
246
+     * @param levelUpdate null
247
+     */
248
+    public void setLevelUpdate(String levelUpdate) {
249
+        this.levelUpdate = levelUpdate == null ? null : levelUpdate.trim();
250
+    }
251
+
252
+    /**
253
+     * null
254
+     * @return capacity null
255
+     */
256
+    public String getCapacity() {
257
+        return capacity;
258
+    }
259
+
260
+    /**
261
+     * null
262
+     * @param capacity null
263
+     */
264
+    public void setCapacity(String capacity) {
265
+        this.capacity = capacity == null ? null : capacity.trim();
266
+    }
267
+
268
+    /**
269
+     * null
270
+     * @return badpart null
271
+     */
272
+    public String getBadpart() {
273
+        return badpart;
274
+    }
275
+
276
+    /**
277
+     * null
278
+     * @param badpart null
279
+     */
280
+    public void setBadpart(String badpart) {
281
+        this.badpart = badpart == null ? null : badpart.trim();
282
+    }
283
+
284
+    /**
285
+     * null
286
+     * @return impurity_total null
287
+     */
288
+    public String getImpurityTotal() {
289
+        return impurityTotal;
290
+    }
291
+
292
+    /**
293
+     * null
294
+     * @param impurityTotal null
295
+     */
296
+    public void setImpurityTotal(String impurityTotal) {
297
+        this.impurityTotal = impurityTotal == null ? null : impurityTotal.trim();
298
+    }
299
+
300
+    /**
301
+     * null
302
+     * @return mineral null
303
+     */
304
+    public String getMineral() {
305
+        return mineral;
306
+    }
307
+
308
+    /**
309
+     * null
310
+     * @param mineral null
311
+     */
312
+    public void setMineral(String mineral) {
313
+        this.mineral = mineral == null ? null : mineral.trim();
314
+    }
315
+
316
+    /**
317
+     * null
318
+     * @return water null
319
+     */
320
+    public String getWater() {
321
+        return water;
322
+    }
323
+
324
+    /**
325
+     * null
326
+     * @param water null
327
+     */
328
+    public void setWater(String water) {
329
+        this.water = water == null ? null : water.trim();
330
+    }
331
+
332
+    /**
333
+     * null
334
+     * @return colorsmell null
335
+     */
336
+    public String getColorsmell() {
337
+        return colorsmell;
338
+    }
339
+
340
+    /**
341
+     * null
342
+     * @param colorsmell null
343
+     */
344
+    public void setColorsmell(String colorsmell) {
345
+        this.colorsmell = colorsmell == null ? null : colorsmell.trim();
346
+    }
347
+
348
+    /**
349
+     * null
350
+     * @return mildew_count null
351
+     */
352
+    public String getMildewCount() {
353
+        return mildewCount;
354
+    }
355
+
356
+    /**
357
+     * null
358
+     * @param mildewCount null
359
+     */
360
+    public void setMildewCount(String mildewCount) {
361
+        this.mildewCount = mildewCount == null ? null : mildewCount.trim();
362
+    }
363
+
364
+    /**
365
+     * null
366
+     * @return goodpart null
367
+     */
368
+    public String getGoodpart() {
369
+        return goodpart;
370
+    }
371
+
372
+    /**
373
+     * null
374
+     * @param goodpart null
375
+     */
376
+    public void setGoodpart(String goodpart) {
377
+        this.goodpart = goodpart == null ? null : goodpart.trim();
378
+    }
379
+
380
+    /**
381
+     * null
382
+     * @return damage_ratio null
383
+     */
384
+    public String getDamageRatio() {
385
+        return damageRatio;
386
+    }
387
+
388
+    /**
389
+     * null
390
+     * @param damageRatio null
391
+     */
392
+    public void setDamageRatio(String damageRatio) {
393
+        this.damageRatio = damageRatio == null ? null : damageRatio.trim();
394
+    }
395
+
396
+    /**
397
+     * null
398
+     * @return hot_damage_ratio null
399
+     */
400
+    public String getHotDamageRatio() {
401
+        return hotDamageRatio;
402
+    }
403
+
404
+    /**
405
+     * null
406
+     * @param hotDamageRatio null
407
+     */
408
+    public void setHotDamageRatio(String hotDamageRatio) {
409
+        this.hotDamageRatio = hotDamageRatio == null ? null : hotDamageRatio.trim();
410
+    }
411
+
412
+    /**
413
+     * null
414
+     * @return husked_ration null
415
+     */
416
+    public String getHuskedRation() {
417
+        return huskedRation;
418
+    }
419
+
420
+    /**
421
+     * null
422
+     * @param huskedRation null
423
+     */
424
+    public void setHuskedRation(String huskedRation) {
425
+        this.huskedRation = huskedRation == null ? null : huskedRation.trim();
426
+    }
427
+
428
+    /**
429
+     * null
430
+     * @return full_good_ration null
431
+     */
432
+    public String getFullGoodRation() {
433
+        return fullGoodRation;
434
+    }
435
+
436
+    /**
437
+     * null
438
+     * @param fullGoodRation null
439
+     */
440
+    public void setFullGoodRation(String fullGoodRation) {
441
+        this.fullGoodRation = fullGoodRation == null ? null : fullGoodRation.trim();
442
+    }
443
+
444
+    /**
445
+     * null
446
+     * @return yellow_part null
447
+     */
448
+    public String getYellowPart() {
449
+        return yellowPart;
450
+    }
451
+
452
+    /**
453
+     * null
454
+     * @param yellowPart null
455
+     */
456
+    public void setYellowPart(String yellowPart) {
457
+        this.yellowPart = yellowPart == null ? null : yellowPart.trim();
458
+    }
459
+
460
+    /**
461
+     * null
462
+     * @return out_husked_ration null
463
+     */
464
+    public String getOutHuskedRation() {
465
+        return outHuskedRation;
466
+    }
467
+
468
+    /**
469
+     * null
470
+     * @param outHuskedRation null
471
+     */
472
+    public void setOutHuskedRation(String outHuskedRation) {
473
+        this.outHuskedRation = outHuskedRation == null ? null : outHuskedRation.trim();
474
+    }
475
+
476
+    /**
477
+     * null
478
+     * @return intermixing_rate null
479
+     */
480
+    public String getIntermixingRate() {
481
+        return intermixingRate;
482
+    }
483
+
484
+    /**
485
+     * null
486
+     * @param intermixingRate null
487
+     */
488
+    public void setIntermixingRate(String intermixingRate) {
489
+        this.intermixingRate = intermixingRate == null ? null : intermixingRate.trim();
490
+    }
491
+
492
+    /**
493
+     * null
494
+     * @return brokenrice_total null
495
+     */
496
+    public String getBrokenriceTotal() {
497
+        return brokenriceTotal;
498
+    }
499
+
500
+    /**
501
+     * null
502
+     * @param brokenriceTotal null
503
+     */
504
+    public void setBrokenriceTotal(String brokenriceTotal) {
505
+        this.brokenriceTotal = brokenriceTotal == null ? null : brokenriceTotal.trim();
506
+    }
507
+
508
+    /**
509
+     * null
510
+     * @return brokenrice_small null
511
+     */
512
+    public String getBrokenriceSmall() {
513
+        return brokenriceSmall;
514
+    }
515
+
516
+    /**
517
+     * null
518
+     * @param brokenriceSmall null
519
+     */
520
+    public void setBrokenriceSmall(String brokenriceSmall) {
521
+        this.brokenriceSmall = brokenriceSmall == null ? null : brokenriceSmall.trim();
522
+    }
523
+
524
+    /**
525
+     * null
526
+     * @return machiningaccuracy null
527
+     */
528
+    public String getMachiningaccuracy() {
529
+        return machiningaccuracy;
530
+    }
531
+
532
+    /**
533
+     * null
534
+     * @param machiningaccuracy null
535
+     */
536
+    public void setMachiningaccuracy(String machiningaccuracy) {
537
+        this.machiningaccuracy = machiningaccuracy == null ? null : machiningaccuracy.trim();
538
+    }
539
+
540
+    /**
541
+     * null
542
+     * @return machiningaccuracy_essence null
543
+     */
544
+    public String getMachiningaccuracyEssence() {
545
+        return machiningaccuracyEssence;
546
+    }
547
+
548
+    /**
549
+     * null
550
+     * @param machiningaccuracyEssence null
551
+     */
552
+    public void setMachiningaccuracyEssence(String machiningaccuracyEssence) {
553
+        this.machiningaccuracyEssence = machiningaccuracyEssence == null ? null : machiningaccuracyEssence.trim();
554
+    }
555
+
556
+    /**
557
+     * null
558
+     * @return machiningaccuracy_suitable null
559
+     */
560
+    public String getMachiningaccuracySuitable() {
561
+        return machiningaccuracySuitable;
562
+    }
563
+
564
+    /**
565
+     * null
566
+     * @param machiningaccuracySuitable null
567
+     */
568
+    public void setMachiningaccuracySuitable(String machiningaccuracySuitable) {
569
+        this.machiningaccuracySuitable = machiningaccuracySuitable == null ? null : machiningaccuracySuitable.trim();
570
+    }
571
+
572
+    /**
573
+     * null
574
+     * @return impurity_inorganic null
575
+     */
576
+    public String getImpurityInorganic() {
577
+        return impurityInorganic;
578
+    }
579
+
580
+    /**
581
+     * null
582
+     * @param impurityInorganic null
583
+     */
584
+    public void setImpurityInorganic(String impurityInorganic) {
585
+        this.impurityInorganic = impurityInorganic == null ? null : impurityInorganic.trim();
586
+    }
587
+
588
+    /**
589
+     * null
590
+     * @return ash_content null
591
+     */
592
+    public String getAshContent() {
593
+        return ashContent;
594
+    }
595
+
596
+    /**
597
+     * null
598
+     * @param ashContent null
599
+     */
600
+    public void setAshContent(String ashContent) {
601
+        this.ashContent = ashContent == null ? null : ashContent.trim();
602
+    }
603
+
604
+    /**
605
+     * null
606
+     * @return gluten null
607
+     */
608
+    public String getGluten() {
609
+        return gluten;
610
+    }
611
+
612
+    /**
613
+     * null
614
+     * @param gluten null
615
+     */
616
+    public void setGluten(String gluten) {
617
+        this.gluten = gluten == null ? null : gluten.trim();
618
+    }
619
+
620
+    /**
621
+     * null
622
+     * @return silt_content null
623
+     */
624
+    public String getSiltContent() {
625
+        return siltContent;
626
+    }
627
+
628
+    /**
629
+     * null
630
+     * @param siltContent null
631
+     */
632
+    public void setSiltContent(String siltContent) {
633
+        this.siltContent = siltContent == null ? null : siltContent.trim();
634
+    }
635
+
636
+    /**
637
+     * null
638
+     * @return magnetic_metal null
639
+     */
640
+    public String getMagneticMetal() {
641
+        return magneticMetal;
642
+    }
643
+
644
+    /**
645
+     * null
646
+     * @param magneticMetal null
647
+     */
648
+    public void setMagneticMetal(String magneticMetal) {
649
+        this.magneticMetal = magneticMetal == null ? null : magneticMetal.trim();
650
+    }
651
+
652
+    /**
653
+     * null
654
+     * @return fat_index null
655
+     */
656
+    public String getFatIndex() {
657
+        return fatIndex;
658
+    }
659
+
660
+    /**
661
+     * null
662
+     * @param fatIndex null
663
+     */
664
+    public void setFatIndex(String fatIndex) {
665
+        this.fatIndex = fatIndex == null ? null : fatIndex.trim();
666
+    }
667
+
668
+    /**
669
+     * null
670
+     * @return smelltaste null
671
+     */
672
+    public String getSmelltaste() {
673
+        return smelltaste;
674
+    }
675
+
676
+    /**
677
+     * null
678
+     * @param smelltaste null
679
+     */
680
+    public void setSmelltaste(String smelltaste) {
681
+        this.smelltaste = smelltaste == null ? null : smelltaste.trim();
682
+    }
683
+
684
+    /**
685
+     * null
686
+     * @return acid_value null
687
+     */
688
+    public String getAcidValue() {
689
+        return acidValue;
690
+    }
691
+
692
+    /**
693
+     * null
694
+     * @param acidValue null
695
+     */
696
+    public void setAcidValue(String acidValue) {
697
+        this.acidValue = acidValue == null ? null : acidValue.trim();
698
+    }
699
+
700
+    /**
701
+     * null
702
+     * @return residual_solvent null
703
+     */
704
+    public String getResidualSolvent() {
705
+        return residualSolvent;
706
+    }
707
+
708
+    /**
709
+     * null
710
+     * @param residualSolvent null
711
+     */
712
+    public void setResidualSolvent(String residualSolvent) {
713
+        this.residualSolvent = residualSolvent == null ? null : residualSolvent.trim();
714
+    }
715
+
716
+    /**
717
+     * null
718
+     * @return water_volatiles null
719
+     */
720
+    public String getWaterVolatiles() {
721
+        return waterVolatiles;
722
+    }
723
+
724
+    /**
725
+     * null
726
+     * @param waterVolatiles null
727
+     */
728
+    public void setWaterVolatiles(String waterVolatiles) {
729
+        this.waterVolatiles = waterVolatiles == null ? null : waterVolatiles.trim();
730
+    }
731
+
732
+    /**
733
+     * null
734
+     * @return insoluble_impurity null
735
+     */
736
+    public String getInsolubleImpurity() {
737
+        return insolubleImpurity;
738
+    }
739
+
740
+    /**
741
+     * null
742
+     * @param insolubleImpurity null
743
+     */
744
+    public void setInsolubleImpurity(String insolubleImpurity) {
745
+        this.insolubleImpurity = insolubleImpurity == null ? null : insolubleImpurity.trim();
746
+    }
747
+
748
+    /**
749
+     * null
750
+     * @return soap_content null
751
+     */
752
+    public String getSoapContent() {
753
+        return soapContent;
754
+    }
755
+
756
+    /**
757
+     * null
758
+     * @param soapContent null
759
+     */
760
+    public void setSoapContent(String soapContent) {
761
+        this.soapContent = soapContent == null ? null : soapContent.trim();
762
+    }
763
+
764
+    /**
765
+     * null
766
+     * @return smoke_point null
767
+     */
768
+    public String getSmokePoint() {
769
+        return smokePoint;
770
+    }
771
+
772
+    /**
773
+     * null
774
+     * @param smokePoint null
775
+     */
776
+    public void setSmokePoint(String smokePoint) {
777
+        this.smokePoint = smokePoint == null ? null : smokePoint.trim();
778
+    }
779
+}

Разлика између датотеке није приказан због своје велике величине
+ 3169 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardPreparationExample.java


+ 18 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageQualitystandardPreparationService.java

@@ -0,0 +1,18 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+
5
+import javax.servlet.http.HttpServletRequest;
6
+
7
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparation;
8
+
9
+public interface StorageQualitystandardPreparationService {
10
+
11
+	/**
12
+	 * 数据集列表
13
+	 * @param lspz
14
+	 * @return
15
+	 * @throws Exception
16
+	 */
17
+	public List<StorageQualitystandardPreparation> getList(HttpServletRequest request, Integer lspz) throws Exception;
18
+}

+ 46 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageQualitystandardPreparationServiceImpl.java

@@ -0,0 +1,46 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.util.List;
4
+
5
+import javax.servlet.http.HttpServletRequest;
6
+
7
+import org.apache.commons.lang.ObjectUtils;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.stereotype.Service;
10
+
11
+import com.chinaitop.depot.storage.mapper.StorageQualitystandardPreparationMapper;
12
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparation;
13
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparationExample;
14
+import com.chinaitop.depot.storage.service.StorageQualitystandardPreparationService;
15
+
16
+@Service
17
+public class StorageQualitystandardPreparationServiceImpl implements StorageQualitystandardPreparationService {
18
+
19
+	@Autowired
20
+	private StorageQualitystandardPreparationMapper storageQualitystandardPreparationMapper;
21
+	
22
+	@Override
23
+	public List<StorageQualitystandardPreparation> getList(HttpServletRequest request, Integer lspz) throws Exception {
24
+
25
+		/* 获取单位 */
26
+		int org_id = Integer.parseInt(ObjectUtils.toString(request.getSession().getAttribute("orgId"), "0"));
27
+
28
+		/* 组装查询 */
29
+		StorageQualitystandardPreparationExample example = new StorageQualitystandardPreparationExample();
30
+		StorageQualitystandardPreparationExample.Criteria criteria = example.createCriteria();
31
+
32
+		/* 粮食品种 */
33
+		if (null != lspz) {
34
+			criteria.andSubTypeEqualTo(lspz);
35
+		}
36
+
37
+		/* 单位ID */
38
+		criteria.andOrgIdEqualTo(org_id);
39
+
40
+		/* 查询 */
41
+		List<StorageQualitystandardPreparation> list = storageQualitystandardPreparationMapper.selectByExample(example);
42
+
43
+		return list;
44
+	}
45
+
46
+}