Преглед на файлове

质量标准配置开发

fanxw преди 4 години
родител
ревизия
0eba1e16b5
променени са 16 файла, в които са добавени 2164 реда и са изтрити 2126 реда
  1. 2 0
      src/main/java/com/chinaitop/DepotQualitycheckApplication.java
  2. 139 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageQualitystandardMainController.java
  3. 0 51
      src/main/java/com/chinaitop/depot/storage/controller/StorageQualitystandardPreparationController.java
  4. 30 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardMainMapper.java
  5. 258 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardMainMapper.xml
  6. 0 30
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardPreparationMapper.java
  7. 0 815
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardPreparationMapper.xml
  8. 149 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardMain.java
  9. 729 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardMainExample.java
  10. 149 221
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardPreparation.java
  11. 403 943
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardPreparationExample.java
  12. 62 0
      src/main/java/com/chinaitop/depot/storage/service/StorageQualitystandardMainService.java
  13. 0 18
      src/main/java/com/chinaitop/depot/storage/service/StorageQualitystandardPreparationService.java
  14. 231 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageQualitystandardMainServiceImpl.java
  15. 0 46
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageQualitystandardPreparationServiceImpl.java
  16. 12 2
      src/main/java/com/chinaitop/depot/storage/utils/ParameterUtil.java

+ 2 - 0
src/main/java/com/chinaitop/DepotQualitycheckApplication.java

@@ -6,6 +6,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
6 6
 import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
7 7
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
8 8
 import org.springframework.cloud.openfeign.EnableFeignClients;
9
+import org.springframework.transaction.annotation.EnableTransactionManagement;
9 10
 
10 11
 import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
11 12
 
@@ -13,6 +14,7 @@ import com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration;
13 14
 @EnableEurekaClient
14 15
 @EnableFeignClients
15 16
 @EnableDiscoveryClient
17
+@EnableTransactionManagement
16 18
 @SpringBootApplication(exclude = PageHelperAutoConfiguration.class)//配置mybatis的配置文件使用,否则报多个分页插件
17 19
 @MapperScan(basePackages = {"com.chinaitop.depot.*.mapper"})
18 20
 public class DepotQualitycheckApplication {

+ 139 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitystandardMainController.java

@@ -0,0 +1,139 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.util.HashMap;
4
+import java.util.List;
5
+import java.util.Map;
6
+
7
+import javax.servlet.http.HttpServletRequest;
8
+
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.http.MediaType;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RequestMethod;
13
+import org.springframework.web.bind.annotation.RestController;
14
+
15
+import com.chinaitop.depot.storage.model.StorageQualitystandardMain;
16
+import com.chinaitop.depot.storage.service.StorageQualitystandardMainService;
17
+import com.github.pagehelper.PageHelper;
18
+import com.github.pagehelper.PageInfo;
19
+
20
+import io.swagger.annotations.Api;
21
+import io.swagger.annotations.ApiImplicitParam;
22
+import io.swagger.annotations.ApiImplicitParams;
23
+import io.swagger.annotations.ApiOperation;
24
+
25
+@RestController
26
+@RequestMapping(value="StorageQualitystandardMainController")
27
+@Api(value= "StorageQualitystandardMainController", description = "质量标准配置控制类")
28
+public class StorageQualitystandardMainController {
29
+
30
+	@Autowired
31
+	private StorageQualitystandardMainService storageQualitystandardMainService;
32
+
33
+	@RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
34
+    @ApiOperation(value="质量标准配置数据列表", notes = "支持分页")
35
+    @ApiImplicitParams({
36
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
37
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
38
+            @ApiImplicitParam(name = "lspz", value = "粮食品种ID", paramType = "query")
39
+    })
40
+	public PageInfo<StorageQualitystandardMain> getList(HttpServletRequest request, Integer pageNum, Integer pageSize, Integer lspz) {
41
+		PageInfo<StorageQualitystandardMain> pageInfo = null;
42
+		try {
43
+			if (null != pageNum && null != pageSize) {
44
+				PageHelper.startPage(pageNum, pageSize);
45
+			}
46
+			List<StorageQualitystandardMain> list = storageQualitystandardMainService.getList(request, lspz);
47
+			pageInfo = new PageInfo<StorageQualitystandardMain>(list);
48
+		} catch (Exception e) {
49
+			e.printStackTrace();
50
+		}
51
+		return pageInfo;
52
+	}
53
+
54
+	@RequestMapping(value = "/findByIdObj",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
55
+    @ApiOperation(value="查询一条质量标准配置数据", notes = "")
56
+    @ApiImplicitParams({
57
+        @ApiImplicitParam(name = "id", value = "数据ID", paramType = "query")
58
+    })
59
+	public Map<String, Object> findByIdObj(String id) {
60
+		Map<String, Object> map = new HashMap<String, Object>();
61
+
62
+		try {
63
+			map = storageQualitystandardMainService.findByIdObj(id);
64
+		} catch (Exception e) {
65
+			e.printStackTrace();
66
+		}
67
+
68
+		return map;
69
+	}
70
+
71
+	@RequestMapping(value = "/initObj",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
72
+    @ApiOperation(value="初始化品种化验项数据", notes = "")
73
+    @ApiImplicitParams({
74
+        @ApiImplicitParam(name = "lspz", value = "粮油品种", paramType = "query")
75
+    })
76
+	public Map<String, Object> initObj(Integer lspz) {
77
+		Map<String, Object> map = null;
78
+		try {
79
+			map = storageQualitystandardMainService.initObj(lspz);
80
+		} catch (Exception e) {
81
+			e.printStackTrace();
82
+		}
83
+		return map;
84
+	}
85
+
86
+	@RequestMapping(value = "/saveOrUpdate",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
87
+    @ApiOperation(value="保存或更新一条质量标准配置数据", notes = "")
88
+    @ApiImplicitParams({
89
+        @ApiImplicitParam(name = "obj_main", value = "主表数据", paramType = "form"),
90
+        @ApiImplicitParam(name = "obj", value = "子表数据", paramType = "form")
91
+    })
92
+	public Map<String, Object> saveOrUpdate(HttpServletRequest request, String obj_main, String obj) {
93
+		Map<String, Object> map = new HashMap<String, Object>();
94
+
95
+		try {
96
+			storageQualitystandardMainService.saveOrUpdate(request, obj_main, obj);
97
+			map.put("status", "200");
98
+		} catch (Exception e) {
99
+			e.printStackTrace();
100
+		}
101
+
102
+		return map;
103
+	}
104
+
105
+	@RequestMapping(value = "/delete",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
106
+    @ApiOperation(value="删除一条质量标准配置数据", notes = "")
107
+    @ApiImplicitParams({
108
+        @ApiImplicitParam(name = "id", value = "数据ID", paramType = "form")
109
+    })
110
+	public Map<String, Object> delete(String id) {
111
+		Map<String, Object> map = new HashMap<String, Object>();
112
+
113
+		try {
114
+			storageQualitystandardMainService.delete(id);
115
+			map.put("status", "200");
116
+		} catch (Exception e) {
117
+			e.printStackTrace();
118
+		}
119
+
120
+		return map;
121
+	}
122
+
123
+	@RequestMapping(value = "/findLspzObjs",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
124
+    @ApiOperation(value="删除一条质量标准配置数据", notes = "")
125
+    @ApiImplicitParams({
126
+        @ApiImplicitParam(name = "lspz", value = "适用品种", paramType = "query")
127
+    })
128
+	public Map<String, Object> findLspzObjs(Integer lspz) {
129
+		Map<String, Object> map = null;
130
+
131
+		try {
132
+			map = storageQualitystandardMainService.findLspzObjs(lspz);
133
+		} catch (Exception e) {
134
+			e.printStackTrace();
135
+		}
136
+
137
+		return map;
138
+	}
139
+}

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

@@ -1,51 +0,0 @@
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/StorageQualitystandardMainMapper.java

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

+ 258 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitystandardMainMapper.xml

@@ -0,0 +1,258 @@
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.StorageQualitystandardMainMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageQualitystandardMain" >
5
+    <id column="id" property="id" jdbcType="VARCHAR" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
+    <result column="standard_name" property="standardName" jdbcType="VARCHAR" />
8
+    <result column="sub_type" property="subType" jdbcType="INTEGER" />
9
+    <result column="open_not" property="openNot" jdbcType="INTEGER" />
10
+    <result column="creater" property="creater" jdbcType="VARCHAR" />
11
+    <result column="createtime" property="createtime" jdbcType="TIMESTAMP" />
12
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
13
+  </resultMap>
14
+  <sql id="Example_Where_Clause" >
15
+    <where >
16
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
17
+        <if test="criteria.valid" >
18
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
19
+            <foreach collection="criteria.criteria" item="criterion" >
20
+              <choose >
21
+                <when test="criterion.noValue" >
22
+                  and ${criterion.condition}
23
+                </when>
24
+                <when test="criterion.singleValue" >
25
+                  and ${criterion.condition} #{criterion.value}
26
+                </when>
27
+                <when test="criterion.betweenValue" >
28
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
29
+                </when>
30
+                <when test="criterion.listValue" >
31
+                  and ${criterion.condition}
32
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
33
+                    #{listItem}
34
+                  </foreach>
35
+                </when>
36
+              </choose>
37
+            </foreach>
38
+          </trim>
39
+        </if>
40
+      </foreach>
41
+    </where>
42
+  </sql>
43
+  <sql id="Update_By_Example_Where_Clause" >
44
+    <where >
45
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
46
+        <if test="criteria.valid" >
47
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
48
+            <foreach collection="criteria.criteria" item="criterion" >
49
+              <choose >
50
+                <when test="criterion.noValue" >
51
+                  and ${criterion.condition}
52
+                </when>
53
+                <when test="criterion.singleValue" >
54
+                  and ${criterion.condition} #{criterion.value}
55
+                </when>
56
+                <when test="criterion.betweenValue" >
57
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
58
+                </when>
59
+                <when test="criterion.listValue" >
60
+                  and ${criterion.condition}
61
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
62
+                    #{listItem}
63
+                  </foreach>
64
+                </when>
65
+              </choose>
66
+            </foreach>
67
+          </trim>
68
+        </if>
69
+      </foreach>
70
+    </where>
71
+  </sql>
72
+  <sql id="Base_Column_List" >
73
+    id, org_id, standard_name, sub_type, open_not, creater, createtime, updatetime
74
+  </sql>
75
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMainExample" >
76
+    select
77
+    <if test="distinct" >
78
+      distinct
79
+    </if>
80
+    <include refid="Base_Column_List" />
81
+    from storage_qualitystandard_main
82
+    <if test="_parameter != null" >
83
+      <include refid="Example_Where_Clause" />
84
+    </if>
85
+    <if test="orderByClause != null" >
86
+      order by ${orderByClause}
87
+    </if>
88
+  </select>
89
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
90
+    select 
91
+    <include refid="Base_Column_List" />
92
+    from storage_qualitystandard_main
93
+    where id = #{id,jdbcType=VARCHAR}
94
+  </select>
95
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
96
+    delete from storage_qualitystandard_main
97
+    where id = #{id,jdbcType=VARCHAR}
98
+  </delete>
99
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMainExample" >
100
+    delete from storage_qualitystandard_main
101
+    <if test="_parameter != null" >
102
+      <include refid="Example_Where_Clause" />
103
+    </if>
104
+  </delete>
105
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMain" >
106
+    insert into storage_qualitystandard_main (id, org_id, standard_name, 
107
+      sub_type, open_not, creater, 
108
+      createtime, updatetime)
109
+    values (#{id,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER}, #{standardName,jdbcType=VARCHAR}, 
110
+      #{subType,jdbcType=INTEGER}, #{openNot,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR}, 
111
+      #{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP})
112
+  </insert>
113
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMain" >
114
+    insert into storage_qualitystandard_main
115
+    <trim prefix="(" suffix=")" suffixOverrides="," >
116
+      <if test="id != null" >
117
+        id,
118
+      </if>
119
+      <if test="orgId != null" >
120
+        org_id,
121
+      </if>
122
+      <if test="standardName != null" >
123
+        standard_name,
124
+      </if>
125
+      <if test="subType != null" >
126
+        sub_type,
127
+      </if>
128
+      <if test="openNot != null" >
129
+        open_not,
130
+      </if>
131
+      <if test="creater != null" >
132
+        creater,
133
+      </if>
134
+      <if test="createtime != null" >
135
+        createtime,
136
+      </if>
137
+      <if test="updatetime != null" >
138
+        updatetime,
139
+      </if>
140
+    </trim>
141
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
142
+      <if test="id != null" >
143
+        #{id,jdbcType=VARCHAR},
144
+      </if>
145
+      <if test="orgId != null" >
146
+        #{orgId,jdbcType=INTEGER},
147
+      </if>
148
+      <if test="standardName != null" >
149
+        #{standardName,jdbcType=VARCHAR},
150
+      </if>
151
+      <if test="subType != null" >
152
+        #{subType,jdbcType=INTEGER},
153
+      </if>
154
+      <if test="openNot != null" >
155
+        #{openNot,jdbcType=INTEGER},
156
+      </if>
157
+      <if test="creater != null" >
158
+        #{creater,jdbcType=VARCHAR},
159
+      </if>
160
+      <if test="createtime != null" >
161
+        #{createtime,jdbcType=TIMESTAMP},
162
+      </if>
163
+      <if test="updatetime != null" >
164
+        #{updatetime,jdbcType=TIMESTAMP},
165
+      </if>
166
+    </trim>
167
+  </insert>
168
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMainExample" resultType="java.lang.Integer" >
169
+    select count(*) from storage_qualitystandard_main
170
+    <if test="_parameter != null" >
171
+      <include refid="Example_Where_Clause" />
172
+    </if>
173
+  </select>
174
+  <update id="updateByExampleSelective" parameterType="map" >
175
+    update storage_qualitystandard_main
176
+    <set >
177
+      <if test="record.id != null" >
178
+        id = #{record.id,jdbcType=VARCHAR},
179
+      </if>
180
+      <if test="record.orgId != null" >
181
+        org_id = #{record.orgId,jdbcType=INTEGER},
182
+      </if>
183
+      <if test="record.standardName != null" >
184
+        standard_name = #{record.standardName,jdbcType=VARCHAR},
185
+      </if>
186
+      <if test="record.subType != null" >
187
+        sub_type = #{record.subType,jdbcType=INTEGER},
188
+      </if>
189
+      <if test="record.openNot != null" >
190
+        open_not = #{record.openNot,jdbcType=INTEGER},
191
+      </if>
192
+      <if test="record.creater != null" >
193
+        creater = #{record.creater,jdbcType=VARCHAR},
194
+      </if>
195
+      <if test="record.createtime != null" >
196
+        createtime = #{record.createtime,jdbcType=TIMESTAMP},
197
+      </if>
198
+      <if test="record.updatetime != null" >
199
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
200
+      </if>
201
+    </set>
202
+    <if test="_parameter != null" >
203
+      <include refid="Update_By_Example_Where_Clause" />
204
+    </if>
205
+  </update>
206
+  <update id="updateByExample" parameterType="map" >
207
+    update storage_qualitystandard_main
208
+    set id = #{record.id,jdbcType=VARCHAR},
209
+      org_id = #{record.orgId,jdbcType=INTEGER},
210
+      standard_name = #{record.standardName,jdbcType=VARCHAR},
211
+      sub_type = #{record.subType,jdbcType=INTEGER},
212
+      open_not = #{record.openNot,jdbcType=INTEGER},
213
+      creater = #{record.creater,jdbcType=VARCHAR},
214
+      createtime = #{record.createtime,jdbcType=TIMESTAMP},
215
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
216
+    <if test="_parameter != null" >
217
+      <include refid="Update_By_Example_Where_Clause" />
218
+    </if>
219
+  </update>
220
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMain" >
221
+    update storage_qualitystandard_main
222
+    <set >
223
+      <if test="orgId != null" >
224
+        org_id = #{orgId,jdbcType=INTEGER},
225
+      </if>
226
+      <if test="standardName != null" >
227
+        standard_name = #{standardName,jdbcType=VARCHAR},
228
+      </if>
229
+      <if test="subType != null" >
230
+        sub_type = #{subType,jdbcType=INTEGER},
231
+      </if>
232
+      <if test="openNot != null" >
233
+        open_not = #{openNot,jdbcType=INTEGER},
234
+      </if>
235
+      <if test="creater != null" >
236
+        creater = #{creater,jdbcType=VARCHAR},
237
+      </if>
238
+      <if test="createtime != null" >
239
+        createtime = #{createtime,jdbcType=TIMESTAMP},
240
+      </if>
241
+      <if test="updatetime != null" >
242
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
243
+      </if>
244
+    </set>
245
+    where id = #{id,jdbcType=VARCHAR}
246
+  </update>
247
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageQualitystandardMain" >
248
+    update storage_qualitystandard_main
249
+    set org_id = #{orgId,jdbcType=INTEGER},
250
+      standard_name = #{standardName,jdbcType=VARCHAR},
251
+      sub_type = #{subType,jdbcType=INTEGER},
252
+      open_not = #{openNot,jdbcType=INTEGER},
253
+      creater = #{creater,jdbcType=VARCHAR},
254
+      createtime = #{createtime,jdbcType=TIMESTAMP},
255
+      updatetime = #{updatetime,jdbcType=TIMESTAMP}
256
+    where id = #{id,jdbcType=VARCHAR}
257
+  </update>
258
+</mapper>

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

@@ -1,30 +0,0 @@
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
-}

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

@@ -1,815 +0,0 @@
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>

+ 149 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardMain.java

@@ -0,0 +1,149 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+public class StorageQualitystandardMain {
6
+    private String id;
7
+
8
+    private Integer orgId;
9
+
10
+    private String standardName;
11
+
12
+    private Integer subType;
13
+
14
+    private Integer openNot;
15
+
16
+    private String creater;
17
+
18
+    private Date createtime;
19
+
20
+    private Date updatetime;
21
+
22
+    /**
23
+     * null
24
+     * @return id null
25
+     */
26
+    public String getId() {
27
+        return id;
28
+    }
29
+
30
+    /**
31
+     * null
32
+     * @param id null
33
+     */
34
+    public void setId(String id) {
35
+        this.id = id == null ? null : id.trim();
36
+    }
37
+
38
+    /**
39
+     * null
40
+     * @return org_id null
41
+     */
42
+    public Integer getOrgId() {
43
+        return orgId;
44
+    }
45
+
46
+    /**
47
+     * null
48
+     * @param orgId null
49
+     */
50
+    public void setOrgId(Integer orgId) {
51
+        this.orgId = orgId;
52
+    }
53
+
54
+    /**
55
+     * null
56
+     * @return standard_name null
57
+     */
58
+    public String getStandardName() {
59
+        return standardName;
60
+    }
61
+
62
+    /**
63
+     * null
64
+     * @param standardName null
65
+     */
66
+    public void setStandardName(String standardName) {
67
+        this.standardName = standardName == null ? null : standardName.trim();
68
+    }
69
+
70
+    /**
71
+     * null
72
+     * @return sub_type null
73
+     */
74
+    public Integer getSubType() {
75
+        return subType;
76
+    }
77
+
78
+    /**
79
+     * null
80
+     * @param subType null
81
+     */
82
+    public void setSubType(Integer subType) {
83
+        this.subType = subType;
84
+    }
85
+
86
+    /**
87
+     * null
88
+     * @return open_not null
89
+     */
90
+    public Integer getOpenNot() {
91
+        return openNot;
92
+    }
93
+
94
+    /**
95
+     * null
96
+     * @param openNot null
97
+     */
98
+    public void setOpenNot(Integer openNot) {
99
+        this.openNot = openNot;
100
+    }
101
+
102
+    /**
103
+     * null
104
+     * @return creater null
105
+     */
106
+    public String getCreater() {
107
+        return creater;
108
+    }
109
+
110
+    /**
111
+     * null
112
+     * @param creater null
113
+     */
114
+    public void setCreater(String creater) {
115
+        this.creater = creater == null ? null : creater.trim();
116
+    }
117
+
118
+    /**
119
+     * null
120
+     * @return createtime null
121
+     */
122
+    public Date getCreatetime() {
123
+        return createtime;
124
+    }
125
+
126
+    /**
127
+     * null
128
+     * @param createtime null
129
+     */
130
+    public void setCreatetime(Date createtime) {
131
+        this.createtime = createtime;
132
+    }
133
+
134
+    /**
135
+     * null
136
+     * @return updatetime null
137
+     */
138
+    public Date getUpdatetime() {
139
+        return updatetime;
140
+    }
141
+
142
+    /**
143
+     * null
144
+     * @param updatetime null
145
+     */
146
+    public void setUpdatetime(Date updatetime) {
147
+        this.updatetime = updatetime;
148
+    }
149
+}

+ 729 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardMainExample.java

@@ -0,0 +1,729 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.Date;
5
+import java.util.List;
6
+
7
+public class StorageQualitystandardMainExample {
8
+    /**
9
+     * storage_qualitystandard_main
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * storage_qualitystandard_main
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * storage_qualitystandard_main
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public StorageQualitystandardMainExample() {
24
+        oredCriteria = new ArrayList<Criteria>();
25
+    }
26
+
27
+    public void setOrderByClause(String orderByClause) {
28
+        this.orderByClause = orderByClause;
29
+    }
30
+
31
+    public String getOrderByClause() {
32
+        return orderByClause;
33
+    }
34
+
35
+    public void setDistinct(boolean distinct) {
36
+        this.distinct = distinct;
37
+    }
38
+
39
+    public boolean isDistinct() {
40
+        return distinct;
41
+    }
42
+
43
+    public List<Criteria> getOredCriteria() {
44
+        return oredCriteria;
45
+    }
46
+
47
+    public void or(Criteria criteria) {
48
+        oredCriteria.add(criteria);
49
+    }
50
+
51
+    public Criteria or() {
52
+        Criteria criteria = createCriteriaInternal();
53
+        oredCriteria.add(criteria);
54
+        return criteria;
55
+    }
56
+
57
+    public Criteria createCriteria() {
58
+        Criteria criteria = createCriteriaInternal();
59
+        if (oredCriteria.size() == 0) {
60
+            oredCriteria.add(criteria);
61
+        }
62
+        return criteria;
63
+    }
64
+
65
+    protected Criteria createCriteriaInternal() {
66
+        Criteria criteria = new Criteria();
67
+        return criteria;
68
+    }
69
+
70
+    public void clear() {
71
+        oredCriteria.clear();
72
+        orderByClause = null;
73
+        distinct = false;
74
+    }
75
+
76
+    /**
77
+     * storage_qualitystandard_main 2021-04-16
78
+     */
79
+    protected abstract static class GeneratedCriteria {
80
+        protected List<Criterion> criteria;
81
+
82
+        protected GeneratedCriteria() {
83
+            super();
84
+            criteria = new ArrayList<Criterion>();
85
+        }
86
+
87
+        public boolean isValid() {
88
+            return criteria.size() > 0;
89
+        }
90
+
91
+        public List<Criterion> getAllCriteria() {
92
+            return criteria;
93
+        }
94
+
95
+        public List<Criterion> getCriteria() {
96
+            return criteria;
97
+        }
98
+
99
+        protected void addCriterion(String condition) {
100
+            if (condition == null) {
101
+                throw new RuntimeException("Value for condition cannot be null");
102
+            }
103
+            criteria.add(new Criterion(condition));
104
+        }
105
+
106
+        protected void addCriterion(String condition, Object value, String property) {
107
+            if (value == null) {
108
+                throw new RuntimeException("Value for " + property + " cannot be null");
109
+            }
110
+            criteria.add(new Criterion(condition, value));
111
+        }
112
+
113
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
114
+            if (value1 == null || value2 == null) {
115
+                throw new RuntimeException("Between values for " + property + " cannot be null");
116
+            }
117
+            criteria.add(new Criterion(condition, value1, value2));
118
+        }
119
+
120
+        public Criteria andIdIsNull() {
121
+            addCriterion("id is null");
122
+            return (Criteria) this;
123
+        }
124
+
125
+        public Criteria andIdIsNotNull() {
126
+            addCriterion("id is not null");
127
+            return (Criteria) this;
128
+        }
129
+
130
+        public Criteria andIdEqualTo(String value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(String value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(String value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(String value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(String value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(String value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdLike(String value) {
161
+            addCriterion("id like", value, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotLike(String value) {
166
+            addCriterion("id not like", value, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdIn(List<String> values) {
171
+            addCriterion("id in", values, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotIn(List<String> values) {
176
+            addCriterion("id not in", values, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andIdBetween(String value1, String value2) {
181
+            addCriterion("id between", value1, value2, "id");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andIdNotBetween(String value1, String value2) {
186
+            addCriterion("id not between", value1, value2, "id");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andOrgIdIsNull() {
191
+            addCriterion("org_id is null");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andOrgIdIsNotNull() {
196
+            addCriterion("org_id is not null");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andOrgIdEqualTo(Integer value) {
201
+            addCriterion("org_id =", value, "orgId");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andOrgIdNotEqualTo(Integer value) {
206
+            addCriterion("org_id <>", value, "orgId");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andOrgIdGreaterThan(Integer value) {
211
+            addCriterion("org_id >", value, "orgId");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
216
+            addCriterion("org_id >=", value, "orgId");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andOrgIdLessThan(Integer value) {
221
+            addCriterion("org_id <", value, "orgId");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
226
+            addCriterion("org_id <=", value, "orgId");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andOrgIdIn(List<Integer> values) {
231
+            addCriterion("org_id in", values, "orgId");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andOrgIdNotIn(List<Integer> values) {
236
+            addCriterion("org_id not in", values, "orgId");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
241
+            addCriterion("org_id between", value1, value2, "orgId");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
246
+            addCriterion("org_id not between", value1, value2, "orgId");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andStandardNameIsNull() {
251
+            addCriterion("standard_name is null");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andStandardNameIsNotNull() {
256
+            addCriterion("standard_name is not null");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andStandardNameEqualTo(String value) {
261
+            addCriterion("standard_name =", value, "standardName");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andStandardNameNotEqualTo(String value) {
266
+            addCriterion("standard_name <>", value, "standardName");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andStandardNameGreaterThan(String value) {
271
+            addCriterion("standard_name >", value, "standardName");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andStandardNameGreaterThanOrEqualTo(String value) {
276
+            addCriterion("standard_name >=", value, "standardName");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andStandardNameLessThan(String value) {
281
+            addCriterion("standard_name <", value, "standardName");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andStandardNameLessThanOrEqualTo(String value) {
286
+            addCriterion("standard_name <=", value, "standardName");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andStandardNameLike(String value) {
291
+            addCriterion("standard_name like", value, "standardName");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andStandardNameNotLike(String value) {
296
+            addCriterion("standard_name not like", value, "standardName");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andStandardNameIn(List<String> values) {
301
+            addCriterion("standard_name in", values, "standardName");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andStandardNameNotIn(List<String> values) {
306
+            addCriterion("standard_name not in", values, "standardName");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andStandardNameBetween(String value1, String value2) {
311
+            addCriterion("standard_name between", value1, value2, "standardName");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andStandardNameNotBetween(String value1, String value2) {
316
+            addCriterion("standard_name not between", value1, value2, "standardName");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andSubTypeIsNull() {
321
+            addCriterion("sub_type is null");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andSubTypeIsNotNull() {
326
+            addCriterion("sub_type is not null");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andSubTypeEqualTo(Integer value) {
331
+            addCriterion("sub_type =", value, "subType");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andSubTypeNotEqualTo(Integer value) {
336
+            addCriterion("sub_type <>", value, "subType");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andSubTypeGreaterThan(Integer value) {
341
+            addCriterion("sub_type >", value, "subType");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andSubTypeGreaterThanOrEqualTo(Integer value) {
346
+            addCriterion("sub_type >=", value, "subType");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andSubTypeLessThan(Integer value) {
351
+            addCriterion("sub_type <", value, "subType");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andSubTypeLessThanOrEqualTo(Integer value) {
356
+            addCriterion("sub_type <=", value, "subType");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andSubTypeIn(List<Integer> values) {
361
+            addCriterion("sub_type in", values, "subType");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andSubTypeNotIn(List<Integer> values) {
366
+            addCriterion("sub_type not in", values, "subType");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andSubTypeBetween(Integer value1, Integer value2) {
371
+            addCriterion("sub_type between", value1, value2, "subType");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andSubTypeNotBetween(Integer value1, Integer value2) {
376
+            addCriterion("sub_type not between", value1, value2, "subType");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andOpenNotIsNull() {
381
+            addCriterion("open_not is null");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andOpenNotIsNotNull() {
386
+            addCriterion("open_not is not null");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andOpenNotEqualTo(Integer value) {
391
+            addCriterion("open_not =", value, "openNot");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andOpenNotNotEqualTo(Integer value) {
396
+            addCriterion("open_not <>", value, "openNot");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andOpenNotGreaterThan(Integer value) {
401
+            addCriterion("open_not >", value, "openNot");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andOpenNotGreaterThanOrEqualTo(Integer value) {
406
+            addCriterion("open_not >=", value, "openNot");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andOpenNotLessThan(Integer value) {
411
+            addCriterion("open_not <", value, "openNot");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andOpenNotLessThanOrEqualTo(Integer value) {
416
+            addCriterion("open_not <=", value, "openNot");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andOpenNotIn(List<Integer> values) {
421
+            addCriterion("open_not in", values, "openNot");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andOpenNotNotIn(List<Integer> values) {
426
+            addCriterion("open_not not in", values, "openNot");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andOpenNotBetween(Integer value1, Integer value2) {
431
+            addCriterion("open_not between", value1, value2, "openNot");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andOpenNotNotBetween(Integer value1, Integer value2) {
436
+            addCriterion("open_not not between", value1, value2, "openNot");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andCreaterIsNull() {
441
+            addCriterion("creater is null");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andCreaterIsNotNull() {
446
+            addCriterion("creater is not null");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andCreaterEqualTo(String value) {
451
+            addCriterion("creater =", value, "creater");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andCreaterNotEqualTo(String value) {
456
+            addCriterion("creater <>", value, "creater");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andCreaterGreaterThan(String value) {
461
+            addCriterion("creater >", value, "creater");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andCreaterGreaterThanOrEqualTo(String value) {
466
+            addCriterion("creater >=", value, "creater");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andCreaterLessThan(String value) {
471
+            addCriterion("creater <", value, "creater");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andCreaterLessThanOrEqualTo(String value) {
476
+            addCriterion("creater <=", value, "creater");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andCreaterLike(String value) {
481
+            addCriterion("creater like", value, "creater");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andCreaterNotLike(String value) {
486
+            addCriterion("creater not like", value, "creater");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andCreaterIn(List<String> values) {
491
+            addCriterion("creater in", values, "creater");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andCreaterNotIn(List<String> values) {
496
+            addCriterion("creater not in", values, "creater");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andCreaterBetween(String value1, String value2) {
501
+            addCriterion("creater between", value1, value2, "creater");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andCreaterNotBetween(String value1, String value2) {
506
+            addCriterion("creater not between", value1, value2, "creater");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andCreatetimeIsNull() {
511
+            addCriterion("createtime is null");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andCreatetimeIsNotNull() {
516
+            addCriterion("createtime is not null");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andCreatetimeEqualTo(Date value) {
521
+            addCriterion("createtime =", value, "createtime");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andCreatetimeNotEqualTo(Date value) {
526
+            addCriterion("createtime <>", value, "createtime");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andCreatetimeGreaterThan(Date value) {
531
+            addCriterion("createtime >", value, "createtime");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
536
+            addCriterion("createtime >=", value, "createtime");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andCreatetimeLessThan(Date value) {
541
+            addCriterion("createtime <", value, "createtime");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
546
+            addCriterion("createtime <=", value, "createtime");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andCreatetimeIn(List<Date> values) {
551
+            addCriterion("createtime in", values, "createtime");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andCreatetimeNotIn(List<Date> values) {
556
+            addCriterion("createtime not in", values, "createtime");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andCreatetimeBetween(Date value1, Date value2) {
561
+            addCriterion("createtime between", value1, value2, "createtime");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
566
+            addCriterion("createtime not between", value1, value2, "createtime");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andUpdatetimeIsNull() {
571
+            addCriterion("updatetime is null");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andUpdatetimeIsNotNull() {
576
+            addCriterion("updatetime is not null");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andUpdatetimeEqualTo(Date value) {
581
+            addCriterion("updatetime =", value, "updatetime");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
586
+            addCriterion("updatetime <>", value, "updatetime");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andUpdatetimeGreaterThan(Date value) {
591
+            addCriterion("updatetime >", value, "updatetime");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
596
+            addCriterion("updatetime >=", value, "updatetime");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andUpdatetimeLessThan(Date value) {
601
+            addCriterion("updatetime <", value, "updatetime");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
606
+            addCriterion("updatetime <=", value, "updatetime");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andUpdatetimeIn(List<Date> values) {
611
+            addCriterion("updatetime in", values, "updatetime");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
616
+            addCriterion("updatetime not in", values, "updatetime");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
621
+            addCriterion("updatetime between", value1, value2, "updatetime");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
626
+            addCriterion("updatetime not between", value1, value2, "updatetime");
627
+            return (Criteria) this;
628
+        }
629
+    }
630
+
631
+    /**
632
+     * storage_qualitystandard_main
633
+     */
634
+    public static class Criteria extends GeneratedCriteria {
635
+
636
+        protected Criteria() {
637
+            super();
638
+        }
639
+    }
640
+
641
+    /**
642
+     * storage_qualitystandard_main 2021-04-16
643
+     */
644
+    public static class Criterion {
645
+        private String condition;
646
+
647
+        private Object value;
648
+
649
+        private Object secondValue;
650
+
651
+        private boolean noValue;
652
+
653
+        private boolean singleValue;
654
+
655
+        private boolean betweenValue;
656
+
657
+        private boolean listValue;
658
+
659
+        private String typeHandler;
660
+
661
+        public String getCondition() {
662
+            return condition;
663
+        }
664
+
665
+        public Object getValue() {
666
+            return value;
667
+        }
668
+
669
+        public Object getSecondValue() {
670
+            return secondValue;
671
+        }
672
+
673
+        public boolean isNoValue() {
674
+            return noValue;
675
+        }
676
+
677
+        public boolean isSingleValue() {
678
+            return singleValue;
679
+        }
680
+
681
+        public boolean isBetweenValue() {
682
+            return betweenValue;
683
+        }
684
+
685
+        public boolean isListValue() {
686
+            return listValue;
687
+        }
688
+
689
+        public String getTypeHandler() {
690
+            return typeHandler;
691
+        }
692
+
693
+        protected Criterion(String condition) {
694
+            super();
695
+            this.condition = condition;
696
+            this.typeHandler = null;
697
+            this.noValue = true;
698
+        }
699
+
700
+        protected Criterion(String condition, Object value, String typeHandler) {
701
+            super();
702
+            this.condition = condition;
703
+            this.value = value;
704
+            this.typeHandler = typeHandler;
705
+            if (value instanceof List<?>) {
706
+                this.listValue = true;
707
+            } else {
708
+                this.singleValue = true;
709
+            }
710
+        }
711
+
712
+        protected Criterion(String condition, Object value) {
713
+            this(condition, value, null);
714
+        }
715
+
716
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
717
+            super();
718
+            this.condition = condition;
719
+            this.value = value;
720
+            this.secondValue = secondValue;
721
+            this.typeHandler = typeHandler;
722
+            this.betweenValue = true;
723
+        }
724
+
725
+        protected Criterion(String condition, Object value, Object secondValue) {
726
+            this(condition, value, secondValue, null);
727
+        }
728
+    }
729
+}

+ 149 - 221
src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardPreparation.java

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

Файловите разлики са ограничени, защото са твърде много
+ 403 - 943
src/main/java/com/chinaitop/depot/storage/model/StorageQualitystandardPreparationExample.java


+ 62 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageQualitystandardMainService.java

@@ -0,0 +1,62 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import javax.servlet.http.HttpServletRequest;
7
+
8
+import com.chinaitop.depot.storage.model.StorageQualitystandardMain;
9
+
10
+public interface StorageQualitystandardMainService {
11
+
12
+	/**
13
+	 * 数据集列表
14
+	 * @param lspz
15
+	 * @return
16
+	 * @throws Exception
17
+	 */
18
+	public List<StorageQualitystandardMain> getList(HttpServletRequest request, Integer lspz) throws Exception;
19
+
20
+	/**
21
+	 * 查询一条质量标准配置数据
22
+	 * 
23
+	 * @param id 数据ID
24
+	 * @return
25
+	 * @throws Exception
26
+	 */
27
+	public Map<String, Object> findByIdObj(String id) throws Exception;
28
+
29
+	/**
30
+	 * 查询一条质量标准配置数据
31
+	 * 
32
+	 * @param request
33
+	 * @param obj_main
34
+	 * @param obj
35
+	 * @throws Exception
36
+	 */
37
+	public void saveOrUpdate(HttpServletRequest request, String obj_main, String obj) throws Exception;
38
+
39
+	/**
40
+	 * 初始化对应品种的化验项初始数据
41
+	 * 
42
+	 * @param lspz 粮油品种
43
+	 * @return
44
+	 * @throws Exception
45
+	 */
46
+	public Map<String, Object> initObj(Integer lspz) throws Exception;
47
+
48
+	/**
49
+	 * 删除一条质量标准配置数据
50
+	 * 
51
+	 * @param id
52
+	 */
53
+	public void delete(String id) throws Exception;
54
+
55
+	/**
56
+	 * 根据粮油品种查询对应的最新的质量标准配置数据
57
+	 * 
58
+	 * @param lspz 粮食品种
59
+	 * @return
60
+	 */
61
+	public Map<String, Object> findLspzObjs(Integer lspz) throws Exception;
62
+}

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

@@ -1,18 +0,0 @@
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
-}

+ 231 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageQualitystandardMainServiceImpl.java

@@ -0,0 +1,231 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.util.ArrayList;
4
+import java.util.Date;
5
+import java.util.HashMap;
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+import javax.servlet.http.HttpServletRequest;
10
+
11
+import org.apache.commons.lang.ObjectUtils;
12
+import org.apache.commons.lang.StringUtils;
13
+import org.springframework.beans.factory.annotation.Autowired;
14
+import org.springframework.stereotype.Service;
15
+import org.springframework.transaction.annotation.Transactional;
16
+
17
+import com.chinaitop.depot.storage.mapper.StorageQualitystandardMainMapper;
18
+import com.chinaitop.depot.storage.mapper.StorageQualitystandardPreparationMapper;
19
+import com.chinaitop.depot.storage.model.StorageQualitystandardMain;
20
+import com.chinaitop.depot.storage.model.StorageQualitystandardMainExample;
21
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparation;
22
+import com.chinaitop.depot.storage.model.StorageQualitystandardPreparationExample;
23
+import com.chinaitop.depot.storage.service.StorageQualitystandardMainService;
24
+import com.chinaitop.depot.storage.utils.ParameterUtil;
25
+import com.fasterxml.jackson.core.type.TypeReference;
26
+import com.fasterxml.jackson.databind.ObjectMapper;
27
+
28
+@Service
29
+public class StorageQualitystandardMainServiceImpl implements StorageQualitystandardMainService {
30
+
31
+	@Autowired
32
+	private StorageQualitystandardMainMapper storageQualitystandardMainMapper;
33
+
34
+	@Autowired
35
+	private StorageQualitystandardPreparationMapper storageQualitystandardPreparationMapper;
36
+	
37
+	@Override
38
+	public List<StorageQualitystandardMain> getList(HttpServletRequest request, Integer lspz) throws Exception {
39
+
40
+		/* 获取单位 */
41
+		int org_id = Integer.parseInt(ObjectUtils.toString(request.getSession().getAttribute("orgId"), "0"));
42
+
43
+		/* 组装查询 */
44
+		StorageQualitystandardMainExample example = new StorageQualitystandardMainExample();
45
+		StorageQualitystandardMainExample.Criteria criteria = example.createCriteria();
46
+
47
+		/* 粮食品种 */
48
+		if (null != lspz) {
49
+			criteria.andSubTypeEqualTo(lspz);
50
+		}
51
+
52
+		/* 单位ID */
53
+		criteria.andOrgIdEqualTo(org_id);
54
+
55
+		/* 按照最后修改时间倒序排序 */
56
+		example.setOrderByClause(" updatetime desc");
57
+
58
+		/* 查询 */
59
+		List<StorageQualitystandardMain> list = storageQualitystandardMainMapper.selectByExample(example);
60
+
61
+		return list;
62
+	}
63
+
64
+	@Override
65
+	public Map<String, Object> findByIdObj(String id) throws Exception {
66
+		Map<String, Object> map = new HashMap<String, Object>();
67
+
68
+		/* 查询主表数据  */
69
+		StorageQualitystandardMain main = storageQualitystandardMainMapper.selectByPrimaryKey(id);
70
+		List<StorageQualitystandardPreparation> list = null;
71
+
72
+		if (null != main) {
73
+			String zid = main.getId();
74
+			StorageQualitystandardPreparationExample example = new StorageQualitystandardPreparationExample();
75
+			StorageQualitystandardPreparationExample.Criteria criteria = example.createCriteria();
76
+			criteria.andZIdEqualTo(zid);
77
+			list = storageQualitystandardPreparationMapper.selectByExample(example);
78
+
79
+		} else {
80
+			main = new StorageQualitystandardMain();
81
+			main.setCreatetime(new Date());
82
+			
83
+		}
84
+		map.put("obj_main", main);
85
+		map.put("obj", list);
86
+
87
+		return map;
88
+	}
89
+
90
+	@Override
91
+	public Map<String, Object> initObj(Integer lspz) throws Exception {
92
+
93
+		String lypz = lspz+"";
94
+
95
+		List<StorageQualitystandardPreparation> list = new ArrayList<StorageQualitystandardPreparation>();
96
+
97
+		if ("3164".equals(lypz) || "3165".equals(lypz) || "2777".equals(lypz) || "3166".equals(lypz) || "0".equals(lypz)) {
98
+
99
+			StorageQualitystandardPreparation obj = null;
100
+			for (int i = 3271; i < 3276; i++) {
101
+				obj = new StorageQualitystandardPreparation();
102
+				obj.setLevelUpdate(i);;
103
+				list.add(obj);
104
+			}
105
+
106
+		} else if ("7107".equals(lypz)) {//大米
107
+
108
+			/**
109
+			 * 初始化数据中的十条数据等级的等级
110
+			 * 规则,分别对应品种籼米(1~3级)、粳米(1~3级)、籼糯米(1~2级)、粳糯米(1~2级),共十个值
111
+			 */
112
+			int []dj = {3271, 3272, 3273, 3271, 3272, 3273, 3271, 3272, 3271, 3272};
113
+
114
+			StorageQualitystandardPreparation obj = null;
115
+			for (int i = 0; i < 10; i++) {
116
+
117
+				obj = new StorageQualitystandardPreparation();
118
+
119
+				if (i < 3) {//数组0~2是籼米
120
+
121
+					obj.setSubTypeDetailed(7047);
122
+
123
+				} else if (i > 2 && i < 6) {//数组3~5是粳米
124
+
125
+					obj.setSubTypeDetailed(7048);
126
+
127
+				} else if (i > 5 && i < 8) {//数组6~7是籼糯米
128
+
129
+					obj.setSubTypeDetailed(7105);
130
+
131
+				} else if (i > 7 && i < 10) {//数组8~9是粳糯米
132
+
133
+					obj.setSubTypeDetailed(7106);
134
+
135
+				}
136
+
137
+				obj.setLevelUpdate(dj[i]);
138
+
139
+				list.add(obj);
140
+			}
141
+
142
+		} else if ("7038".equals(lypz)) {//小麦粉
143
+			StorageQualitystandardPreparation obj = null;
144
+			for (int i = 3271; i < 3275; i++) {
145
+				obj = new StorageQualitystandardPreparation();
146
+				obj.setLevelUpdate(i);;
147
+				list.add(obj);
148
+			}
149
+		} else if ("7072".equals(lypz)) {//成品大豆油
150
+			StorageQualitystandardPreparation obj = null;
151
+			for (int i = 3271; i < 3274; i++) {
152
+				obj = new StorageQualitystandardPreparation();
153
+				obj.setLevelUpdate(i);;
154
+				list.add(obj);
155
+			}
156
+		}
157
+
158
+		Map<String, Object> map = new HashMap<String, Object>();
159
+		map.put("initdata", list);
160
+
161
+		return map;
162
+	}
163
+
164
+	@Override
165
+	@Transactional
166
+	public void saveOrUpdate(HttpServletRequest request, String obj_main, String obj) throws Exception {
167
+		String org_id = ObjectUtils.toString(request.getSession().getAttribute("orgId"), "0");
168
+		ObjectMapper mapper = new ObjectMapper();
169
+		StorageQualitystandardMain storageQualitystandardMain = mapper.readValue(obj_main, StorageQualitystandardMain.class);
170
+		List<StorageQualitystandardPreparation> obj_list = mapper.readValue(obj, new TypeReference<List<StorageQualitystandardPreparation>>(){});
171
+		String id = storageQualitystandardMain.getId();
172
+		if (StringUtils.isNotBlank(id)) {//修改
173
+			storageQualitystandardMain.setUpdatetime(new Date());
174
+			storageQualitystandardMainMapper.updateByPrimaryKeySelective(storageQualitystandardMain);
175
+			for (StorageQualitystandardPreparation main : obj_list) {
176
+				storageQualitystandardPreparationMapper.updateByPrimaryKeySelective(main);
177
+			}
178
+		} else {//新增
179
+			id = ParameterUtil.getUuid();
180
+			storageQualitystandardMain.setId(id);
181
+			storageQualitystandardMain.setOrgId(Integer.parseInt(org_id));
182
+			storageQualitystandardMain.setUpdatetime(new Date());
183
+			storageQualitystandardMainMapper.insertSelective(storageQualitystandardMain);
184
+			for (StorageQualitystandardPreparation main : obj_list) {
185
+				main.setId(ParameterUtil.getUuid());
186
+				main.setzId(id);
187
+				main.setOrgId(Integer.parseInt(org_id));
188
+				storageQualitystandardPreparationMapper.insertSelective(main);
189
+			}
190
+		}
191
+	}
192
+
193
+	@Override
194
+	@Transactional
195
+	public void delete(String id) throws Exception {
196
+
197
+		/* 删除主表数据  */
198
+		storageQualitystandardMainMapper.deleteByPrimaryKey(id);
199
+
200
+		/* 删除子表数据  */
201
+		StorageQualitystandardPreparationExample example = new StorageQualitystandardPreparationExample();
202
+		StorageQualitystandardPreparationExample.Criteria criteria = example.createCriteria();
203
+		criteria.andZIdEqualTo(id);
204
+		storageQualitystandardPreparationMapper.deleteByExample(example);
205
+	}
206
+
207
+	@Override
208
+	public Map<String, Object> findLspzObjs(Integer lspz) throws Exception {
209
+		Map<String, Object> map = new HashMap<String, Object>();
210
+
211
+		StorageQualitystandardMainExample main_example = new StorageQualitystandardMainExample();
212
+		StorageQualitystandardMainExample.Criteria main_criteria = main_example.createCriteria();
213
+		main_criteria.andSubTypeEqualTo(lspz);
214
+		main_example.setOrderByClause(" updatetime desc");
215
+		List<StorageQualitystandardMain> main_list = storageQualitystandardMainMapper.selectByExample(main_example);
216
+		String zid = "";
217
+		if (null != main_list && main_list.size() > 0) {
218
+			zid = main_list.get(0).getId();
219
+		}
220
+
221
+		StorageQualitystandardPreparationExample example = new StorageQualitystandardPreparationExample();
222
+		StorageQualitystandardPreparationExample.Criteria criteria = example.createCriteria();
223
+		criteria.andZIdEqualTo(zid);
224
+		List<StorageQualitystandardPreparation> obj_list = storageQualitystandardPreparationMapper.selectByExample(example);
225
+		map.put("obj_list", obj_list);
226
+
227
+		return map;
228
+	}
229
+
230
+
231
+}

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

@@ -1,46 +0,0 @@
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
-}

+ 12 - 2
src/main/java/com/chinaitop/depot/storage/utils/ParameterUtil.java

@@ -7,6 +7,9 @@ import java.text.SimpleDateFormat;
7 7
 import java.util.Date;
8 8
 import java.util.List;
9 9
 import java.util.Properties;
10
+import java.util.UUID;
11
+
12
+import org.apache.commons.lang.StringUtils;
10 13
 
11 14
 public class ParameterUtil {
12 15
 
@@ -93,8 +96,10 @@ public class ParameterUtil {
93 96
     }
94 97
 
95 98
     public static void main(String[] args) {
96
-        System.out.println(stampToDate("1504689208643"));
97
-        System.out.println(getTimeStamp(getSysDateTime()));
99
+//        System.out.println(stampToDate("1504689208643"));
100
+//        System.out.println(getTimeStamp(getSysDateTime()));
101
+        String a = null;
102
+        System.out.println(StringUtils.isNotBlank(a));
98 103
     }
99 104
     public static String getBHS(String BHS){
100 105
         String[] str = BHS.split(",");
@@ -167,5 +172,10 @@ public class ParameterUtil {
167 172
         }
168 173
         return props;
169 174
     }
175
+    
176
+    public static String getUuid() {
177
+    	String uuid = UUID.randomUUID().toString().trim().replaceAll("-", "");
178
+    	return uuid;
179
+    }
170 180
 
171 181
 }