jidj 6 년 전
부모
커밋
29fd128d07
100개의 변경된 파일40956개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Dockerfile
  2. 199 0
      pom.xml
  3. 165 0
      src/main/java/com/chinaitop/DatePermissionInterceptor.java
  4. 18 0
      src/main/java/com/chinaitop/DepotQualitycheckApplication.java
  5. 12 0
      src/main/java/com/chinaitop/HelloWebXml.java
  6. 34 0
      src/main/java/com/chinaitop/SwaggerConfig.java
  7. 523 0
      src/main/java/com/chinaitop/depot/storage/controller/JkqCrkController.java
  8. 645 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageChangeStoragehouseTaskController.java
  9. 214 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageDumpController.java
  10. 115 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageFoodbasicInfoCheckController.java
  11. 248 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageFoodbasicInfoController.java
  12. 147 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageFoodbasicInfoLocationController.java
  13. 271 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageOverheadSetController.java
  14. 127 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageQualityEventController.java
  15. 690 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckController.java
  16. 80 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckSonController.java
  17. 78 0
      src/main/java/com/chinaitop/depot/storage/controller/StorageStorehouseBusinessController.java
  18. 35 0
      src/main/java/com/chinaitop/depot/storage/mapper/BusinessFileMapper.java
  19. 338 0
      src/main/java/com/chinaitop/depot/storage/mapper/BusinessFileMapper.xml
  20. 32 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskDetailMapper.java
  21. 410 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskDetailMapper.xml
  22. 30 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskMapper.java
  23. 481 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskMapper.xml
  24. 30 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseWorkTaskMapper.java
  25. 385 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseWorkTaskMapper.xml
  26. 39 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageDumpMapper.java
  27. 440 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageDumpMapper.xml
  28. 31 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoCheckMapper.java
  29. 228 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoCheckMapper.xml
  30. 35 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoLocationMapper.java
  31. 336 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoLocationMapper.xml
  32. 35 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicinfoMapper.java
  33. 1010 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicinfoMapper.xml
  34. 32 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqApplyDefaultMapper.java
  35. 331 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqApplyDefaultMapper.xml
  36. 38 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqDefaultMapper.java
  37. 386 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqDefaultMapper.xml
  38. 36 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageOverheadSetMapper.java
  39. 327 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageOverheadSetMapper.xml
  40. 30 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualityEventMapper.java
  41. 291 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualityEventMapper.xml
  42. 67 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.java
  43. 1797 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml
  44. 37 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckSonMapper.java
  45. 215 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckSonMapper.xml
  46. 42 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageStorehouseBusinessMapper.java
  47. 400 0
      src/main/java/com/chinaitop/depot/storage/mapper/StorageStorehouseBusinessMapper.xml
  48. 239 0
      src/main/java/com/chinaitop/depot/storage/model/BusinessFile.java
  49. 1069 0
      src/main/java/com/chinaitop/depot/storage/model/BusinessFileExample.java
  50. 404 0
      src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTask.java
  51. 314 0
      src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTaskDetail.java
  52. 1260 0
      src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTaskDetailExample.java
  53. 1630 0
      src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTaskExample.java
  54. 296 0
      src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseWorkTask.java
  55. 1190 0
      src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseWorkTaskExample.java
  56. 330 0
      src/main/java/com/chinaitop/depot/storage/model/StorageDump.java
  57. 1330 0
      src/main/java/com/chinaitop/depot/storage/model/StorageDumpExample.java
  58. 111 0
      src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoCheck.java
  59. 578 0
      src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoCheckExample.java
  60. 225 0
      src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoLocation.java
  61. 909 0
      src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoLocationExample.java
  62. 902 0
      src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicinfo.java
  63. 3350 0
      src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicinfoExample.java
  64. 223 0
      src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqApplyDefault.java
  65. 969 0
      src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqApplyDefaultExample.java
  66. 205 0
      src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqDefault.java
  67. 929 0
      src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqDefaultExample.java
  68. 167 0
      src/main/java/com/chinaitop/depot/storage/model/StorageOverheadSet.java
  69. 769 0
      src/main/java/com/chinaitop/depot/storage/model/StorageOverheadSetExample.java
  70. 185 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualityEvent.java
  71. 849 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualityEventExample.java
  72. 1663 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheck.java
  73. 5969 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckExample.java
  74. 75 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckSon.java
  75. 468 0
      src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckSonExample.java
  76. 239 0
      src/main/java/com/chinaitop/depot/storage/model/StorageStorehouseBusiness.java
  77. 1018 0
      src/main/java/com/chinaitop/depot/storage/model/StorageStorehouseBusinessExample.java
  78. 209 0
      src/main/java/com/chinaitop/depot/storage/model/vo/StorageQualitycheckVo.java
  79. 29 0
      src/main/java/com/chinaitop/depot/storage/quartz/StorageHouseBusinessQuartz.java
  80. 37 0
      src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseTaskDetailService.java
  81. 42 0
      src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseTaskService.java
  82. 26 0
      src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseWorkTaskService.java
  83. 41 0
      src/main/java/com/chinaitop/depot/storage/service/StorageDumpService.java
  84. 30 0
      src/main/java/com/chinaitop/depot/storage/service/StorageFoodbasicInfoCheckService.java
  85. 36 0
      src/main/java/com/chinaitop/depot/storage/service/StorageFoodbasicInfoLocationService.java
  86. 55 0
      src/main/java/com/chinaitop/depot/storage/service/StorageFoodbasicInfoService.java
  87. 47 0
      src/main/java/com/chinaitop/depot/storage/service/StorageKcglJkqyqApplyDefaultService.java
  88. 44 0
      src/main/java/com/chinaitop/depot/storage/service/StorageOverheadSetService.java
  89. 39 0
      src/main/java/com/chinaitop/depot/storage/service/StorageQualityEventService.java
  90. 121 0
      src/main/java/com/chinaitop/depot/storage/service/StorageQualitycheckService.java
  91. 33 0
      src/main/java/com/chinaitop/depot/storage/service/StorageQualitycheckSonService.java
  92. 94 0
      src/main/java/com/chinaitop/depot/storage/service/StorageStorehouseBusinessService.java
  93. 59 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseTaskDetailServiceImpl.java
  94. 108 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseTaskServiceImpl.java
  95. 40 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseWorkTaskServiceImpl.java
  96. 55 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageDumpServiceImpl.java
  97. 38 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageFoodbasicInfoCheckServiceImpl.java
  98. 46 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageFoodbasicInfoLocationServiceImpl.java
  99. 367 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageFoodbasicInfoServiceImpl.java
  100. 0 0
      src/main/java/com/chinaitop/depot/storage/service/impl/StorageKcglJkqyqApplyDefaultServiceImpl.java

+ 5 - 0
Dockerfile

@@ -0,0 +1,5 @@
1
+FROM 192.168.123.25:31104/unis/java:8
2
+
3
+ADD ./target/depot-qualitycheck.jar /root
4
+CMD ["sh", "-c", "cd /root; java -Djava.security.egd=file:/dev/./urandom -jar /root/depot-qualitycheck.jar --depot-qualitycheck.server.enable-self-preservation=false"]
5
+EXPOSE 9010

+ 199 - 0
pom.xml

@@ -0,0 +1,199 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
+	<modelVersion>4.0.0</modelVersion>
5
+
6
+	<groupId>com.chinaitop</groupId>
7
+	<artifactId>depot-qualitycheck</artifactId>
8
+	<version>0.0.1-SNAPSHOT</version>
9
+	<packaging>jar</packaging>
10
+
11
+	<name>depot-qualitycheck</name>
12
+	<description>Demo project for Spring Boot</description>
13
+
14
+	<parent>
15
+		<groupId>org.springframework.boot</groupId>
16
+		<artifactId>spring-boot-starter-parent</artifactId>
17
+		<version>2.0.2.RELEASE</version>
18
+		<relativePath/> <!-- lookup parent from repository -->
19
+	</parent>
20
+
21
+	<properties>
22
+		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
23
+		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
24
+		<java.version>1.8</java.version>
25
+		<spring-cloud.version>Finchley.RELEASE</spring-cloud.version>
26
+	</properties>
27
+
28
+	<dependencies>
29
+		<dependency>
30
+			<groupId>org.springframework.boot</groupId>
31
+			<artifactId>spring-boot-starter-web</artifactId>
32
+		</dependency>
33
+		<dependency>
34
+			<groupId>org.mybatis.spring.boot</groupId>
35
+			<artifactId>mybatis-spring-boot-starter</artifactId>
36
+			<version>1.3.1</version>
37
+		</dependency>
38
+		<!-- 引入spring boot自带的pagehelper插件 -->
39
+		<dependency>
40
+			<groupId>com.github.pagehelper</groupId>
41
+			<artifactId>pagehelper-spring-boot-starter</artifactId>
42
+			<version>1.2.3</version>
43
+		</dependency>
44
+		<dependency>
45
+			<groupId>org.springframework.cloud</groupId>
46
+			<artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
47
+		</dependency>
48
+		<dependency>
49
+			<groupId>org.springframework.cloud</groupId>
50
+			<artifactId>spring-cloud-starter-config</artifactId>
51
+		</dependency>
52
+
53
+		<dependency>
54
+			<groupId>org.apache.commons</groupId>
55
+			<artifactId>commons-lang3</artifactId>
56
+			<version>3.7</version>
57
+		</dependency>
58
+
59
+		<!--log4j-->
60
+		<dependency>
61
+			<groupId>log4j</groupId>
62
+			<artifactId>log4j</artifactId>
63
+			<version>1.2.17</version>
64
+		</dependency>
65
+
66
+		<dependency>
67
+			<groupId>org.springframework.boot</groupId>
68
+			<artifactId>spring-boot-starter-data-redis</artifactId>
69
+		</dependency>
70
+		<dependency>
71
+			<groupId>org.springframework.session</groupId>
72
+			<artifactId>spring-session-data-redis</artifactId>
73
+		</dependency>
74
+
75
+		<!-- 二维码包-->
76
+		<dependency>
77
+			<groupId>com.google.zxing</groupId>
78
+			<artifactId>core</artifactId>
79
+			<version>3.3.1</version>
80
+		</dependency>
81
+		<dependency>
82
+			<groupId>com.google.zxing</groupId>
83
+			<artifactId>javase</artifactId>
84
+			<version>3.3.1</version>
85
+		</dependency>
86
+		<!-- 二维码包end-->
87
+
88
+		<!-- swagger2 -->
89
+		<dependency>
90
+			<groupId>io.springfox</groupId>
91
+			<artifactId>springfox-swagger2</artifactId>
92
+			<version>2.6.1</version>
93
+		</dependency>
94
+		<dependency>
95
+			<groupId>io.springfox</groupId>
96
+			<artifactId>springfox-swagger-ui</artifactId>
97
+			<version>2.6.1</version>
98
+		</dependency>
99
+
100
+		<dependency>
101
+			<groupId>mysql</groupId>
102
+			<artifactId>mysql-connector-java</artifactId>
103
+		</dependency>
104
+		<dependency>
105
+			<groupId>org.springframework.boot</groupId>
106
+			<artifactId>spring-boot-starter-test</artifactId>
107
+			<scope>test</scope>
108
+		</dependency>
109
+		<!-- 加载mybatis逆向生成工具包 -->
110
+        <dependency>
111
+		    <groupId>org.mybatis.generator</groupId>
112
+		    <artifactId>mybatis-generator-core</artifactId>
113
+		    <!-- 注意版本.这里我使用的是1.3.2 -->
114
+		    <version>1.3.2</version>
115
+		</dependency>
116
+		<!-- 调用webService的cxf jar包 -->
117
+		<dependency>
118
+			<groupId>org.apache.cxf</groupId>
119
+			<artifactId>cxf-rt-frontend-jaxws</artifactId>
120
+			<version>3.3.2</version>
121
+		</dependency>
122
+		<dependency>
123
+			<groupId>org.apache.cxf</groupId>
124
+				<artifactId>cxf-rt-transports-http</artifactId>
125
+				<version>3.3.2</version>
126
+		</dependency>
127
+		<dependency>
128
+			<groupId>org.apache.cxf</groupId>
129
+			<artifactId>cxf-rt-transports-http-jetty</artifactId>
130
+			<version>3.3.2</version>
131
+		</dependency>
132
+		<!-- JSONObject jar包 -->
133
+		<dependency>
134
+		    <groupId>net.sf.json-lib</groupId>    
135
+		    <artifactId>json-lib</artifactId>    
136
+		    <version>2.4</version>    
137
+		    <classifier>jdk15</classifier>    
138
+		</dependency>
139
+		<!-- 阿里巴巴json -->
140
+		<dependency>
141
+		    <groupId>com.alibaba</groupId>
142
+		    <artifactId>fastjson</artifactId>
143
+		    <version>1.2.4</version>
144
+		</dependency>
145
+		<!-- httpclient -->
146
+		<dependency>
147
+			<groupId>org.apache.httpcomponents</groupId>
148
+			<artifactId>httpclient</artifactId>
149
+			<version>4.5.6</version>
150
+		</dependency>
151
+	</dependencies>
152
+
153
+	<dependencyManagement>
154
+		<dependencies>
155
+			<dependency>
156
+				<groupId>org.springframework.cloud</groupId>
157
+				<artifactId>spring-cloud-dependencies</artifactId>
158
+				<version>${spring-cloud.version}</version>
159
+				<type>pom</type>
160
+				<scope>import</scope>
161
+			</dependency>
162
+		</dependencies>
163
+	</dependencyManagement>
164
+
165
+	<build>
166
+		<finalName>${project.artifactId}</finalName>
167
+		<plugins>
168
+			<plugin>
169
+				<groupId>org.springframework.boot</groupId>
170
+				<artifactId>spring-boot-maven-plugin</artifactId>
171
+			</plugin>
172
+		</plugins>
173
+		<!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
174
+		<resources>
175
+			<resource>
176
+				<directory>src/main/java</directory>
177
+				<includes>
178
+					<include>**/*.properties</include>
179
+					<include>**/*.xml</include>
180
+				</includes>
181
+				<filtering>false</filtering>
182
+			</resource>
183
+			<resource>
184
+				<directory>src/main/resources</directory>
185
+			</resource>
186
+		</resources>
187
+	</build>
188
+
189
+	<repositories>
190
+		<repository>
191
+			<id>spring-milestones</id>
192
+			<name>Spring Milestones</name>
193
+			<url>https://repo.spring.io/milestone</url>
194
+			<snapshots>
195
+				<enabled>false</enabled>
196
+			</snapshots>
197
+		</repository>
198
+	</repositories>
199
+</project>

+ 165 - 0
src/main/java/com/chinaitop/DatePermissionInterceptor.java

@@ -0,0 +1,165 @@
1
+package com.chinaitop;
2
+
3
+import com.chinaitop.depot.storage.utils.DataPolicyEngine;
4
+import com.chinaitop.depot.storage.utils.RedisUtil;
5
+import net.sf.jsqlparser.parser.CCJSqlParserUtil;
6
+import net.sf.jsqlparser.statement.Statement;
7
+import net.sf.jsqlparser.statement.select.Select;
8
+import net.sf.jsqlparser.util.TablesNamesFinder;
9
+import org.apache.commons.lang.ObjectUtils;
10
+import org.apache.ibatis.executor.statement.StatementHandler;
11
+import org.apache.ibatis.mapping.BoundSql;
12
+import org.apache.ibatis.mapping.MappedStatement;
13
+import org.apache.ibatis.plugin.*;
14
+import org.apache.ibatis.reflection.DefaultReflectorFactory;
15
+import org.apache.ibatis.reflection.MetaObject;
16
+import org.apache.ibatis.reflection.ReflectorFactory;
17
+import org.apache.ibatis.reflection.factory.DefaultObjectFactory;
18
+import org.apache.ibatis.reflection.factory.ObjectFactory;
19
+import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory;
20
+import org.apache.ibatis.reflection.wrapper.ObjectWrapperFactory;
21
+import org.springframework.beans.factory.annotation.Autowired;
22
+import org.springframework.stereotype.Component;
23
+
24
+import java.lang.reflect.Field;
25
+import java.sql.Connection;
26
+import java.util.HashSet;
27
+import java.util.List;
28
+import java.util.Properties;
29
+import java.util.Set;
30
+
31
+/**
32
+ * Sql执行时间记录拦截器
33
+ */
34
+@Intercepts({ @Signature(type = StatementHandler.class, method = "prepare", args = { Connection.class, Integer.class })})
35
+@Component
36
+public class DatePermissionInterceptor implements Interceptor {
37
+	
38
+	private static final ObjectFactory DEFAULT_OBJECT_FACTORY = new DefaultObjectFactory();
39
+    private static final ObjectWrapperFactory DEFAULT_OBJECT_WRAPPER_FACTORY = new DefaultObjectWrapperFactory();
40
+    private static final ReflectorFactory DEFAULT_REFLECTOR_FACTORY = new DefaultReflectorFactory();
41
+
42
+	@Autowired
43
+	private RedisUtil redisUtil;
44
+	
45
+	@Override
46
+	public Object intercept(Invocation invocation) throws Throwable {
47
+		
48
+		StatementHandler statementHandler = (StatementHandler) invocation.getTarget();
49
+        MetaObject metaStatementHandler = MetaObject.forObject(statementHandler, DEFAULT_OBJECT_FACTORY,
50
+                DEFAULT_OBJECT_WRAPPER_FACTORY, DEFAULT_REFLECTOR_FACTORY);
51
+        
52
+        MappedStatement mappedStatement = (MappedStatement) metaStatementHandler.getValue("delegate.mappedStatement");
53
+        
54
+		final BoundSql boundSql = statementHandler.getBoundSql();
55
+		String bouString = boundSql.getSql();// 获取执行sql 
56
+		
57
+		//sql是查询的才进行权限过滤且不过滤t_url_config表的数据
58
+	    if(mappedStatement.getSqlCommandType().toString().equals("select".toUpperCase()) && 
59
+	    		!bouString.contains("t_url_config")) {
60
+			//通过本地线程获取库id
61
+			Object threadLocalObj = DataPolicyEngine.get();
62
+			String orgId = null;
63
+			if(threadLocalObj != null) {
64
+				orgId = ObjectUtils.toString(threadLocalObj);
65
+			}
66
+			if(orgId!=null) {
67
+				//机构单独查询时使用递归查询,可以查询机构下级机构
68
+				if("com.chinaitop.depot.system.mapper.OrgInfoMapper.selectByExample".equals(mappedStatement.getId())) {
69
+					bouString = bouString.replaceAll("org_info", "(SELECT * from org_info"
70
+							+ " WHERE FIND_IN_SET(org_id,getChildrenOrg("+orgId+"))) org_info ");
71
+				}else if(!"com.chinaitop.depot.storage.mapper.StorageStorehouseBusinessMapper.saveStorehouseBusinessFromFcbgz".equals(mappedStatement.getId())
72
+				&& !"com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper.getStoreQualityList".equals(mappedStatement.getId())
73
+				&& !"com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper.queryPrimaryKey".equals(mappedStatement.getId())
74
+				&& !"com.chinaitop.depot.storage.mapper.StorageQualitycheckSonMapper.selectByExample".equals(mappedStatement.getId())
75
+				&& !"com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper.getAllQualityMain".equals(mappedStatement.getId())
76
+				&& !"com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper.getAllQualityInfo".equals(mappedStatement.getId())
77
+				&& !"com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper.getAllFoodStocks".equals(mappedStatement.getId())){
78
+					//解析sql中的表名
79
+					Statement statement = CCJSqlParserUtil.parse(bouString);
80
+					Select selectStatement = (Select)statement;
81
+					TablesNamesFinder tablesNamesFinder = new TablesNamesFinder();
82
+					List<String> result = tablesNamesFinder.getTableList(selectStatement);
83
+					
84
+					Set<String> tableNames = new HashSet<String>();// 定义需要替换的table信息列表
85
+					//获取业务表信息数据
86
+					List<String> tableList = (List<String>)redisUtil.lGetAll("tableList").get(0);
87
+					for(int i=0;i<result.size();i++) {
88
+						for (int j = 0; j < tableList.size(); j++) {// 处理查看sql中是否有业务表
89
+							if (result.get(i).equals(ObjectUtils.toString(tableList.get(j)))) {// 是否存在业务表
90
+								tableNames.add(result.get(i));
91
+							}
92
+						}
93
+					}
94
+					
95
+					if (tableNames != null && tableNames.size() > 0) {// sql中存在业务表进行sql拼接数据重新检索
96
+						if(result.size() >= 2) {//sql中存在2张及以上表
97
+							for (String table : tableNames) {// 进行业务表的数据权限替换
98
+								table += " ";//表名后面加空格,防止两个表名一部分相似,导致替换出错
99
+								bouString = bouString.replaceAll(table, "(SELECT * from " + table
100
+										+ " WHERE org_id = '"+orgId+"') ");
101
+							}
102
+						}else {//sql中是单表
103
+							for (String table : tableNames) {// 进行业务表的数据权限替换
104
+								if(bouString.contains(table+" ")) {//防止是单表查询,表后面没有空格的时候替换不了
105
+									table += " ";//表名后面加空格,防止两个表名一部分相似,导致替换出错
106
+								}
107
+								bouString = bouString.replaceAll(table, "(SELECT * from " + table
108
+										+ " WHERE org_id = '"+orgId+"') "+table+" ");
109
+							}
110
+						}
111
+
112
+						/*bouString = bouString.replaceAll(table, "(SELECT b.* from " + table
113
+						+ " b,user_business u WHERE b.org_id = u.org_id AND u .user_id ='"+userId+"' AND u.business_type = '"+table+"') ");*/
114
+						
115
+					}
116
+				}
117
+				
118
+				
119
+				//metaStatementHandler.setValue("delegate.boundSql.sql", bouString);
120
+
121
+				Field field = getField(boundSql, "sql");
122
+				if (field != null) {
123
+					try {
124
+						field.setAccessible(true);
125
+						field.set(boundSql, bouString);
126
+					} catch (IllegalArgumentException e) {
127
+						// TODO Auto-generated catch block
128
+						e.printStackTrace();
129
+					} catch (IllegalAccessException e) {
130
+						// TODO Auto-generated catch block
131
+						e.printStackTrace();
132
+					}
133
+				}
134
+			}
135
+		
136
+	    }
137
+			
138
+		return invocation.proceed();
139
+		
140
+
141
+	}
142
+
143
+	private static Field getField(Object obj, String fieldName) {
144
+		Field field = null;
145
+		for (Class<?> clazz = obj.getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) {
146
+			try {
147
+				field = clazz.getDeclaredField(fieldName);
148
+				break;
149
+			} catch (NoSuchFieldException e) {
150
+				// 这里不用做处理,子类没有该字段可能对应的父类有,都没有就返回null。
151
+			}
152
+		}
153
+		return field;
154
+	}
155
+
156
+	@Override
157
+	public Object plugin(Object target) {
158
+		return Plugin.wrap(target, this);
159
+	}
160
+
161
+	@Override
162
+	public void setProperties(Properties properties) {
163
+	}
164
+
165
+}

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

@@ -0,0 +1,18 @@
1
+package com.chinaitop;
2
+
3
+import org.mybatis.spring.annotation.MapperScan;
4
+import org.springframework.boot.SpringApplication;
5
+import org.springframework.boot.autoconfigure.SpringBootApplication;
6
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
7
+import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
8
+
9
+@EnableEurekaClient
10
+@EnableDiscoveryClient
11
+@SpringBootApplication
12
+@MapperScan(basePackages = {"com.chinaitop.depot.*.mapper"})
13
+public class DepotQualitycheckApplication {
14
+
15
+	public static void main(String[] args) {
16
+		SpringApplication.run(DepotQualitycheckApplication.class, args);
17
+	}
18
+}

+ 12 - 0
src/main/java/com/chinaitop/HelloWebXml.java

@@ -0,0 +1,12 @@
1
+package com.chinaitop;
2
+ 
3
+import org.springframework.boot.builder.SpringApplicationBuilder;
4
+import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
5
+
6
+public class HelloWebXml extends SpringBootServletInitializer {
7
+    @Override
8
+    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
9
+        return application.sources(DepotQualitycheckApplication.class);
10
+    }
11
+ 
12
+}

+ 34 - 0
src/main/java/com/chinaitop/SwaggerConfig.java

@@ -0,0 +1,34 @@
1
+package com.chinaitop;
2
+
3
+import org.springframework.context.annotation.Bean;
4
+import org.springframework.context.annotation.Configuration;
5
+import springfox.documentation.builders.ApiInfoBuilder;
6
+import springfox.documentation.builders.PathSelectors;
7
+import springfox.documentation.builders.RequestHandlerSelectors;
8
+import springfox.documentation.service.ApiInfo;
9
+import springfox.documentation.spi.DocumentationType;
10
+import springfox.documentation.spring.web.plugins.Docket;
11
+import springfox.documentation.swagger2.annotations.EnableSwagger2;
12
+
13
+@Configuration
14
+@EnableSwagger2
15
+public class SwaggerConfig {
16
+
17
+    @Bean
18
+    public Docket createRestApi() {
19
+        return new Docket(DocumentationType.SWAGGER_2)
20
+                .apiInfo(apiInfo())
21
+                .select()
22
+                .apis(RequestHandlerSelectors.basePackage("com.chinaitop.depot.storage.controller"))
23
+                .paths(PathSelectors.any())
24
+                .build();
25
+    }
26
+    private ApiInfo apiInfo() {
27
+        return new ApiInfoBuilder()
28
+                .title("智能粮库管理平台api文档")
29
+                .description("质量管理")
30
+                .termsOfServiceUrl("http://10.10.1.25:9001")
31
+                .version("1.0")
32
+                .build();
33
+    }
34
+}

+ 523 - 0
src/main/java/com/chinaitop/depot/storage/controller/JkqCrkController.java

@@ -0,0 +1,523 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.io.IOException;
4
+import java.text.DateFormat;
5
+import java.text.ParseException;
6
+import java.text.SimpleDateFormat;
7
+import java.util.ArrayList;
8
+import java.util.Calendar;
9
+import java.util.Date;
10
+import java.util.HashMap;
11
+import java.util.List;
12
+import java.util.Map;
13
+
14
+import javax.annotation.Resource;
15
+import javax.servlet.http.HttpServletRequest;
16
+
17
+import org.springframework.beans.factory.annotation.Value;
18
+import org.springframework.http.MediaType;
19
+import org.springframework.web.bind.annotation.PostMapping;
20
+import org.springframework.web.bind.annotation.RequestMapping;
21
+import org.springframework.web.bind.annotation.RequestMethod;
22
+import org.springframework.web.bind.annotation.RestController;
23
+
24
+import com.alibaba.fastjson.JSONObject;
25
+import com.chinaitop.depot.storage.model.BusinessFile;
26
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault;
27
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample;
28
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault;
29
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample;
30
+import com.chinaitop.depot.storage.service.StorageKcglJkqyqApplyDefaultService;
31
+import com.chinaitop.depot.storage.utils.DateJsonValueProcessor;
32
+import com.chinaitop.depot.storage.utils.HTTPUtils;
33
+import com.chinaitop.depot.storage.utils.ParameterUtil;
34
+import com.fasterxml.jackson.core.type.TypeReference;
35
+import com.fasterxml.jackson.databind.ObjectMapper;
36
+import com.github.pagehelper.PageHelper;
37
+import com.github.pagehelper.PageInfo;
38
+
39
+import io.swagger.annotations.Api;
40
+import io.swagger.annotations.ApiImplicitParam;
41
+import io.swagger.annotations.ApiImplicitParams;
42
+import io.swagger.annotations.ApiOperation;
43
+import net.sf.json.JsonConfig;
44
+
45
+@RestController
46
+@RequestMapping(value="/JkqCrkController")
47
+@Api(value= "JkqCrkController", description = "架空期查询类")
48
+public class JkqCrkController {
49
+
50
+	
51
+	@Resource
52
+	private StorageKcglJkqyqApplyDefaultService storageKcglJkqyqApplyDefaultService;
53
+
54
+	// 获取出入库ip地址
55
+	@Value("${report-Url}")
56
+	private String changeUrl;
57
+	
58
+	@RequestMapping(value="/getApplyList", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
59
+	@ApiOperation(value="架空期申请查询", notes = "支持分页")
60
+	@ApiImplicitParams({
61
+		@ApiImplicitParam(name="pageNum", value = "页码", paramType = "query"),
62
+		@ApiImplicitParam(name="pageSize", value = "每页条数", paramType = "query"),
63
+		@ApiImplicitParam(name="isUpload", value = "状态", paramType = "query"),
64
+		@ApiImplicitParam(name="sqrqA", value = "申请日期始", paramType = "query"),
65
+		@ApiImplicitParam(name="sqrqB", value = "申请日期末", paramType = "query")
66
+	})
67
+	public PageInfo<StorageKcglJkqyqDefault> getApplyList(Integer pageNum, Integer pageSize,HttpServletRequest request,
68
+			String sqrqA, String sqrqB, Integer isUpload) {
69
+
70
+		StorageKcglJkqyqDefaultExample example = new StorageKcglJkqyqDefaultExample();
71
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample.Criteria criteria = example.createCriteria();
72
+		if (null != pageNum && null != pageSize) {
73
+			PageHelper.startPage(pageNum, pageSize);
74
+		}
75
+		//单位ID
76
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
77
+		if (null != orgId) {
78
+			criteria.andOrgIdEqualTo(orgId);
79
+		}
80
+		//申请日期
81
+		if(sqrqA != null && !"".equals(sqrqA)) {
82
+			Date starDate = ParameterUtil.string2datetime(sqrqA + " 00:00:00");
83
+			criteria.andSqrqGreaterThanOrEqualTo(starDate);
84
+		}
85
+		if(sqrqB != null && !"".equals(sqrqB)) {
86
+			Date starDate = ParameterUtil.string2datetime(sqrqB + " 23:59:59");
87
+			criteria.andSqrqLessThanOrEqualTo(starDate);
88
+		}
89
+		//状态
90
+		if(isUpload != null && !"".equals(isUpload)) {
91
+			criteria.andIsUploadEqualTo(isUpload);
92
+		}
93
+		example.setOrderByClause("create_date desc");
94
+		List<StorageKcglJkqyqDefault> list = null;
95
+		try {
96
+			list = storageKcglJkqyqApplyDefaultService.findByList(example);
97
+		} catch (Exception e) {
98
+			e.printStackTrace();
99
+		}
100
+		PageInfo<StorageKcglJkqyqDefault> pageInfo = new PageInfo<StorageKcglJkqyqDefault>(list);
101
+		return pageInfo;
102
+	}
103
+	@SuppressWarnings("unchecked")
104
+	@RequestMapping(value = "/add", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
105
+	@ApiOperation(value="新增架空期延期申请", notes = "新增架空期延期申请")
106
+	@ApiImplicitParams({
107
+			@ApiImplicitParam(name = "overFlag", value = "标志位(根据标志位区分新增与修改)", paramType = "form"),
108
+			@ApiImplicitParam(name = "overheadApplyJson", value = "JSON数据对象", paramType = "form"),
109
+			@ApiImplicitParam(name = "overheadAddDcslson", value = "JSON数据对象", paramType = "form")
110
+	})
111
+	public Map<String, Object> add(HttpServletRequest request,Integer overFlag, String overheadApplyJson, String overheadAddDcslson, String fileIds) {
112
+		Map<String, Object> modelMap = new HashMap<String, Object>();
113
+		Date date = new Date();
114
+		String yqsqNo = null;
115
+		String isUpload = null;
116
+		JSONObject overhear = null;
117
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
118
+		if (null != overheadApplyJson && !"".equals(overheadApplyJson)) {
119
+			overhear = JSONObject.parseObject(overheadApplyJson);
120
+			yqsqNo = (overhear.get("yqsqNo") == null?"":overhear.get("yqsqNo").toString());
121
+			isUpload = (overhear.get("isUpload") == null?"0":overhear.get("isUpload").toString());
122
+		}
123
+		try {
124
+			// JSON字符串转对象
125
+			if(overFlag == 0) {
126
+			ObjectMapper mapper = new ObjectMapper();
127
+			StorageKcglJkqyqDefault storageKcglJkqyqDefault = (StorageKcglJkqyqDefault) mapper.readValue(overheadApplyJson, StorageKcglJkqyqDefault.class);
128
+			storageKcglJkqyqDefault.setCreateDate(date);
129
+			storageKcglJkqyqDefault.setOrgId(orgId);
130
+			storageKcglJkqyqDefault.setIsUpload(0);
131
+			storageKcglJkqyqApplyDefaultService.addDataKcglJkqyqDefault(storageKcglJkqyqDefault);
132
+			StorageKcglJkqyqDefaultExample example = new StorageKcglJkqyqDefaultExample();
133
+			com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample.Criteria criteria = example.createCriteria();
134
+			if (orgId != null && !"".equals(orgId)) {
135
+				criteria.andOrgIdEqualTo(orgId);
136
+			}
137
+			if(yqsqNo !=null && !"".equals(yqsqNo)) {
138
+				criteria.andYqsqNoEqualTo(yqsqNo);
139
+			}
140
+			List<StorageKcglJkqyqDefault> list = storageKcglJkqyqApplyDefaultService.selectByExample(example);
141
+			Integer yqsqId = list.get(0).getId();
142
+			storageKcglJkqyqApplyDefaultService.updateFileByFileIdsAndBid(fileIds, yqsqId, "jkq");
143
+			//添加子表字段
144
+			List<StorageKcglJkqyqApplyDefault> StorageKcglJkqyqApplyDefaultList = null;
145
+			 if (overheadAddDcslson != null) {
146
+				 StorageKcglJkqyqApplyDefaultList = (List<StorageKcglJkqyqApplyDefault>)mapper.readValue(overheadAddDcslson, new TypeReference<List<StorageKcglJkqyqApplyDefault>>(){});
147
+	            }
148
+			// 新增子表.
149
+		        if (StorageKcglJkqyqApplyDefaultList != null && StorageKcglJkqyqApplyDefaultList.size() > 0) {
150
+		            for (StorageKcglJkqyqApplyDefault StorageKcglJkqyqApplyDefault : StorageKcglJkqyqApplyDefaultList) {
151
+		            	StorageKcglJkqyqApplyDefault.setOrgId(orgId);
152
+		            	StorageKcglJkqyqApplyDefault.setUpdatetime(date);
153
+		            	StorageKcglJkqyqApplyDefault.setYqsqNo(yqsqNo);
154
+		            	StorageKcglJkqyqApplyDefault.setIsUpload(Integer.parseInt(isUpload));
155
+		            	storageKcglJkqyqApplyDefaultService.addDataKcglJkqyqDefault1(StorageKcglJkqyqApplyDefault);
156
+		            }
157
+		        }
158
+			}else if(overFlag == 1){
159
+				ObjectMapper mapper = new ObjectMapper();
160
+				StorageKcglJkqyqDefault storageKcglJkqyqDefault = (StorageKcglJkqyqDefault) mapper.readValue(overheadApplyJson, StorageKcglJkqyqDefault.class);
161
+				storageKcglJkqyqDefault.setCreateDate(date);
162
+				storageKcglJkqyqDefault.setOrgId(orgId);
163
+				storageKcglJkqyqApplyDefaultService.updateDataKcglJkqyqDefault(storageKcglJkqyqDefault);
164
+				StorageKcglJkqyqDefaultExample example = new StorageKcglJkqyqDefaultExample();
165
+				com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample.Criteria criteria = example.createCriteria();
166
+				if (orgId != null && !"".equals(orgId)) {
167
+					criteria.andOrgIdEqualTo(orgId);
168
+				}
169
+				if(yqsqNo !=null && !"".equals(yqsqNo)) {
170
+					criteria.andYqsqNoEqualTo(yqsqNo);
171
+				}
172
+				List<StorageKcglJkqyqDefault> list = storageKcglJkqyqApplyDefaultService.selectByExample(example);
173
+				Integer yqsqId = list.get(0).getId();
174
+				storageKcglJkqyqApplyDefaultService.updateFileByFileIdsAndBid(fileIds, yqsqId, "jkq");
175
+				//添加子表字段
176
+				//添加子表字段
177
+				List<StorageKcglJkqyqApplyDefault> StorageKcglJkqyqApplyDefaultList = null;
178
+				 if (overheadAddDcslson != null) {
179
+					 StorageKcglJkqyqApplyDefaultList = (List<StorageKcglJkqyqApplyDefault>)mapper.readValue(overheadAddDcslson, new TypeReference<List<StorageKcglJkqyqApplyDefault>>(){});
180
+		            }
181
+				// 新增子表.
182
+			        if (StorageKcglJkqyqApplyDefaultList != null && StorageKcglJkqyqApplyDefaultList.size() > 0) {
183
+			            for (StorageKcglJkqyqApplyDefault StorageKcglJkqyqApplyDefaul : StorageKcglJkqyqApplyDefaultList) {
184
+			            	StorageKcglJkqyqApplyDefaul.setOrgId(orgId);
185
+			            	StorageKcglJkqyqApplyDefaul.setUpdatetime(date);
186
+			            	StorageKcglJkqyqApplyDefaul.setYqsqNo(yqsqNo);
187
+			            	storageKcglJkqyqApplyDefaultService.updateDataKcglJkqyqDefault1(StorageKcglJkqyqApplyDefaul);
188
+			            }
189
+			        }
190
+			}
191
+			modelMap.put("status", "success");
192
+		} catch (Exception e) {
193
+			e.printStackTrace();
194
+			modelMap.put("status", "error");
195
+			modelMap.put("msg", "保存失败!");
196
+		}
197
+		return modelMap;
198
+	}
199
+	@RequestMapping(value = "/findOverheadData",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
200
+	@ApiOperation(value="查询架空期数据列表", notes = "查询架空期信息列表")
201
+	@ApiImplicitParams({
202
+	@ApiImplicitParam(name = "applyNo", value = "架空期延期申请单号", paramType = "query"),
203
+	@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query")
204
+	})
205
+	public Map<String, Object> findOverheadData(String applyNo,Integer orgId){
206
+		Map<String, Object> modelMap = new HashMap<String, Object>();
207
+		StorageKcglJkqyqDefaultExample example = new StorageKcglJkqyqDefaultExample();
208
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample.Criteria criteria = example.createCriteria();
209
+		if(applyNo != null && !"".equals(applyNo)) {
210
+			criteria.andYqsqNoEqualTo(applyNo);
211
+		}
212
+		if(orgId != null && !"".equals(orgId)) {
213
+			criteria.andOrgIdEqualTo(orgId);
214
+		}
215
+		List<StorageKcglJkqyqDefault> list = storageKcglJkqyqApplyDefaultService.selectByExample(example);
216
+		modelMap.put("DataKcglJkqyqDefaultList", list);
217
+		StorageKcglJkqyqApplyDefaultExample detailExamle = new StorageKcglJkqyqApplyDefaultExample();
218
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample.Criteria detailCriteria = detailExamle.createCriteria();
219
+		if(applyNo != null && !"".equals(applyNo)) {
220
+			detailCriteria.andYqsqNoEqualTo(applyNo);
221
+		}
222
+		if(orgId != null && !"".equals(orgId)) {
223
+			detailCriteria.andOrgIdEqualTo(orgId);
224
+		}
225
+		List<StorageKcglJkqyqApplyDefault> detailList = storageKcglJkqyqApplyDefaultService.selectBy1Example(detailExamle);
226
+		modelMap.put("DataKcglJkqyqDefault1List", detailList);
227
+		List<BusinessFile> fileList= storageKcglJkqyqApplyDefaultService.getByBid(list.get(0).getId(), "jkq", null, null);
228
+		modelMap.put("fileList", fileList);
229
+		return modelMap;
230
+	}
231
+	@SuppressWarnings("unlikely-arg-type")
232
+	@RequestMapping(value = "/removeOverApplyData",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
233
+	@ApiOperation(value="删除一条延期申请数据", notes = "删除一条延期申请数据")
234
+	@ApiImplicitParams({
235
+	@ApiImplicitParam(name = "yqsqNo", value = "倒仓申请单号", paramType = "query"),
236
+	})
237
+	public Map<String, Object> removeOverApplyData(HttpServletRequest request, String yqsqNo){
238
+		Map<String, Object> map = new HashMap<String, Object>();
239
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
240
+		try {
241
+			StorageKcglJkqyqDefaultExample example = new StorageKcglJkqyqDefaultExample();
242
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample.Criteria criteria = example.createCriteria();
243
+		if(yqsqNo != null && !"".equals(yqsqNo)) {
244
+			criteria.andYqsqNoEqualTo(yqsqNo);
245
+		}
246
+		if(orgId != null && !"".equals(orgId)) {
247
+			criteria.andOrgIdEqualTo(orgId);
248
+		}
249
+		storageKcglJkqyqApplyDefaultService.removeOverData(example);
250
+		StorageKcglJkqyqApplyDefaultExample detailExamle = new StorageKcglJkqyqApplyDefaultExample();
251
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample.Criteria detailCriteria = detailExamle.createCriteria();
252
+		if(yqsqNo != null && !"".equals(yqsqNo)) {
253
+			detailCriteria.andYqsqNoEqualTo(yqsqNo);
254
+		}
255
+		if(orgId != null && !"".equals(orgId)) {
256
+			detailCriteria.andOrgIdEqualTo(orgId);
257
+		}
258
+		storageKcglJkqyqApplyDefaultService.removeOver1Data(detailExamle);
259
+		map.put("status", "success");
260
+		} catch (Exception e) {
261
+			e.printStackTrace();
262
+			map.put("status", "error");
263
+			map.put("msg", "保存失败!");
264
+		}
265
+		return map;
266
+	}
267
+	@SuppressWarnings({ "null" })
268
+	@RequestMapping(value = "/getJkqOveHeadList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
269
+	@ApiOperation(value="查询架空期延期日期", notes = "查询架空期延期日期")
270
+	public PageInfo<Map<String, Object>> getJkqOveHeadList(HttpServletRequest request, Integer pageNum, Integer pageSize){
271
+		Date date = null;
272
+		Date yqDate = null;
273
+		long time1 = 0;
274
+        long time2 = 0;
275
+		Date nowDate = new Date();//获取当前时间
276
+		Calendar cal = Calendar.getInstance();
277
+		Calendar cal1 = Calendar.getInstance();
278
+		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
279
+		DateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
280
+		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
281
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
282
+    	Map<String, Object> map = new HashMap<String, Object>();
283
+    	List<Map<String, Object>> countList = new ArrayList<Map<String, Object>>();
284
+    	List<Map<String, Object>> lastList = new ArrayList<Map<String, Object>>();
285
+    	map.put("orgId", orgId);
286
+    	map.put("executeType", 3156);
287
+        List<Map<String, Object>> list = storageKcglJkqyqApplyDefaultService.getjkqPlanList(map);
288
+        for (Map<String, Object> countMap : list) {
289
+        	countMap.put("orgId", orgId);
290
+        	countList = storageKcglJkqyqApplyDefaultService.getjkqDataDayList(countMap);
291
+        	for (Map<String, Object> lastMap : countList) {
292
+        		Double zcsl = 0.0;
293
+        		Double srsl = 0.0;
294
+        		Integer warningDay = 0;
295
+        		Integer isUpload = 0;
296
+        		long  yqsqTime = 0;
297
+        		if(lastMap != null && !lastMap.isEmpty()){
298
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
299
+					if (lastEntry.getKey().equals("jkqEnd")) {
300
+						String yqtime = (String) lastEntry.getValue();
301
+						try {
302
+							date = format1.parse(yqtime);
303
+							cal.setTime(date);
304
+							if(yqtime.length() != 0) {
305
+								break;
306
+							}
307
+						} catch (ParseException e) {
308
+							e.printStackTrace();
309
+						}
310
+					}
311
+				}
312
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
313
+					if (lastEntry.getKey().equals("overhead_period")) {
314
+						Integer overheadPeriod =(Integer) lastEntry.getValue();
315
+						cal.add(Calendar.MONTH, overheadPeriod);
316
+						break;
317
+					}
318
+				}
319
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
320
+					if (lastEntry.getKey().equals("zcsl")) {
321
+						zcsl =(Double) lastEntry.getValue();
322
+						break;
323
+					}
324
+				}
325
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
326
+					if (lastEntry.getKey().equals("srsl")) {
327
+						srsl =(Double) lastEntry.getValue();
328
+						break;
329
+					}
330
+				}
331
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
332
+					if (lastEntry.getKey().equals("warning_day")) {
333
+						warningDay =(Integer) lastEntry.getValue();
334
+						break;
335
+					}
336
+				}
337
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
338
+        			if(lastEntry.getKey().equals("is_Upload")) {
339
+        				isUpload =(Integer) lastEntry.getValue();
340
+						break;
341
+					}
342
+				}
343
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
344
+					if (lastEntry.getKey().equals("sqyq_time")) {
345
+						String yqwTime =sdf.format(lastEntry.getValue());
346
+						try {
347
+							yqDate = format1.parse(yqwTime);
348
+							cal1.setTime(yqDate);
349
+							yqsqTime = cal1.getTimeInMillis();
350
+							if(yqwTime.length() != 0) {
351
+								break;
352
+							}
353
+						} catch (ParseException e) {
354
+							e.printStackTrace();
355
+						}
356
+						break;
357
+					}
358
+				}
359
+        		try { 
360
+            		String dateString = format.format(nowDate);
361
+                	String timea= format.format(cal.getTime());
362
+    				cal.setTime(sdf.parse(dateString));
363
+    				time1 = cal.getTimeInMillis();
364
+    		        cal.setTime(sdf.parse(timea));
365
+    		        time2 = cal.getTimeInMillis();
366
+    		        long between_days=(time2-time1)/(1000*3600*24);
367
+    		        Integer rengTime = Integer.parseInt(String.valueOf(between_days));
368
+    		        if(isUpload == 2) {
369
+    		        	//isUpload为2表示延期申请上传
370
+    		        	long betdays=(yqsqTime-time1)/(1000*3600*24);
371
+        		        Integer rTime = Integer.parseInt(String.valueOf(betdays));
372
+    		        	if(rTime < warningDay ) {
373
+    		        		if(zcsl > srsl) {
374
+        		        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
375
+        		        					if (lastEntry.getKey().equals("jkqEnd")) {
376
+        	    								lastEntry.setValue(timea);
377
+        	    								lastList.add(lastMap);
378
+        	    								break;
379
+        		        			}
380
+        						}
381
+        		        	}
382
+    		        	}else {
383
+    		        		break;
384
+    		        	}
385
+    		        }else {
386
+    		        	  if(rengTime < warningDay) {
387
+    	    		        	if(zcsl > srsl) {
388
+    	    		        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
389
+    	    		        					if (lastEntry.getKey().equals("jkqEnd")) {
390
+    	    	    								lastEntry.setValue(timea);
391
+    	    	    								lastList.add(lastMap);
392
+    	    	    								break;
393
+    	    		        			}
394
+    	    						}
395
+    	    		        	}
396
+    	    		        }
397
+    		        }
398
+    			} catch (ParseException e) {
399
+    				// TODO Auto-generated catch block
400
+    				e.printStackTrace();
401
+    				}
402
+				}
403
+        	}
404
+		}
405
+        PageInfo<Map<String, Object>> pageInfo = new PageInfo<Map<String, Object>>(lastList);
406
+        return pageInfo;
407
+	}
408
+	@RequestMapping(value = "/findSqyqTime",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
409
+	@ApiOperation(value="查询架空期延期日期", notes = "查询架空期延期日期")
410
+	@ApiImplicitParams({
411
+	@ApiImplicitParam(name = "modifydate", value = "架空期轮出日期", paramType = "query"),
412
+	@ApiImplicitParam(name = "ch", value = "仓房ID", paramType = "query"),
413
+	@ApiImplicitParam(name = "hwh", value = "货位ID", paramType = "query")
414
+	})
415
+	public PageInfo<StorageKcglJkqyqApplyDefault> findSqyqTime(HttpServletRequest request, Integer ch, Integer hwh){
416
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
417
+		StorageKcglJkqyqApplyDefaultExample detailExamle = new StorageKcglJkqyqApplyDefaultExample();
418
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample.Criteria detailCriteria = detailExamle.createCriteria();
419
+		if(ch != null && !"".equals(ch)) {
420
+			detailCriteria.andChEqualTo(ch);
421
+		}
422
+		if(hwh != null && !"".equals(hwh)) {
423
+			detailCriteria.andHwhEqualTo(hwh);
424
+		}
425
+		if(orgId != null && !"".equals(orgId)) {
426
+			detailCriteria.andOrgIdEqualTo(orgId);
427
+		}
428
+		detailExamle.setOrderByClause(" updatetime DESC");
429
+		List<StorageKcglJkqyqApplyDefault> detailList = storageKcglJkqyqApplyDefaultService.selectBy1Example(detailExamle);
430
+		PageInfo<StorageKcglJkqyqApplyDefault> pageInfo = new PageInfo<StorageKcglJkqyqApplyDefault>(detailList);
431
+		return pageInfo;
432
+	}
433
+	@SuppressWarnings("unlikely-arg-type")
434
+	@RequestMapping(value = "/present", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
435
+	@ApiOperation(value = "架空期延期申请提交数据到省平台审批", notes = "架空期延期申请提交数据到省平台审批")
436
+	@ApiImplicitParams({ @ApiImplicitParam(name = "yqsqNo", value = "延期申请单号", paramType = "query") })
437
+	public Map<String, Object> present(HttpServletRequest request, String yqsqNo, Integer isUpload) {
438
+		String str = "";
439
+		String jso = "";
440
+		String strs = "";
441
+		JsonConfig config = new JsonConfig(); 
442
+		StorageKcglJkqyqDefault dataKcglJkq = new StorageKcglJkqyqDefault();
443
+		StorageKcglJkqyqApplyDefault dataKcglJkq1 = new StorageKcglJkqyqApplyDefault();
444
+		Map<String, Object> modelMap = new HashMap<String, Object>();
445
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
446
+		//主表
447
+		StorageKcglJkqyqDefaultExample example = new StorageKcglJkqyqDefaultExample();
448
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample.Criteria criteria = example.createCriteria();
449
+		//子表
450
+		StorageKcglJkqyqApplyDefaultExample detailExamle = new StorageKcglJkqyqApplyDefaultExample();
451
+		com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample.Criteria detailCriteria = detailExamle.createCriteria();
452
+		if (yqsqNo != null && !"".equals(yqsqNo)) {
453
+			criteria.andYqsqNoEqualTo(yqsqNo);
454
+			detailCriteria.andYqsqNoEqualTo(yqsqNo);
455
+		}
456
+		if (orgId != null && !"".equals(orgId)) {
457
+			criteria.andOrgIdEqualTo(orgId);
458
+			detailCriteria.andOrgIdEqualTo(orgId);
459
+		}
460
+		//获取主表数据
461
+		jso = "{\"DataKcglJkqyqDefault\":[";
462
+		List<StorageKcglJkqyqDefault> list = storageKcglJkqyqApplyDefaultService.selectByExample(example);
463
+		for (StorageKcglJkqyqDefault storageKcglJkqyqDefault : list) {
464
+			config.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd"));  
465
+			net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(storageKcglJkqyqDefault,config);//将java对象转换为json对象
466
+			strs = strs + json.toString();
467
+		}
468
+		jso = jso + strs + "],";
469
+		//获取子表数据
470
+		List<StorageKcglJkqyqApplyDefault> detailList = storageKcglJkqyqApplyDefaultService.selectBy1Example(detailExamle);
471
+		jso = jso+"\"DataKcglJkqyqDefault1\":[";
472
+		for (StorageKcglJkqyqApplyDefault storageKcglJkqyqApplyDefault : detailList) {
473
+			config.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd"));  
474
+			net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(storageKcglJkqyqApplyDefault,config);//将java对象转换为json对象
475
+			str = str + json.toString() + ",";
476
+		}
477
+		if(str!=null && str.length()>0) {
478
+			str = str.substring(0, str.length()-1);
479
+		}
480
+		jso = jso + str + "]}";
481
+		try {
482
+		String url = changeUrl+"/business-management/changeStoragehous/saveJcq";
483
+        String count= HTTPUtils.doPost(url,jso);
484
+        if(count.contains("Success") || count.contains("200")){
485
+        	if(isUpload == 0) {
486
+        		dataKcglJkq.setIsUpload(1);
487
+        		dataKcglJkq.setYqsqNo(yqsqNo);
488
+        		storageKcglJkqyqApplyDefaultService.updateJkqStatus(dataKcglJkq);
489
+        		dataKcglJkq1.setIsUpload(1);
490
+        		dataKcglJkq1.setYqsqNo(yqsqNo);
491
+        		storageKcglJkqyqApplyDefaultService.updateJkq1Status(dataKcglJkq1);
492
+        	}
493
+            modelMap.put("status", "success");
494
+            modelMap.put("msg", "成功!");
495
+        }
496
+	 } catch (Exception e){
497
+            e.printStackTrace();
498
+            modelMap.put("status", "error");
499
+            modelMap.put("msg", "保存失败!");
500
+        }
501
+		return modelMap;
502
+	}
503
+	
504
+	@PostMapping(value = "/UpdateJkqStatus")
505
+	@ApiOperation(value = "架空期延期申请省平台审批后修改数据", notes = "架空期延期申请省平台审批后修改数据")
506
+	public String UpdateJkqStatus(String jkqData) {
507
+		String retS = "Success";
508
+		StorageKcglJkqyqApplyDefault detail1 = new StorageKcglJkqyqApplyDefault();
509
+		try {
510
+			ObjectMapper mapper = new ObjectMapper();
511
+			StorageKcglJkqyqDefault storageKcglJkqyqDefault = (StorageKcglJkqyqDefault) mapper.readValue(jkqData, StorageKcglJkqyqDefault.class);
512
+			//修改主表状态
513
+			storageKcglJkqyqApplyDefaultService.updateJkqIsUpload(storageKcglJkqyqDefault);
514
+			detail1.setIsUpload(storageKcglJkqyqDefault.getIsUpload());
515
+			detail1.setYqsqNo(storageKcglJkqyqDefault.getYqsqNo());
516
+			//通过yqsqNo修改子表状态
517
+			storageKcglJkqyqApplyDefaultService.updateJkq1Status(detail1);
518
+		} catch (IOException e) {
519
+			return retS = "error";
520
+		}
521
+		return retS;
522
+	}
523
+}

+ 645 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageChangeStoragehouseTaskController.java

@@ -0,0 +1,645 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.io.IOException;
4
+import java.util.Date;
5
+import java.util.HashMap;
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+import javax.annotation.Resource;
10
+import javax.servlet.http.HttpServletRequest;
11
+
12
+import org.springframework.beans.factory.annotation.Value;
13
+import org.springframework.http.MediaType;
14
+import org.springframework.web.bind.annotation.PostMapping;
15
+import org.springframework.web.bind.annotation.RequestMapping;
16
+import org.springframework.web.bind.annotation.RequestMethod;
17
+import org.springframework.web.bind.annotation.RestController;
18
+
19
+import com.alibaba.fastjson.JSONObject;
20
+import com.chinaitop.depot.storage.model.BusinessFile;
21
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask;
22
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail;
23
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample;
24
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample;
25
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample.Criteria;
26
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask;
27
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample;
28
+import com.chinaitop.depot.storage.service.StorageChangeStoragehouseTaskDetailService;
29
+import com.chinaitop.depot.storage.service.StorageChangeStoragehouseTaskService;
30
+import com.chinaitop.depot.storage.service.StorageChangeStoragehouseWorkTaskService;
31
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoService;
32
+import com.chinaitop.depot.storage.utils.DateJsonValueProcessor;
33
+import com.chinaitop.depot.storage.utils.HTTPUtils;
34
+import com.chinaitop.depot.storage.utils.ParameterUtil;
35
+import com.chinaitop.depot.storage.utils.createKC;
36
+import com.fasterxml.jackson.core.type.TypeReference;
37
+import com.fasterxml.jackson.databind.ObjectMapper;
38
+import com.github.pagehelper.PageHelper;
39
+import com.github.pagehelper.PageInfo;
40
+
41
+import io.swagger.annotations.Api;
42
+import io.swagger.annotations.ApiImplicitParam;
43
+import io.swagger.annotations.ApiImplicitParams;
44
+import io.swagger.annotations.ApiOperation;
45
+import net.sf.json.JsonConfig;
46
+
47
+/**
48
+ * @author liangs
49
+ * @Date 2019/06/14
50
+ */
51
+@RestController
52
+@RequestMapping(value = "/StorageChangeStoragehouseTaskController")
53
+@Api(value = "StorageChangeStoragehouseTaskController", description = "倒仓作业类")
54
+public class StorageChangeStoragehouseTaskController {
55
+
56
+	@Resource
57
+	private StorageChangeStoragehouseTaskService storageChangeStoragehouseTaskService;
58
+
59
+	@Resource
60
+	private StorageChangeStoragehouseTaskDetailService storageChangeStoragehouseTaskDetailService;
61
+
62
+	@Resource
63
+	private StorageFoodbasicInfoService foodbasicInfoService;
64
+
65
+	@Resource
66
+	private StorageChangeStoragehouseWorkTaskService storageChangeStoragehouseWorkTaskService;
67
+
68
+	// 获取出入库ip地址
69
+	@Value("${crk-webservice}")
70
+	private String url;
71
+	
72
+	// 获取出入库ip地址
73
+	@Value("${report-Url}")
74
+	private String changeUrl;
75
+	
76
+	
77
+	@RequestMapping(value = "/getList", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
78
+	@ApiOperation(value = "查询倒仓申请列表", notes = "查询倒仓申请信息列表,支持分页")
79
+	@ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
80
+			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
81
+			@ApiImplicitParam(name = "businessNo", value = "倒仓业务单号", paramType = "query"),
82
+			@ApiImplicitParam(name = "applyTimeA", value = "申请日期A", paramType = "query"),
83
+			@ApiImplicitParam(name = "applyTimeB", value = "申请日期B", paramType = "query"),
84
+			@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query") })
85
+	public PageInfo<StorageChangeStoragehouseTask> getList(Integer pageNum, Integer pageSize, String businessNo,
86
+			String applyTimeA, String applyTimeB, Integer orgId) {
87
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
88
+		Criteria Criteria = example.createCriteria();
89
+		if (pageNum != null && pageSize != null) {
90
+			PageHelper.startPage(pageNum, pageSize);
91
+		}
92
+		// 拼接查询条件
93
+		if (businessNo != null && !"".equals(businessNo)) {
94
+			Criteria.andBusinessNoLike("%" + businessNo + "%");
95
+		}
96
+		
97
+		if (applyTimeA != null && !"".equals(applyTimeA)) {
98
+			Date starDate = ParameterUtil.string2datetime(applyTimeA + " 00:00:00");
99
+			Criteria.andApplyTimeGreaterThanOrEqualTo(starDate);
100
+		}
101
+		if (applyTimeB != null && !"".equals(applyTimeB)) {
102
+			Date starDate = ParameterUtil.string2datetime(applyTimeB + " 23:59:59");
103
+			Criteria.andApplyTimeLessThanOrEqualTo(starDate);
104
+		}
105
+		if (orgId != null && !"".equals(orgId)) {
106
+			Criteria.andOrgIdEqualTo(orgId);
107
+		}
108
+		example.setOrderByClause("apply_time asc");
109
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
110
+		PageInfo<StorageChangeStoragehouseTask> pageInfo = new PageInfo<StorageChangeStoragehouseTask>(list);
111
+		return pageInfo;
112
+	}
113
+
114
+	@SuppressWarnings("unchecked")
115
+	@RequestMapping(value = "/edit", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
116
+	@ApiOperation(value = "新增倒仓信息", notes = "新增倒仓信息")
117
+	@ApiImplicitParams({
118
+			@ApiImplicitParam(name = "storeChangeStoragehouseJson", value = "JSON数据对象", paramType = "form"),
119
+			@ApiImplicitParam(name = "change", value = "标志位判断新增修改", paramType = "query"),
120
+			@ApiImplicitParam(name = "crk_ip", value = "出入库ip地址", paramType = "query"),
121
+			@ApiImplicitParam(name = "storeChangeStorageaddDcsl", value = "JSON数据对象", paramType = "query"), 
122
+			@ApiImplicitParam(name = "fileIds", value = "文件", paramType = "query") })
123
+	public Map<String, Object> edit(HttpServletRequest request, Integer change, String crk_ip, String storeChangeStoragehouseJson,
124
+			String storeChangeStorageaddDcsl, String fileIds) {
125
+		Map<String, Object> modelMap = new HashMap<String, Object>();
126
+		Date date = new Date();
127
+		JSONObject changeStorage = null;
128
+		String businessNo = null;
129
+		String crk_adr = "";
130
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
131
+		if (null != storeChangeStoragehouseJson && !"".equals(storeChangeStoragehouseJson)) {
132
+			changeStorage = JSONObject.parseObject(storeChangeStoragehouseJson);
133
+			businessNo = (changeStorage.get("businessNo") == null ? "" : changeStorage.get("businessNo").toString());
134
+		}
135
+		try {
136
+			// JSON字符串转对象
137
+			ObjectMapper mapper = new ObjectMapper();
138
+			/*
139
+			 * mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
140
+			 */
141
+			// 添加主表字段
142
+			if (change == 0) {
143
+				StorageChangeStoragehouseTask storageChangeStoragehouseTask = (StorageChangeStoragehouseTask) mapper
144
+						.readValue(storeChangeStoragehouseJson, StorageChangeStoragehouseTask.class);
145
+				storageChangeStoragehouseTask.setCreateDate(date);
146
+				storageChangeStoragehouseTask.setOrgId(orgId);
147
+				storageChangeStoragehouseTask.setIsUpload(0);
148
+				storageChangeStoragehouseTaskService.addStorageChangeStoragehouseTask(storageChangeStoragehouseTask);
149
+				StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
150
+				Criteria Criteria = example.createCriteria();
151
+				if (orgId != null && !"".equals(orgId)) {
152
+					Criteria.andOrgIdEqualTo(orgId);
153
+				}
154
+				if(businessNo != null && !"".equals(businessNo)) {
155
+					Criteria.andBusinessNoEqualTo(businessNo);
156
+				}
157
+				List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
158
+				Integer storageId = list.get(0).getId();
159
+				storageChangeStoragehouseTaskService.updateFileByFileIdsAndBid(fileIds, storageId, "change");
160
+				// 添加子表字段
161
+				List<StorageChangeStoragehouseTaskDetail> storageChangeStoragehouseTaskDetailList = null;
162
+				if (storeChangeStorageaddDcsl != null) {
163
+					storageChangeStoragehouseTaskDetailList = (List<StorageChangeStoragehouseTaskDetail>) mapper
164
+							.readValue(storeChangeStorageaddDcsl,new TypeReference<List<StorageChangeStoragehouseTaskDetail>>() {
165
+					});
166
+				}
167
+				// 新增仓房货位数量质量标准子表.
168
+				if (storageChangeStoragehouseTaskDetailList != null
169
+						&& storageChangeStoragehouseTaskDetailList.size() > 0) {
170
+					for (StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail : storageChangeStoragehouseTaskDetailList) {
171
+						storageChangeStoragehouseTaskDetail.setOrg_id(orgId);
172
+						storageChangeStoragehouseTaskDetail.setUpdateTime(date);
173
+						storageChangeStoragehouseTaskDetail.setBusinessNo(businessNo);
174
+//						Object[] parameters = new Object[10];
175
+//						parameters[0] = storageChangeStoragehouseTaskDetail.getOrg_id() + "";
176
+//						parameters[1] = storageChangeStoragehouseTaskDetail.getLspz() + "";
177
+//						// parameters[2] = null; 明细品种
178
+//						parameters[3] = storageChangeStoragehouseTaskDetail.getStorehouseId() + "";
179
+//						parameters[4] = storageChangeStoragehouseTaskDetail.getWarehouseId() + "";
180
+//						parameters[5] = storageChangeStoragehouseTaskDetail.getHouseId() + "";
181
+//						parameters[6] = storageChangeStoragehouseTaskDetail.getWareId() + "";
182
+//						// parameters[7] = null; 粮食性质
183
+//						parameters[8] = storageChangeStoragehouseTaskDetail.getPourInNum() + "";
184
+//						parameters[9] = 1 + ""; // 1:新增;2:修改;3:删除
185
+//						crk_adr = url;
186
+//						String str = createKC.createKC("ChangeWarehouse", crk_adr, parameters);
187
+//						if ("true".equals(str)) {
188
+//							modelMap.put("status", "success");
189
+//						} else {
190
+//							modelMap.put("status", "error");
191
+//							modelMap.put("msg", "保存失败,倒仓数据同步异常,请联系管理员!");
192
+//						}
193
+						storageChangeStoragehouseTaskDetailService.addStorageChangeStoragehouseTaskDetail(storageChangeStoragehouseTaskDetail);
194
+					}
195
+				}
196
+			} else if (change == 1) {
197
+				StorageChangeStoragehouseTask storageChangeStoragehouseTask = (StorageChangeStoragehouseTask) mapper
198
+						.readValue(storeChangeStoragehouseJson, StorageChangeStoragehouseTask.class);
199
+				storageChangeStoragehouseTask.setCreateDate(date);
200
+				storageChangeStoragehouseTask.setOrgId(orgId);
201
+				storageChangeStoragehouseTaskService.updateStorageChangeStoragehouseTask(storageChangeStoragehouseTask);
202
+				StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
203
+				Criteria Criteria = example.createCriteria();
204
+				if (orgId != null && !"".equals(orgId)) {
205
+					Criteria.andOrgIdEqualTo(orgId);
206
+				}
207
+				if(businessNo != null && !"".equals(businessNo)) {
208
+					Criteria.andBusinessNoEqualTo(businessNo);
209
+				}
210
+				List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
211
+				Integer storageId = list.get(0).getId();
212
+				storageChangeStoragehouseTaskService.updateFileByFileIdsAndBid(fileIds, storageId, "change");
213
+				// 添加子表字段
214
+				List<StorageChangeStoragehouseTaskDetail> storageChangeStoragehouseTaskDetailList = null;
215
+				if (storeChangeStorageaddDcsl != null) {
216
+					storageChangeStoragehouseTaskDetailList = (List<StorageChangeStoragehouseTaskDetail>) mapper
217
+							.readValue(storeChangeStorageaddDcsl,
218
+									new TypeReference<List<StorageChangeStoragehouseTaskDetail>>() {
219
+									});
220
+				}
221
+				// 新增仓房货位数量质量标准子表.
222
+				if (storageChangeStoragehouseTaskDetailList != null
223
+						&& storageChangeStoragehouseTaskDetailList.size() > 0) {
224
+					for (StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail : storageChangeStoragehouseTaskDetailList) {
225
+						storageChangeStoragehouseTaskDetail.setOrg_id(orgId);
226
+						storageChangeStoragehouseTaskDetail.setUpdateTime(date);
227
+						storageChangeStoragehouseTaskDetail.setBusinessNo(businessNo);
228
+						storageChangeStoragehouseTaskDetailService.updateStorageChangeStoragehouseTaskDetail(storageChangeStoragehouseTaskDetail);
229
+						if(storageChangeStoragehouseTaskDetail.getId() == null) {
230
+							storageChangeStoragehouseTaskDetailService.addStorageChangeStoragehouseTaskDetail(storageChangeStoragehouseTaskDetail);
231
+						}
232
+					}
233
+				}
234
+			}
235
+			modelMap.put("status", "success");
236
+		} catch (Exception e) {
237
+			e.printStackTrace();
238
+			modelMap.put("status", "error");
239
+			modelMap.put("msg", "保存失败!");
240
+		}
241
+		return modelMap;
242
+	}
243
+
244
+	@RequestMapping(value = "/findChangeData", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
245
+	@ApiOperation(value = "查询倒仓数据列表", notes = "查询倒仓申请信息列表")
246
+	@ApiImplicitParams({ @ApiImplicitParam(name = "businessNo", value = "倒仓申请单号", paramType = "query"),
247
+			@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query") })
248
+	public Map<String, Object> findChangeData(String businessNo, Integer orgId) {
249
+		Map<String, Object> modelMap = new HashMap<String, Object>();
250
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
251
+		Criteria Criteria = example.createCriteria();
252
+		if (businessNo != null && !"".equals(businessNo)) {
253
+			Criteria.andBusinessNoEqualTo(businessNo);
254
+		}
255
+		if (orgId != null && !"".equals(orgId)) {
256
+			Criteria.andOrgIdEqualTo(orgId);
257
+		}
258
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
259
+		modelMap.put("ChangeStoragehouseTask", list);
260
+		StorageChangeStoragehouseTaskDetailExample detailExamle = new StorageChangeStoragehouseTaskDetailExample();
261
+		com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample.Criteria detailCriteria = detailExamle
262
+				.createCriteria();
263
+		if (businessNo != null && !"".equals(businessNo)) {
264
+			detailCriteria.andBusinessNoEqualTo(businessNo);
265
+		}
266
+		if (orgId != null && !"".equals(orgId)) {
267
+			detailCriteria.andOrg_idEqualTo(orgId);
268
+		}
269
+		List<StorageChangeStoragehouseTaskDetail> detailList = storageChangeStoragehouseTaskDetailService
270
+				.selectByExample(detailExamle);
271
+		modelMap.put("StorageChangeStoragehouseTaskDetail", detailList);
272
+		List<BusinessFile> fileList= storageChangeStoragehouseTaskService.getByBid(list.get(0).getId(), "change", null, null);
273
+		modelMap.put("fileList", fileList);
274
+		return modelMap;
275
+	}
276
+
277
+	@SuppressWarnings("unlikely-arg-type")
278
+	@RequestMapping(value = "/removeChangeData", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
279
+	@ApiOperation(value = "删除一条倒仓数据", notes = "删除一条倒仓数据")
280
+	@ApiImplicitParams({ @ApiImplicitParam(name = "businessNo", value = "倒仓申请单号", paramType = "query"), })
281
+	public Map<String, Object> removeChangeData(HttpServletRequest request, String businessNo) {
282
+		Map<String, Object> map = new HashMap<String, Object>();
283
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
284
+		try {
285
+			StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
286
+			Criteria Criteria = example.createCriteria();
287
+			if (businessNo != null && !"".equals(businessNo)) {
288
+				Criteria.andBusinessNoEqualTo(businessNo);
289
+			}
290
+			if (orgId != null && !"".equals(orgId)) {
291
+				Criteria.andOrgIdEqualTo(orgId);
292
+			}
293
+			storageChangeStoragehouseTaskService.removeChangeData(example);
294
+			StorageChangeStoragehouseTaskDetailExample detailExamle = new StorageChangeStoragehouseTaskDetailExample();
295
+			com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample.Criteria detailCriteria = detailExamle
296
+					.createCriteria();
297
+			if (businessNo != null && !"".equals(businessNo)) {
298
+				detailCriteria.andBusinessNoEqualTo(businessNo);
299
+			}
300
+			if (orgId != null && !"".equals(orgId)) {
301
+				detailCriteria.andOrg_idEqualTo(orgId);
302
+			}
303
+			storageChangeStoragehouseTaskDetailService.removeChangeData(detailExamle);
304
+			map.put("status", "success");
305
+		} catch (Exception e) {
306
+			e.printStackTrace();
307
+			map.put("status", "error");
308
+			map.put("msg", "保存失败!");
309
+		}
310
+		return map;
311
+	}
312
+
313
+	@RequestMapping(value = "/getWorkPageInfo", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
314
+	@ApiOperation(value = "查询倒仓申请列表", notes = "查询倒仓申请信息列表,支持分页")
315
+	@ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
316
+			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
317
+			@ApiImplicitParam(name = "planStartDateA", value = "计划开始日期A", paramType = "query"),
318
+			@ApiImplicitParam(name = "planStartDateB", value = "计划开始日期B", paramType = "query"),
319
+			@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query") })
320
+	public PageInfo<StorageChangeStoragehouseTask> getWorkPageInfo(Integer pageNum, Integer pageSize, Integer orgId,
321
+			String planStartDateA, String planStartDateB) {
322
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
323
+		Criteria Criteria = example.createCriteria();
324
+		String planType = "ChangeWork";
325
+		if (pageNum != null && pageSize != null) {
326
+			PageHelper.startPage(pageNum, pageSize);
327
+		}
328
+		if (planStartDateA != null && !"".equals(planStartDateA)) {
329
+			Date starDate = ParameterUtil.string2datetime(planStartDateA + " 00:00:00");
330
+			Criteria.andPlanStartDateGreaterThanOrEqualTo(starDate);
331
+		}
332
+		if (planStartDateB != null && !"".equals(planStartDateB)) {
333
+			Date starDate = ParameterUtil.string2datetime(planStartDateB + " 23:59:59");
334
+			Criteria.andPlanStartDateLessThanOrEqualTo(starDate);
335
+		}
336
+		if (orgId != null && !"".equals(orgId)) {
337
+			Criteria.andOrgIdEqualTo(orgId);
338
+		}
339
+		if (planType != null && !"".equals(planType)) {
340
+			Criteria.andPlanTypeLessThanOrEqualTo(planType);
341
+		}
342
+		example.setOrderByClause("apply_time asc");
343
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
344
+		PageInfo<StorageChangeStoragehouseTask> pageInfo = new PageInfo<StorageChangeStoragehouseTask>(list);
345
+		return pageInfo;
346
+	}
347
+
348
+	@RequestMapping(value = "/getChangeDataPageInfo", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
349
+	@ApiOperation(value = "查询倒仓申请审批通过数据", notes = "查询倒仓申请审批通过数据,支持分页")
350
+	@ApiImplicitParams({ @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
351
+			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
352
+			@ApiImplicitParam(name = "applyStatus", value = "审核状态", paramType = "query"), })
353
+	public PageInfo<StorageChangeStoragehouseTaskDetail> getChangeDataPageInfo(HttpServletRequest request,
354
+			Integer pageNum, Integer pageSize, Integer applyStatus) {
355
+		StorageChangeStoragehouseTaskDetailExample detailExamle = new StorageChangeStoragehouseTaskDetailExample();
356
+		com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample.Criteria Criteria = detailExamle
357
+				.createCriteria();
358
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
359
+		if (pageNum != null && pageSize != null) {
360
+			PageHelper.startPage(pageNum, pageSize);
361
+		}
362
+		if (orgId != null && !"".equals(orgId)) {
363
+			Criteria.andOrg_idEqualTo(orgId);
364
+		}
365
+		if (applyStatus != null && !"".equals(applyStatus)) {
366
+			Criteria.andApplyStatusEqualTo(applyStatus);
367
+		}
368
+		List<StorageChangeStoragehouseTaskDetail> list = storageChangeStoragehouseTaskDetailService
369
+				.selectByExample(detailExamle);
370
+		PageInfo<StorageChangeStoragehouseTaskDetail> pageInfo = new PageInfo<StorageChangeStoragehouseTaskDetail>(
371
+				list);
372
+		return pageInfo;
373
+	}
374
+
375
+	@RequestMapping(value = "/fandChangeWorkData", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
376
+	@ApiOperation(value = "查询主表数据列表", notes = "查询倒仓工作列表")
377
+	@ApiImplicitParams({ @ApiImplicitParam(name = "businessNo", value = "倒仓申请单号", paramType = "query"), })
378
+	public Map<String, Object> fandChangeWorkData(HttpServletRequest request, String businessNo) {
379
+		Map<String, Object> modelMap = new HashMap<String, Object>();
380
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
381
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
382
+		Criteria Criteria = example.createCriteria();
383
+		if (businessNo != null && !"".equals(businessNo)) {
384
+			Criteria.andBusinessNoEqualTo(businessNo);
385
+		}
386
+		if (orgId != null && !"".equals(orgId)) {
387
+			Criteria.andOrgIdEqualTo(orgId);
388
+		}
389
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
390
+		modelMap.put("ChangeStoragehouseTask", list);
391
+		return modelMap;
392
+	}
393
+
394
+	@SuppressWarnings("unchecked")
395
+	@RequestMapping(value = "/updataChangeWork", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
396
+	@ApiOperation(value = "新增倒仓作业数据并更新倒仓申请主表", notes = "新增倒仓作业数据并更新倒仓申请主表")
397
+	@ApiImplicitParams({
398
+			@ApiImplicitParam(name = "storeChangeStoragehouseJson", value = "JSON数据对象", paramType = "form"),
399
+			@ApiImplicitParam(name = "storeChangeStorageaddDcsl", value = "JSON数据对象", paramType = "form") })
400
+	public Map<String, Object> updataChangeWork(HttpServletRequest request, String storeChangeStoragehouseJson,
401
+			String storeChangeStorageaddDcsl) {
402
+		Map<String, Object> modelMap = new HashMap<String, Object>();
403
+		Date date = new Date();
404
+		JSONObject changeStorage = null;
405
+		String workNo = null;
406
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
407
+		if (null != storeChangeStoragehouseJson && !"".equals(storeChangeStoragehouseJson)) {
408
+			changeStorage = JSONObject.parseObject(storeChangeStoragehouseJson);
409
+			workNo = (changeStorage.get("workNo") == null ? "" : changeStorage.get("workNo").toString());
410
+		}
411
+		try {
412
+			// JSON字符串转对象
413
+			ObjectMapper mapper = new ObjectMapper();
414
+			// 添加子表字段
415
+			List<StorageChangeStoragehouseWorkTask> StorageChangeStoragehouseWorkTaskList = null;
416
+			if (storeChangeStorageaddDcsl != null) {
417
+				StorageChangeStoragehouseWorkTaskList = (List<StorageChangeStoragehouseWorkTask>) mapper.readValue(
418
+						storeChangeStorageaddDcsl, new TypeReference<List<StorageChangeStoragehouseWorkTask>>() {
419
+						});
420
+			}
421
+			// 新增仓房货位数量质量标准子表.
422
+			if (StorageChangeStoragehouseWorkTaskList != null && StorageChangeStoragehouseWorkTaskList.size() > 0) {
423
+				for (StorageChangeStoragehouseWorkTask storageChangeStoragehouseWorkTask : StorageChangeStoragehouseWorkTaskList) {
424
+					storageChangeStoragehouseWorkTask.setOrg_id(orgId);
425
+					storageChangeStoragehouseWorkTask.setCreateDate(date);
426
+					storageChangeStoragehouseWorkTask.setWorkNo(workNo);
427
+					// 只有同步出入库数据,才保存
428
+					storageChangeStoragehouseWorkTaskService.addStorageChangeStoragehouseTaskDetail(storageChangeStoragehouseWorkTask);
429
+					// 添加主表字段
430
+					StorageChangeStoragehouseTask storageChangeStoragehouseTask = (StorageChangeStoragehouseTask) mapper
431
+							.readValue(storeChangeStoragehouseJson, StorageChangeStoragehouseTask.class);
432
+					storageChangeStoragehouseTask.setCreateDate(date);
433
+					storageChangeStoragehouseTask.setOrgId(orgId);
434
+					storageChangeStoragehouseTask.setPlanType("ChangeWork");
435
+					storageChangeStoragehouseTask.setWorkNo(workNo);
436
+					storageChangeStoragehouseTaskService.updateStorageChangeStoragehouseTask(storageChangeStoragehouseTask);
437
+				}
438
+			}
439
+			modelMap.put("status", "success");
440
+		} catch (Exception e) {
441
+			e.printStackTrace();
442
+			modelMap.put("status", "error");
443
+			modelMap.put("msg", "保存失败!");
444
+		}
445
+		return modelMap;
446
+	}
447
+
448
+	@SuppressWarnings("unlikely-arg-type")
449
+	@RequestMapping(value = "/findWorkData", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
450
+	@ApiOperation(value = "查询倒仓数据列表", notes = "查询倒仓申请信息列表")
451
+	@ApiImplicitParams({ @ApiImplicitParam(name = "workNo", value = "倒仓申请单号", paramType = "query"),
452
+			@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query") })
453
+	public Map<String, Object> findWorkData(String workNo, Integer orgId) {
454
+		Map<String, Object> modelMap = new HashMap<String, Object>();
455
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
456
+		Criteria Criteria = example.createCriteria();
457
+		if (workNo != null && !"".equals(workNo)) {
458
+			Criteria.andWorkNoEqualTo(workNo);
459
+		}
460
+		if (orgId != null && !"".equals(orgId)) {
461
+			Criteria.andOrgIdEqualTo(orgId);
462
+		}
463
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
464
+		modelMap.put("ChangeStoragehouseTask", list);
465
+		StorageChangeStoragehouseWorkTaskExample detailExamle = new StorageChangeStoragehouseWorkTaskExample();
466
+		com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample.Criteria detailCriteria = detailExamle
467
+				.createCriteria();
468
+		if (workNo != null && !"".equals(workNo)) {
469
+			detailCriteria.andWorkNoEqualTo(workNo);
470
+		}
471
+		if (orgId != null && !"".equals(orgId)) {
472
+			detailCriteria.andOrg_idEqualTo(orgId);
473
+		}
474
+		List<StorageChangeStoragehouseWorkTask> detailList = storageChangeStoragehouseWorkTaskService
475
+				.selectByExample(detailExamle);
476
+		modelMap.put("StorageChangeStoragehouseWorkTask", detailList);
477
+		return modelMap;
478
+	}
479
+
480
+	@SuppressWarnings("unlikely-arg-type")
481
+	@RequestMapping(value = "/present", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
482
+	@ApiOperation(value = "倒仓申请提交数据到省平台审批", notes = "倒仓申请提交数据到省平台审批")
483
+	@ApiImplicitParams({ @ApiImplicitParam(name = "changestorageJson", value = "倒仓数据json串", paramType = "query") })
484
+	public Map<String, Object> present(HttpServletRequest request, String changestorageJson) {
485
+		String str = "";
486
+		String jso = "";
487
+		String strs = "";
488
+		JsonConfig config = new JsonConfig(); 
489
+		//点击提交后修改审核状态
490
+		Map<String, Object> modelMap = new HashMap<String, Object>();
491
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
492
+		//主表
493
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
494
+		Criteria Criteria = example.createCriteria();
495
+		//子表
496
+		StorageChangeStoragehouseTaskDetailExample detailExamle = new StorageChangeStoragehouseTaskDetailExample();
497
+		com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample.Criteria detailCriteria = detailExamle
498
+				.createCriteria();
499
+		try {
500
+		// JSON字符串转对象
501
+		ObjectMapper mapper = new ObjectMapper();
502
+		StorageChangeStoragehouseTask storageChangeIsUpload = (StorageChangeStoragehouseTask) mapper
503
+				.readValue(changestorageJson, StorageChangeStoragehouseTask.class);
504
+		if (storageChangeIsUpload.getBusinessNo() != null && !"".equals(storageChangeIsUpload.getBusinessNo())) {
505
+			detailCriteria.andBusinessNoEqualTo(storageChangeIsUpload.getBusinessNo());
506
+			Criteria.andBusinessNoEqualTo(storageChangeIsUpload.getBusinessNo());
507
+		}
508
+		if (orgId != null && !"".equals(orgId)) {
509
+			detailCriteria.andOrg_idEqualTo(orgId);
510
+			Criteria.andOrgIdEqualTo(orgId);
511
+		}
512
+		//获取主表数据
513
+		jso = "{\"ChangeStoragehouseTask\":[";
514
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
515
+		for (StorageChangeStoragehouseTask storageChangeStoragehouseTask : list) {
516
+			config.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd"));  
517
+			net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(storageChangeStoragehouseTask,config);//将java对象转换为json对象
518
+			strs = strs + json.toString();
519
+		}
520
+		jso = jso + strs + "],";
521
+		//获取子表数据
522
+		List<StorageChangeStoragehouseTaskDetail> detailList = storageChangeStoragehouseTaskDetailService.selectByExample(detailExamle);
523
+		jso = jso+"\"StorageChangeStoragehouseTaskDetail\":[";
524
+		for (StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail : detailList) {
525
+			config.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd"));  
526
+			net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(storageChangeStoragehouseTaskDetail,config);//将java对象转换为json对象
527
+			str = str + json.toString() + ",";
528
+		}
529
+		if(str!=null && str.length()>0) {
530
+		str = str.substring(0, str.length()-1);
531
+		}
532
+		jso = jso + str + "]}";
533
+		
534
+		String url = changeUrl+"/business-management/changeStoragehous/save";
535
+        String count= HTTPUtils.doPost(url,jso);
536
+        if(count.contains("Success") || count.contains("200")){
537
+        	//判断IsUpload等于0为未上传数据
538
+        	if(storageChangeIsUpload.getIsUpload() == 0) {
539
+        		if (storageChangeIsUpload.getBusinessNo() != null && !"".equals(storageChangeIsUpload.getBusinessNo())) {
540
+        			Criteria.andBusinessNoEqualTo(storageChangeIsUpload.getBusinessNo());
541
+        		}
542
+        		if (orgId != null && !"".equals(orgId)) {
543
+        			Criteria.andOrgIdEqualTo(orgId);
544
+        		}
545
+        		for (StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail : detailList) {
546
+        			storageChangeStoragehouseTaskDetail.setApplyStatus(1);
547
+        			storageChangeStoragehouseTaskDetailService.updateStorageChangeStoragehouseTaskDetail(storageChangeStoragehouseTaskDetail);
548
+        		}
549
+        		storageChangeIsUpload.setIsUpload(1);
550
+        		storageChangeStoragehouseTaskService.updateStorageChangeStoragehouseTask(storageChangeIsUpload);
551
+        	}
552
+            modelMap.put("status", "success");
553
+            modelMap.put("msg", "成功!");
554
+        }
555
+	 } catch (Exception e){
556
+            e.printStackTrace();
557
+            modelMap.put("status", "error");
558
+            modelMap.put("msg", "保存失败!");
559
+        }
560
+		return modelMap;
561
+	}
562
+
563
+
564
+	@SuppressWarnings("unlikely-arg-type")
565
+	@RequestMapping(value = "/up", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
566
+	@ApiOperation(value = "提交数据到省平台审批", notes = "提交数据到省平台审批")
567
+	@ApiImplicitParams({ @ApiImplicitParam(name = "businessNo", value = "倒仓申请单号", paramType = "query") })
568
+	public Map<String, Object> up(HttpServletRequest request, String businessNo) {
569
+		String str = "";
570
+		String jso = "";
571
+		String strs = "";
572
+		JsonConfig config = new JsonConfig(); 
573
+		Map<String, Object> modelMap = new HashMap<String, Object>();
574
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
575
+		//主表
576
+		StorageChangeStoragehouseTaskExample example = new StorageChangeStoragehouseTaskExample();
577
+		Criteria Criteria = example.createCriteria();
578
+		//子表
579
+		StorageChangeStoragehouseTaskDetailExample detailExamle = new StorageChangeStoragehouseTaskDetailExample();
580
+		com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample.Criteria detailCriteria = detailExamle
581
+				.createCriteria();
582
+		if (businessNo != null && !"".equals(businessNo)) {
583
+			detailCriteria.andBusinessNoEqualTo(businessNo);
584
+			Criteria.andBusinessNoEqualTo(businessNo);
585
+		}
586
+		if (orgId != null && !"".equals(orgId)) {
587
+			detailCriteria.andOrg_idEqualTo(orgId);
588
+			Criteria.andOrgIdEqualTo(orgId);
589
+		}
590
+		//获取主表数据
591
+		jso = "{\"ChangeStoragehouseTask\":[";
592
+		List<StorageChangeStoragehouseTask> list = storageChangeStoragehouseTaskService.selectByExample(example);
593
+		for (StorageChangeStoragehouseTask storageChangeStoragehouseTask : list) {
594
+			config.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd"));  
595
+			net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(storageChangeStoragehouseTask,config);//将java对象转换为json对象
596
+			strs = strs + json.toString();
597
+		}
598
+		jso = jso + strs + "],";
599
+		//获取子表数据
600
+		List<StorageChangeStoragehouseTaskDetail> detailList = storageChangeStoragehouseTaskDetailService.selectByExample(detailExamle);
601
+		jso = jso+"\"StorageChangeStoragehouseTaskDetail\":[";
602
+		for (StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail : detailList) {
603
+			config.registerJsonValueProcessor(Date.class, new DateJsonValueProcessor("yyyy-MM-dd"));  
604
+			net.sf.json.JSONObject json = net.sf.json.JSONObject.fromObject(storageChangeStoragehouseTaskDetail,config);//将java对象转换为json对象
605
+			str = str + json.toString() + ",";
606
+		}
607
+		str = str.substring(0, str.length()-1);
608
+		jso = jso + str + "]}";
609
+		try {
610
+		String url = changeUrl+"/business-management/changeStoragehous/save";
611
+		
612
+        String count= HTTPUtils.doPost(url,jso);
613
+        
614
+        if(count.contains("Success") || count.contains("200")){
615
+            modelMap.put("status", "success");
616
+            modelMap.put("msg", "成功!");
617
+        }
618
+	 } catch (Exception e){
619
+            e.printStackTrace();
620
+            modelMap.put("status", "error");
621
+            modelMap.put("msg", "保存失败!");
622
+        }
623
+		return modelMap;
624
+	}
625
+	
626
+	@PostMapping(value = "/UpdateDcStatus")
627
+	@ApiOperation(value = "倒仓申请提交数据到省平台审批修改数据", notes = "倒仓申请提交数据到省平台审批修改数据")
628
+	public String UpdateDcStatus(String DcData) {
629
+		String retS = "Success";
630
+		StorageChangeStoragehouseTaskDetail detail = new StorageChangeStoragehouseTaskDetail();
631
+		try {
632
+			//修改主表状态和原因
633
+			ObjectMapper mapper = new ObjectMapper();
634
+			StorageChangeStoragehouseTask storageChangeIsUpload = (StorageChangeStoragehouseTask) mapper.readValue(DcData, StorageChangeStoragehouseTask.class);
635
+			storageChangeStoragehouseTaskService.updateDcStatus(storageChangeIsUpload);
636
+			//修改子表状态
637
+			detail.setApplyStatus(storageChangeIsUpload.getIsUpload());
638
+			detail.setBusinessNo(storageChangeIsUpload.getBusinessNo());
639
+			storageChangeStoragehouseTaskDetailService.updateDcStatus1(detail);
640
+		} catch (IOException e) {
641
+			return retS = "error";
642
+		}
643
+		return retS;
644
+	}
645
+}

+ 214 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageDumpController.java

@@ -0,0 +1,214 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.util.Date;
4
+import java.util.HashMap;
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+import javax.annotation.Resource;
9
+import javax.servlet.http.HttpServletRequest;
10
+
11
+import org.springframework.beans.factory.annotation.Value;
12
+import org.springframework.http.MediaType;
13
+import org.springframework.web.bind.annotation.RequestMapping;
14
+import org.springframework.web.bind.annotation.RequestMethod;
15
+import org.springframework.web.bind.annotation.RestController;
16
+
17
+import com.chinaitop.depot.storage.model.StorageDump;
18
+import com.chinaitop.depot.storage.model.StorageDumpExample;
19
+import com.chinaitop.depot.storage.model.StorageDumpExample.Criteria;
20
+import com.chinaitop.depot.storage.service.StorageDumpService;
21
+import com.chinaitop.depot.storage.utils.ParameterUtil;
22
+import com.chinaitop.depot.storage.utils.createKC;
23
+import com.fasterxml.jackson.core.type.TypeReference;
24
+import com.fasterxml.jackson.databind.ObjectMapper;
25
+import com.github.pagehelper.PageHelper;
26
+import com.github.pagehelper.PageInfo;
27
+
28
+import io.swagger.annotations.Api;
29
+import io.swagger.annotations.ApiImplicitParam;
30
+import io.swagger.annotations.ApiImplicitParams;
31
+import io.swagger.annotations.ApiOperation;
32
+
33
+@RestController
34
+@RequestMapping(value="/StorageDumpController")
35
+@Api(value= "StorageDumpController", description = "转储管理控制类")
36
+public class StorageDumpController {
37
+
38
+	@Resource
39
+	private StorageDumpService storageDumpService;
40
+	
41
+	// 获取ip地址
42
+    @Value("${crk-webservice}")
43
+    private String url;
44
+    
45
+	@RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
46
+	@ApiOperation(value="查询转储管理列表", notes = "查询转储管理信息列表,支持分页")
47
+	@ApiImplicitParams({
48
+			@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
49
+			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
50
+			@ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
51
+			@ApiImplicitParam(name = "wareId", value = "货位ID", paramType = "query"),
52
+			@ApiImplicitParam(name = "ylsxz", value = "原粮食性质", paramType = "query"),
53
+			@ApiImplicitParam(name = "xlsxz", value = "转储后性质", paramType = "query"),
54
+			@ApiImplicitParam(name = "startTime", value = "业务发生起始时间", paramType = "query"),
55
+			@ApiImplicitParam(name = "endTime", value = "业务发生终止时间", paramType = "query"),
56
+			@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query")
57
+	})
58
+	public PageInfo<StorageDump> getList(Integer pageNum, Integer pageSize,
59
+										Integer houseId, Integer wareId, Integer ylsxz, Integer xlsxz, 
60
+										String startTime, String endTime, Integer orgId) {
61
+
62
+		StorageDumpExample example = new StorageDumpExample();
63
+		Criteria criteria = example.createCriteria();
64
+
65
+		/* 仓房ID */
66
+		if (null != houseId) {
67
+			criteria.andHouseIdEqualTo(houseId);
68
+		}
69
+
70
+		/* 货位id */
71
+		if (null != wareId) {
72
+			criteria.andWareIdEqualTo(wareId);
73
+		}
74
+
75
+		/* 原粮食性质 */
76
+		if (null != ylsxz) {
77
+			criteria.andYLsxzEqualTo(ylsxz);
78
+		}
79
+
80
+		/* 变动后粮食性质 */
81
+		if (null != xlsxz) {
82
+			criteria.andXLsxzEqualTo(xlsxz);
83
+		}
84
+
85
+		/* 变动后粮食性质 */
86
+		if (null != xlsxz) {
87
+			criteria.andXLsxzEqualTo(xlsxz);
88
+		}
89
+
90
+		if (null != startTime && !"".equals(startTime)) {
91
+			Date starDate = ParameterUtil.string2datetime(startTime + " 00:00:00");
92
+			criteria.andBusinessCreateTimeGreaterThanOrEqualTo(starDate);
93
+		}
94
+
95
+		if (ParameterUtil.isnotnull(endTime)) {
96
+			Date endDate = ParameterUtil.string2datetime(endTime + " 23:59:59");
97
+			criteria.andBusinessCreateTimeLessThanOrEqualTo(endDate);
98
+		}
99
+
100
+		/* 单位 */
101
+		if (null != orgId) {
102
+			criteria.andOrgIdEqualTo(orgId);
103
+		}
104
+
105
+		if (pageNum!=null && pageSize!=null) {
106
+			PageHelper.startPage(pageNum, pageSize);
107
+		}
108
+
109
+		List<StorageDump> list = storageDumpService.findCondition(example);
110
+
111
+		PageInfo<StorageDump> pageInfo = new PageInfo<StorageDump>(list);
112
+
113
+		return pageInfo;
114
+	}
115
+
116
+	@RequestMapping(value = "/edit",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
117
+	@ApiOperation(value="查询转储数据详情", notes = "查询转储数据详情")
118
+	@ApiImplicitParams({
119
+			@ApiImplicitParam(name = "id", value = "数据ID", paramType = "query"),
120
+			@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query")
121
+	})
122
+	public StorageDump edit(Integer id, Integer orgId) {
123
+
124
+		StorageDump dump = null;
125
+
126
+		if (0 != id) {
127
+			dump = storageDumpService.findByParmaryKey(id);
128
+		} else {
129
+			dump = new StorageDump();
130
+			dump.setBusinessCreateTime(new Date());
131
+		}
132
+
133
+		return dump;
134
+	}
135
+
136
+	@RequestMapping(value = "/selectYswData",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
137
+	@ApiOperation(value="查询验收完的数据", notes = "查询验收完的数据")
138
+	@ApiImplicitParams({
139
+		@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
140
+		@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query")
141
+	})
142
+	public PageInfo<Map<String, Object>> selectYswData(HttpServletRequest request, Integer pageNum, Integer pageSize) {
143
+
144
+		List<Map<String, Object>> list = null;
145
+		PageInfo<Map<String, Object>> pageInfo = null;
146
+
147
+		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
148
+
149
+		if (pageNum!=null && pageSize!=null) {
150
+			PageHelper.startPage(pageNum, pageSize);
151
+		}
152
+
153
+		try {
154
+			list = storageDumpService.selectYswData(orgId);
155
+			pageInfo = new PageInfo<Map<String, Object>>(list);
156
+		} catch (Exception e) {
157
+			e.printStackTrace();
158
+		}
159
+
160
+		return pageInfo;
161
+	}
162
+
163
+	@RequestMapping(value = "/save",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
164
+	@ApiOperation(value="保存转储数数据记录", notes = "保存转储数数据记录")
165
+	@ApiImplicitParams({
166
+			@ApiImplicitParam(name = "dumpJson", value = "数据对象串", paramType = "form"),
167
+			@ApiImplicitParam(name = "crk_ip", value = "出入库连接IP", paramType = "form")
168
+	})
169
+	public Map<String, Object> save(String dumpJson, String crk_ip) {
170
+
171
+		Map<String, Object> modelMap = new HashMap<String, Object>();
172
+		String crk_adr = "";
173
+
174
+		try {
175
+			/* JSON字符串转对象 */
176
+			ObjectMapper mapper = new ObjectMapper();
177
+			List<StorageDump> storageDumpList = mapper.readValue(dumpJson, new TypeReference<List<StorageDump>>(){});
178
+			for (StorageDump storageDump : storageDumpList) {
179
+
180
+				/* 先调用出入库接口生成转储的业务的台账信息,生成失败不可保存转储数据***start */
181
+				Object[] parameters = new Object[9];
182
+				parameters[0] = storageDump.getOrgId() + "";
183
+				parameters[1] = storageDump.getLspz() + "";
184
+				//parameters[2] = null;
185
+				parameters[3] = storageDump.getHouseId() + "";
186
+				parameters[4] = storageDump.getWareId() + "";
187
+				parameters[5] = storageDump.getxLsxz() + "";
188
+				parameters[6] = storageDump.getyLsxz() + "";
189
+				parameters[7] = storageDump.getClsl() + "";
190
+				parameters[8] = 1 + ""; //1:新增;2:修改;3:删除
191
+				crk_adr = crk_ip+url;
192
+				String str = createKC.createKC("ChangeGrainAttribute", crk_adr, parameters);
193
+				/* *****end******/
194
+				//只有成功生成库存才可以保存,否则不可以保存
195
+				if ("true".equals(str)) {
196
+					storageDump.setCreateTime(new Date());  //创建时间
197
+					storageDumpService.save(storageDump);
198
+				} else {
199
+					modelMap.put("status", "error");
200
+					modelMap.put("msg", "保存失败,库存同步异常,请联系管理员!");
201
+					return modelMap;
202
+				}
203
+			}
204
+
205
+			modelMap.put("status", "success");
206
+		} catch (Exception e) {
207
+			e.printStackTrace();
208
+			modelMap.put("status", "error");
209
+			modelMap.put("msg", "保存失败,库存同步异常,请联系管理员!");
210
+		}
211
+		return modelMap;
212
+	}
213
+
214
+}

+ 115 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageFoodbasicInfoCheckController.java

@@ -0,0 +1,115 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoCheck;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoCheckExample;
5
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoCheckService;
6
+import com.chinaitop.depot.storage.utils.ParameterUtil;
7
+import com.github.pagehelper.PageHelper;
8
+import com.github.pagehelper.PageInfo;
9
+import io.swagger.annotations.Api;
10
+import io.swagger.annotations.ApiImplicitParam;
11
+import io.swagger.annotations.ApiImplicitParams;
12
+import io.swagger.annotations.ApiOperation;
13
+import org.springframework.http.MediaType;
14
+import org.springframework.web.bind.annotation.RequestMapping;
15
+import org.springframework.web.bind.annotation.RequestMethod;
16
+import org.springframework.web.bind.annotation.RestController;
17
+
18
+import javax.annotation.Resource;
19
+import java.util.HashMap;
20
+import java.util.List;
21
+import java.util.Map;
22
+
23
+/**
24
+ * @author sunhongbing
25
+ * @Date 2017/10/19
26
+ */
27
+@RestController
28
+@RequestMapping(value={"/foodbasicinfocheck"})
29
+@Api(value= "StorageFoodbasicInfoCheckController", description = "粮情专卡中质量检测记录控制类")
30
+public class StorageFoodbasicInfoCheckController {
31
+    @Resource
32
+    private StorageFoodbasicInfoCheckService foodbasicInfoCheckService;
33
+
34
+    /**
35
+     * 粮食质量检测记录,分页获取
36
+     */
37
+    @RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
38
+    @ApiOperation(value="查询粮食质量检测记录列表", notes = "查询粮食质量检测记录列表,支持分页")
39
+    @ApiImplicitParams({
40
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
41
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
42
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
43
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
44
+            @ApiImplicitParam(name = "foodbasicinfoId", value = "对应粮情卡Id", paramType = "query")
45
+    })
46
+    public PageInfo<StorageFoodbasicInfoCheck> listPage(Integer pageNum, Integer pageSize, Integer houseId, Integer warehouseId, Integer foodbasicinfoId){
47
+
48
+        StorageFoodbasicInfoCheckExample foodbasicInfoCheckExample = new StorageFoodbasicInfoCheckExample();
49
+        StorageFoodbasicInfoCheckExample.Criteria criteria = foodbasicInfoCheckExample.createCriteria();
50
+        if(ParameterUtil.isnotnull(houseId)){
51
+            criteria.andHouseIdEqualTo(houseId);
52
+        }
53
+        if(ParameterUtil.isnotnull(warehouseId)){
54
+            criteria.andWarehouseIdEqualTo(warehouseId);
55
+        }
56
+        if(ParameterUtil.isnotnull(foodbasicinfoId)){
57
+            criteria.andFoodbasicinfoIdEqualTo(foodbasicinfoId);
58
+        }
59
+
60
+        PageHelper.startPage(pageNum, pageSize);
61
+        List<StorageFoodbasicInfoCheck> list = foodbasicInfoCheckService.queryByFoodbasicInfoCheck(foodbasicInfoCheckExample);
62
+
63
+        PageInfo<StorageFoodbasicInfoCheck> pageInfo = new PageInfo<StorageFoodbasicInfoCheck>(list);
64
+        return pageInfo;
65
+    }
66
+
67
+    /**
68
+     * 新增粮食质量检测记录,从第三方检查选择数据保存到粮食质量检测记录中
69
+     * @param houseId
70
+     * @param warehouseId
71
+     * @param foodbasicinfoId
72
+     * @param qualitycheckId
73
+     * @return
74
+     */
75
+    @RequestMapping(value="/saveSelectcheck", produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
76
+    @ApiOperation(value="新增粮食质量检测记录(从第三方检查选择数据保存到粮食质量检测记录中)", notes = "新增粮食质量检测记录,从第三方检查选择数据保存到粮食质量检测记录中")
77
+    @ApiImplicitParams({
78
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "form"),
79
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "form"),
80
+            @ApiImplicitParam(name = "foodbasicinfoId", value = "对应粮情卡Id", paramType = "form"),
81
+            @ApiImplicitParam(name = "qualitycheckId", value = "对应质量管理信息Id", paramType = "form"),
82
+            @ApiImplicitParam(name = "orgId", value = "orgId", paramType = "form")
83
+    })
84
+    public Map<String, Object> save(Integer houseId,Integer warehouseId,Integer foodbasicinfoId, Integer qualitycheckId,Integer orgId) {
85
+        Map<String, Object> modelMap = new HashMap<>();
86
+        StorageFoodbasicInfoCheck foodbasicInfoCheck = new StorageFoodbasicInfoCheck();
87
+        try {
88
+            foodbasicInfoCheck.setHouseId(houseId);
89
+            foodbasicInfoCheck.setWarehouseId(warehouseId);
90
+            foodbasicInfoCheck.setFoodbasicinfoId(foodbasicinfoId);
91
+            foodbasicInfoCheck.setQualitycheckId(qualitycheckId);
92
+            foodbasicInfoCheck.setOrgId(orgId);
93
+
94
+            foodbasicInfoCheckService.save(foodbasicInfoCheck);
95
+            modelMap.put("status", "success");
96
+        } catch (Exception e) {
97
+            modelMap.put("status", "error");
98
+            e.printStackTrace();
99
+        }
100
+        return modelMap;
101
+    }
102
+    /**
103
+     * 根据id加载对应数据
104
+     * @param id
105
+     * @return
106
+     */
107
+    @RequestMapping(value = "/loadDataById",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
108
+    @ApiOperation(value="根据id加载粮食质量检测记录", notes = "根据id加载粮食质量检测记录")
109
+    @ApiImplicitParams({
110
+            @ApiImplicitParam(name = "id", value = "id", paramType = "query")
111
+    })
112
+    public StorageFoodbasicInfoCheck loadDataById(int id){
113
+        return foodbasicInfoCheckService.loadDataById(id);
114
+    }
115
+}

+ 248 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageFoodbasicInfoController.java

@@ -0,0 +1,248 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import com.chinaitop.depot.storage.model.StorageFoodbasicinfo;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicinfoExample;
5
+import com.chinaitop.depot.storage.model.StorageFoodbasicinfoExample.Criteria;
6
+import com.chinaitop.depot.storage.model.StorageQualitycheckSon;
7
+import com.chinaitop.depot.storage.model.vo.StorageQualitycheckVo;
8
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoService;
9
+import com.chinaitop.depot.storage.service.StorageQualitycheckSonService;
10
+import com.chinaitop.depot.storage.utils.ParameterUtil;
11
+import com.fasterxml.jackson.databind.ObjectMapper;
12
+import com.github.pagehelper.PageHelper;
13
+import com.github.pagehelper.PageInfo;
14
+import io.swagger.annotations.Api;
15
+import io.swagger.annotations.ApiImplicitParam;
16
+import io.swagger.annotations.ApiImplicitParams;
17
+import io.swagger.annotations.ApiOperation;
18
+import org.springframework.http.MediaType;
19
+import org.springframework.web.bind.annotation.RequestMapping;
20
+import org.springframework.web.bind.annotation.RequestMethod;
21
+import org.springframework.web.bind.annotation.RestController;
22
+
23
+import javax.annotation.Resource;
24
+import java.util.HashMap;
25
+import java.util.List;
26
+import java.util.Map;
27
+
28
+/**
29
+ * @author sunhongbing
30
+ * @Date 2017/10/26
31
+ */
32
+@RestController
33
+@RequestMapping(value={"/foodbasicinfo"})
34
+@Api(value= "StorageFoodbasicInfoController", description = "粮情专卡控制类")
35
+public class StorageFoodbasicInfoController {
36
+    @Resource
37
+    private StorageFoodbasicInfoService foodbasicInfoService;
38
+
39
+    @Resource
40
+    private StorageQualitycheckSonService qualitycheckSonService;
41
+
42
+    /**
43
+     * 得到当前仓的粮情专卡
44
+     * @return
45
+     */
46
+    @RequestMapping(value="/getFoodbasicInfoByHouseId",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
47
+    @ApiOperation(value="根据仓号,货位号查找对应粮情专卡", notes = "根据仓号,货位号查找对应粮情专卡")
48
+    @ApiImplicitParams({
49
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
50
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query")
51
+    })
52
+    public List<StorageFoodbasicinfo> getFoodbasicInfoByHouseId(Integer houseId, Integer warehouseId){
53
+    	StorageFoodbasicinfo foodbasicinfo = new StorageFoodbasicinfo();
54
+        if(houseId != null) {
55
+            foodbasicinfo.setHouseId(houseId);
56
+        }
57
+        if(warehouseId != null) {
58
+            foodbasicinfo.setWarehouseId(warehouseId);
59
+        }
60
+    	List<StorageFoodbasicinfo>  list = foodbasicInfoService.getByHouseIdAndWarehouseId(foodbasicinfo);
61
+       
62
+    	return list;
63
+    }
64
+    /**
65
+     * 新增粮情专卡的数据进行保存
66
+     * @param foodbasicinfoJson
67
+     * @return
68
+     */
69
+    @RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
70
+    @ApiOperation(value="封仓生成粮情专卡", notes = "封仓生成粮情专卡")
71
+    @ApiImplicitParams({
72
+            @ApiImplicitParam(name = "foodbasicinfoJson", value = "粮情专卡基本信息JSON数据对象", paramType = "form"),
73
+            @ApiImplicitParam(name = "storageQualitycheckJson", value = "粮情专卡JSON数据对象", paramType = "form"),
74
+            @ApiImplicitParam(name = "orgId", value = "用户标识", paramType = "orgId")
75
+    })
76
+    public Map<String, Object> save(String foodbasicinfoJson,String storageQualitycheckJson,Integer orgId) {
77
+        Map<String, Object> modelMap = new HashMap<>();
78
+        ObjectMapper objectMapper=new ObjectMapper();
79
+        StorageFoodbasicinfo foodbasicInfo = new StorageFoodbasicinfo();
80
+        StorageQualitycheckVo qualitycheckVo = new StorageQualitycheckVo();
81
+        try {
82
+            //①保存储粮信息
83
+            qualitycheckVo = (StorageQualitycheckVo)objectMapper.readValue(storageQualitycheckJson,StorageQualitycheckVo.class);
84
+            foodbasicInfo = (StorageFoodbasicinfo)objectMapper.readValue(foodbasicinfoJson,StorageFoodbasicinfo.class);
85
+            foodbasicInfoService.save(foodbasicInfo,qualitycheckVo,orgId);
86
+            modelMap.put("status", "success");
87
+        } catch (Exception e) {
88
+            modelMap.put("status", "error");
89
+            e.printStackTrace();
90
+        }
91
+        return modelMap;
92
+    }
93
+
94
+
95
+    /**
96
+     * 得到粮情专卡列表pageinfo
97
+     */
98
+    @RequestMapping(value = "/basicinfoPageInfo",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
99
+    @ApiOperation(value="查询粮情专卡列表", notes = "查询粮情专卡列表,支持分页")
100
+    @ApiImplicitParams({
101
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
102
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
103
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
104
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query")
105
+    })
106
+    public PageInfo<StorageFoodbasicinfo> basicinfoPageInfo(Integer pageNum, Integer pageSize ,
107
+                                                            Integer houseId, Integer warehouseId){
108
+        StorageFoodbasicinfo foodbasicinfo = new StorageFoodbasicinfo();
109
+        if(houseId != null){
110
+            foodbasicinfo.setHouseId(houseId);
111
+        }
112
+        if(warehouseId != null){
113
+            foodbasicinfo.setWarehouseId(warehouseId);
114
+        }
115
+        if (pageNum!=null && pageSize!=null) {
116
+            PageHelper.startPage(pageNum, pageSize);
117
+        }
118
+        //0:最新数据   1:历史数据
119
+        foodbasicinfo.setHistoryStatus(0);
120
+        List<StorageFoodbasicinfo>  list = foodbasicInfoService.selectByExample(foodbasicinfo);
121
+
122
+        PageInfo<StorageFoodbasicinfo> pageInfo = new PageInfo<StorageFoodbasicinfo>(list);
123
+        return pageInfo;
124
+
125
+    }
126
+
127
+
128
+    /**
129
+     * 根据id加载对应数据
130
+     * @param id
131
+     * @return
132
+     * @throws Exception 
133
+     */
134
+    @RequestMapping(value = "/loadDataById", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
135
+    @ApiOperation(value="根据id加载粮情专卡信息", notes = "根据id加载粮情专卡信息")
136
+    @ApiImplicitParams({
137
+            @ApiImplicitParam(name = "id", value = "id", paramType = "query")
138
+    })
139
+    public StorageFoodbasicinfo loadDataById(Integer id) throws Exception{
140
+        if(id != null && !"".equals(id)){
141
+        	StorageFoodbasicinfo foodbasicinfo = foodbasicInfoService.loadDataById(id);
142
+            List<StorageFoodbasicinfo>  list = foodbasicInfoService.getByHouseIdAndWarehouseId(foodbasicinfo);
143
+			if (list.size() > 0 && list != null){
144
+
145
+                foodbasicinfo = list.get(0);
146
+
147
+                List<StorageQualitycheckSon> SqsList =  qualitycheckSonService.getQualitycheckSonByFoodbasicinfoCheck(list.get(0).getId());
148
+                for(StorageQualitycheckSon sqk : SqsList){
149
+                    if(sqk.getNumbering()== 6996 ){
150
+                        foodbasicinfo.setFatIndex(sqk.getSetValue());
151
+                        continue;
152
+                    }
153
+                    if(sqk.getNumbering() == 6995 ){
154
+                        foodbasicinfo.setPeroxideValue(sqk.getSetValue());
155
+                        continue;
156
+                    }
157
+                }
158
+            }
159
+            return foodbasicinfo;
160
+        }else {
161
+            return new StorageFoodbasicinfo();
162
+        }
163
+    }
164
+
165
+    /**
166
+     * 查询粮情转卡数据--粮情分析报告专用
167
+     * @return
168
+     */
169
+    @RequestMapping(value="/getGrainSituation", produces = MediaType.APPLICATION_JSON_VALUE, method= RequestMethod.GET)
170
+    @ApiOperation(value="查询一条粮情专卡数据", notes = "查询一条粮情专卡数据")
171
+    @ApiImplicitParams({
172
+            @ApiImplicitParam(name="houseId", value="仓房ID", paramType="query"),
173
+            @ApiImplicitParam(name="wareId", value="货位ID", paramType="query")
174
+    })
175
+    public Map<String, Object> getGrainSituation(Integer houseId, Integer wareId){
176
+        Map<String, Object> map = new HashMap<>();
177
+
178
+        StorageFoodbasicinfo foodbasicinfo = new StorageFoodbasicinfo();
179
+        if(houseId != null){
180
+            foodbasicinfo.setHouseId(houseId);
181
+        }
182
+        if(wareId != null){
183
+            foodbasicinfo.setWarehouseId(wareId);
184
+        }
185
+        foodbasicinfo.setHistoryStatus(0);
186
+        List<StorageFoodbasicinfo> basicInfo = foodbasicInfoService.selectByExample(foodbasicinfo);
187
+
188
+        if (null != basicInfo && basicInfo.size() > 0) {
189
+            map.put("houseType", Integer.parseInt(basicInfo.get(0).getHouseType()));
190
+            map.put("subType", basicInfo.get(0).getSubType());
191
+            map.put("recorder", basicInfo.get(0).getRecorder());
192
+        }
193
+        return map;
194
+    }
195
+
196
+    @RequestMapping(value = "/setFoodBasicInfoHistoryStatus", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
197
+    @ApiOperation(value = "根据仓房和货位名称更新当前粮情专卡为历史记录", notes = "根据仓房和货位名称更新当前粮情专卡为历史记录")
198
+    @ApiImplicitParams({
199
+            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "form"),
200
+            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "form")
201
+    })
202
+    public Map<String, Object> setFoodBasicInfoHistoryStatus(Integer houseId, Integer warehouseId) {
203
+        Map<String, Object> modelMap = new HashMap<>();
204
+        if (ParameterUtil.isnotnull(houseId) &&ParameterUtil.isnotnull(warehouseId) ) {
205
+            foodbasicInfoService.setFoodBasicInfoHistoryStatus(houseId,warehouseId);
206
+        }
207
+        modelMap.put("status", "success");
208
+        return modelMap;
209
+    }
210
+
211
+    @RequestMapping(value = "/findByCondition", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
212
+    @ApiOperation(value = "根据条件查询粮情专卡数据", notes = "根据条件查询粮情专卡数据")
213
+    @ApiImplicitParams({
214
+            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "query"),
215
+            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "query"),
216
+            @ApiImplicitParam(name = "lsnq", value = "粮食年期", paramType = "query"),
217
+            @ApiImplicitParam(name = "lspz", value = "粮食品种", paramType = "query"),
218
+            @ApiImplicitParam(name = "lsxz", value = "粮食性质", paramType = "query")
219
+    })
220
+    public List<StorageFoodbasicinfo> findByCondition(Integer houseId, Integer warehouseId, Integer lsnq, Integer lspz, Integer lsxz) {
221
+
222
+    	List<StorageFoodbasicinfo> list = null;
223
+
224
+    	StorageFoodbasicinfoExample example = new StorageFoodbasicinfoExample();
225
+    	Criteria criteria = example.createCriteria();
226
+
227
+        if (ParameterUtil.isnotnull(houseId)) {
228
+        	criteria.andHouseIdEqualTo(houseId);
229
+        }
230
+        if (ParameterUtil.isnotnull(warehouseId) ) {
231
+        	criteria.andWarehouseIdEqualTo(warehouseId);
232
+        }
233
+        if (ParameterUtil.isnotnull(lsnq)) {
234
+        	criteria.andGrowYearEqualTo(lsnq);
235
+        }
236
+        if (ParameterUtil.isnotnull(lspz) ) {
237
+        	criteria.andSubTypeDetailedEqualTo(lspz);
238
+        }
239
+        if (ParameterUtil.isnotnull(lsxz)) {
240
+        	criteria.andQualityEqualTo(lsxz.toString());
241
+        }
242
+
243
+        list = foodbasicInfoService.findByCondition(example);
244
+
245
+        return list;
246
+    }
247
+
248
+}

+ 147 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageFoodbasicInfoLocationController.java

@@ -0,0 +1,147 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicinfo;
5
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoLocationService;
6
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoService;
7
+import com.chinaitop.depot.storage.utils.ParameterUtil;
8
+import com.fasterxml.jackson.databind.ObjectMapper;
9
+import com.github.pagehelper.PageHelper;
10
+import com.github.pagehelper.PageInfo;
11
+import io.swagger.annotations.Api;
12
+import io.swagger.annotations.ApiImplicitParam;
13
+import io.swagger.annotations.ApiImplicitParams;
14
+import io.swagger.annotations.ApiOperation;
15
+import org.springframework.http.MediaType;
16
+import org.springframework.web.bind.annotation.RequestMapping;
17
+import org.springframework.web.bind.annotation.RequestMethod;
18
+import org.springframework.web.bind.annotation.RestController;
19
+
20
+import javax.annotation.Resource;
21
+import java.io.IOException;
22
+import java.util.HashMap;
23
+import java.util.List;
24
+import java.util.Map;
25
+
26
+/**
27
+ * @author sunhongbing
28
+ * @Date 2017/10/20
29
+ */
30
+@RestController
31
+@RequestMapping(value = {"/foodbasicinfolocation"})
32
+@Api(value= "StorageFoodbasicInfoLocationController", description = "粮情专卡中货位变更控制类")
33
+public class StorageFoodbasicInfoLocationController {
34
+    @Resource
35
+    private StorageFoodbasicInfoLocationService foodbasicInfoLocationService;
36
+    @Resource
37
+    private StorageFoodbasicInfoService foodbasicInfoService;
38
+    /**
39
+     * 粮食基本信息货位变更记录分页获取
40
+     * @throws Exception 
41
+     */
42
+    @RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
43
+    @ApiOperation(value="查询粮食基本信息货位变更记录列表", notes = "查询粮食基本信息货位变更记录列表,支持分页")
44
+    @ApiImplicitParams({
45
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
46
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
47
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
48
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
49
+            @ApiImplicitParam(name = "foodbasicinfoId", value = "对应粮情卡Id", paramType = "query")
50
+    })
51
+    public PageInfo<StorageFoodbasicInfoLocation> listPage(Integer pageNum, Integer pageSize, Integer houseId, Integer warehouseId, Integer foodbasicinfoId) throws Exception{
52
+
53
+    	StorageFoodbasicInfoLocation location = new StorageFoodbasicInfoLocation();
54
+        if(houseId != null){
55
+            location.setHouseId(houseId);
56
+        }
57
+        if(warehouseId != null){
58
+        	location.setWarehouseId(warehouseId);
59
+        }
60
+        if(foodbasicinfoId != null){
61
+            location.setFoodbasicinfoId(foodbasicinfoId);
62
+        }
63
+        if(pageNum !=null && pageSize != null){
64
+            PageHelper.startPage(pageNum, pageSize);
65
+        }
66
+        List<StorageFoodbasicInfoLocation> list = foodbasicInfoLocationService.queryByFoodbasicInfoLocation(location);
67
+        PageInfo<StorageFoodbasicInfoLocation> pageInfo = new PageInfo<StorageFoodbasicInfoLocation>(list);
68
+        return pageInfo;
69
+    }
70
+
71
+    /**
72
+     * 新增粮食基本信息货位变更记录
73
+     * @param foodinfoLocationJson
74
+     * @return
75
+     */
76
+    @RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
77
+    @ApiOperation(value="新增粮食基本信息货位变更记录", notes = "新增粮食基本信息货位变更记录")
78
+    @ApiImplicitParams({
79
+            @ApiImplicitParam(name = "foodinfoLocationJson", value = "货位变更记录JSON数据", paramType = "form"),
80
+            @ApiImplicitParam(name = "warehouseCode", value = "新货位编码", paramType = "form"),
81
+            @ApiImplicitParam(name = "orgId", value = "登陆者Id", paramType = "form"),
82
+    })
83
+    public Map<String, Object> save(String foodinfoLocationJson,Integer orgId) {
84
+        Map<String, Object> modelMap = new HashMap<>();
85
+        // JSON字符串转对象
86
+        ObjectMapper mapper = new ObjectMapper();
87
+        StorageFoodbasicInfoLocation foodbasicInfoLocation = null;
88
+        try {
89
+            foodbasicInfoLocation = (StorageFoodbasicInfoLocation)mapper.readValue(foodinfoLocationJson, StorageFoodbasicInfoLocation.class);
90
+            foodbasicInfoLocation.setNewWarehouseCode(foodbasicInfoLocation.getWarehouseCode());
91
+            foodbasicInfoLocation.setOrgId(orgId);
92
+
93
+            //关联粮情专卡表
94
+            Integer houseId = foodbasicInfoLocation.getHouseId();
95
+            Integer warehouseId = foodbasicInfoLocation.getWarehouseId();
96
+
97
+            if(ParameterUtil.isnotnull(houseId) && ParameterUtil.isnotnull(warehouseId)){
98
+                StorageFoodbasicinfo foodbasicinfo = new StorageFoodbasicinfo();
99
+
100
+                if (houseId != null) {
101
+                    foodbasicinfo.setHouseId(houseId);
102
+                }
103
+                if (warehouseId != null) {
104
+                    foodbasicinfo.setWarehouseId(warehouseId);
105
+                }
106
+
107
+                List<StorageFoodbasicinfo>  list = foodbasicInfoService.getByHouseIdAndWarehouseId(foodbasicinfo);
108
+
109
+                Integer foodbaseInfoId = null;
110
+                if(list.size() > 0 && list != null){
111
+                    foodbasicinfo = list.get(0);
112
+                }
113
+                if(foodbasicinfo != null){
114
+                    foodbaseInfoId = foodbasicinfo.getId();
115
+                }
116
+                if(foodbaseInfoId != null){
117
+                    foodbasicInfoLocation.setFoodbasicinfoId(foodbaseInfoId);
118
+                }
119
+
120
+            }
121
+            foodbasicInfoLocationService.save(foodbasicInfoLocation);
122
+            modelMap.put("status", "success");
123
+        } catch (IOException e) {
124
+            modelMap.put("status", "error");
125
+            e.printStackTrace();
126
+        }
127
+        return modelMap;
128
+    }
129
+
130
+    /**
131
+     * 根据id加载对应数据
132
+     * @param id
133
+     * @return
134
+     */
135
+    @RequestMapping(value = "/loadDataById", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
136
+    @ApiOperation(value="根据id加载货位变更记录", notes = "根据id加载货位变更记录")
137
+    @ApiImplicitParams({
138
+            @ApiImplicitParam(name = "id", value = "id", paramType = "query")
139
+    })
140
+    public StorageFoodbasicInfoLocation loadDataById(Integer id){
141
+        if(id != null && !"".equals(id)){
142
+            return foodbasicInfoLocationService.loadDataById(id);
143
+        }else {
144
+            return new StorageFoodbasicInfoLocation();
145
+        }
146
+    }
147
+}

+ 271 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageOverheadSetController.java

@@ -0,0 +1,271 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.text.DateFormat;
4
+import java.text.ParseException;
5
+import java.text.SimpleDateFormat;
6
+import java.util.ArrayList;
7
+import java.util.Calendar;
8
+import java.util.Date;
9
+import java.util.HashMap;
10
+import java.util.List;
11
+import java.util.Map;
12
+
13
+import javax.annotation.Resource;
14
+import javax.servlet.http.HttpServletRequest;
15
+
16
+import org.apache.commons.lang.ObjectUtils;
17
+import org.springframework.http.MediaType;
18
+import org.springframework.web.bind.annotation.RequestMapping;
19
+import org.springframework.web.bind.annotation.RequestMethod;
20
+import org.springframework.web.bind.annotation.RestController;
21
+
22
+import com.alibaba.fastjson.JSONArray;
23
+import com.alibaba.fastjson.JSONObject;
24
+import com.chinaitop.depot.storage.model.StorageOverheadSet;
25
+import com.chinaitop.depot.storage.model.StorageOverheadSetExample;
26
+import com.chinaitop.depot.storage.model.StorageOverheadSetExample.Criteria;
27
+import com.chinaitop.depot.storage.service.StorageOverheadSetService;
28
+import com.fasterxml.jackson.databind.ObjectMapper;
29
+import com.github.pagehelper.PageHelper;
30
+import com.github.pagehelper.PageInfo;
31
+
32
+import io.swagger.annotations.Api;
33
+import io.swagger.annotations.ApiImplicitParam;
34
+import io.swagger.annotations.ApiImplicitParams;
35
+import io.swagger.annotations.ApiOperation;
36
+
37
+@RestController
38
+@RequestMapping(value="/StorageOverheadSetController")
39
+@Api(value= "StorageOverheadSetController", description = "架空期设置控制类")
40
+public class StorageOverheadSetController {
41
+
42
+	@Resource
43
+	private StorageOverheadSetService storageOverheadSetService;
44
+
45
+	@RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
46
+	@ApiOperation(value="查询架空期设置列表", notes = "查询架空期设置信息列表,支持分页")
47
+	@ApiImplicitParams({
48
+			@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
49
+			@ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query")
50
+	})
51
+	public PageInfo<StorageOverheadSet> getList(Integer pageNum, Integer pageSize, HttpServletRequest request) {
52
+
53
+		String orgId = ObjectUtils.toString(request.getSession().getAttribute("orgId"), "");
54
+
55
+		StorageOverheadSetExample example = new StorageOverheadSetExample();
56
+		Criteria criteria = example.createCriteria();
57
+
58
+		/* 单位 */
59
+		if (null != orgId) {
60
+			criteria.andOrgIdEqualTo(Integer.parseInt(orgId));
61
+		}
62
+
63
+		if (pageNum!=null && pageSize!=null) {
64
+			PageHelper.startPage(pageNum, pageSize);
65
+		}
66
+
67
+		List<StorageOverheadSet> list = storageOverheadSetService.findConditions(example);
68
+
69
+		PageInfo<StorageOverheadSet> pageInfo = new PageInfo<StorageOverheadSet>(list);
70
+
71
+		return pageInfo;
72
+	}
73
+
74
+	@RequestMapping(value = "/edit",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
75
+	@ApiOperation(value="查询架空期设置数据详情", notes = "查询架空期设置数据详情")
76
+	@ApiImplicitParams({
77
+			@ApiImplicitParam(name = "id", value = "数据ID", paramType = "query")
78
+	})
79
+	public StorageOverheadSet edit(Integer id) {
80
+
81
+		StorageOverheadSet overheadSet = null;
82
+
83
+		if (0 != id) {
84
+			overheadSet = storageOverheadSetService.findByKeyCondition(id);
85
+		} else {
86
+			overheadSet = new StorageOverheadSet();
87
+		}
88
+
89
+		return overheadSet;
90
+	}
91
+
92
+	@RequestMapping(value = "/save",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
93
+	@ApiOperation(value="保存架空期设置数据记录", notes = "保存架空期设置数数据记录")
94
+	@ApiImplicitParams({
95
+			@ApiImplicitParam(name = "overheadSetJson", value = "数据对象串", paramType = "form")
96
+	})
97
+	public Map<String, Object> save(String overheadSetJson) {
98
+
99
+		Map<String, Object> modelMap = new HashMap<String, Object>();
100
+
101
+		try {
102
+			/* JSON字符串转对象 */
103
+			ObjectMapper mapper = new ObjectMapper();
104
+			StorageOverheadSet overheadSet = mapper.readValue(overheadSetJson, StorageOverheadSet.class);
105
+			overheadSet.setCreateDate(new Date());  //创建时间
106
+			if(overheadSet.getId() == null) {
107
+				storageOverheadSetService.insert(overheadSet);
108
+			}else {
109
+				storageOverheadSetService.update(overheadSet);
110
+			}
111
+			modelMap.put("status", "success");
112
+		} catch (Exception e) {
113
+			e.printStackTrace();
114
+			modelMap.put("status", "error");
115
+			modelMap.put("msg", "保存失败!");
116
+		}
117
+		return modelMap;
118
+	}
119
+	@SuppressWarnings({ "null", "unused" })
120
+	@RequestMapping(value = "/findHwxz",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
121
+	@ApiOperation(value="查询架空期设置数据详情", notes = "查询架空期设置数据详情")
122
+	@ApiImplicitParams({
123
+			@ApiImplicitParam(name = "hwxz", value = "粮食性质", paramType = "query")
124
+	})
125
+	public PageInfo<Map<String, Object>> findHwxz(HttpServletRequest request, String overheadGetJson, Integer pageNum, Integer pageSize) {
126
+		Date date = null;
127
+		long time1 = 0;
128
+        long time2 = 0;
129
+		Date nowDate = new Date();//获取当前时间
130
+		Calendar cal = Calendar.getInstance();
131
+		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
132
+		DateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");
133
+		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
134
+		DateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd");
135
+		String orgId = ObjectUtils.toString(request.getSession().getAttribute("orgId"), "");
136
+		Map<String, Object> map = new HashMap<String, Object>();
137
+		List<Map<String, Object>> lastList = new ArrayList<Map<String, Object>>();
138
+		List<Map<String, Object>> countList = new ArrayList<Map<String, Object>>();
139
+		JSONObject jsonObject = JSONObject.parseObject(overheadGetJson);
140
+		JSONArray array = jsonObject.getJSONArray("list");
141
+		for(int i = 0; i < array.size(); i++){
142
+			JSONObject object = (JSONObject) array.get(i);     //将array中的数据进行逐条转换
143
+			map.put("orgId", orgId);
144
+			map.put("lsxz", object.get("hwxz"));
145
+			map.put("ch", object.getString("ch"));
146
+			map.put("hwh", object.getString("hwh"));
147
+			map.put("executeType", 3156);
148
+	    	List<Map<String, Object>> list = storageOverheadSetService.getOverYqDaysList(map);
149
+	    	if(!list.equals("" ) && !list.isEmpty()) {
150
+        	for (Map<String, Object> lastMap : list) {
151
+        		Integer warningDay = 0;
152
+        		int bw = 4;  //初始化为正常
153
+        		String sqyqtime = null;
154
+        		Integer isUpload = 0;
155
+					try {
156
+						date = format1.parse((String) object.get("jkqEnd"));
157
+						cal.setTime(date);
158
+					} catch (ParseException e) {
159
+						e.printStackTrace();
160
+					}
161
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
162
+					if (lastEntry.getKey().equals("sqyq_time")) {
163
+						sqyqtime = sdf2.format(lastEntry.getValue());
164
+						break;
165
+					}
166
+				}
167
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
168
+					if (lastEntry.getKey().equals("is_Upload")) {
169
+						isUpload = (Integer) lastEntry.getValue();
170
+						break;
171
+					}
172
+				}
173
+	    		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
174
+					if (lastEntry.getKey().equals("overhead_period")) {
175
+						Integer overheadPeriod =(Integer) lastEntry.getValue();
176
+						cal.add(Calendar.MONTH, overheadPeriod);
177
+						break;
178
+					}
179
+				}
180
+						Double zcsl = Double.parseDouble(object.get("zcsl").toString());
181
+						Double srsl = Double.parseDouble(object.get("srsl").toString());
182
+        		for (Map.Entry<String, Object> lastEntry : lastMap.entrySet()) {
183
+					if (lastEntry.getKey().equals("warning_day")) {
184
+						warningDay =(Integer) lastEntry.getValue();
185
+						break;
186
+					}
187
+				}
188
+        		try { 
189
+            		String dateString = format.format(nowDate);
190
+                	String timea= format.format(cal.getTime());
191
+    				cal.setTime(sdf.parse(dateString));
192
+    				time1 = cal.getTimeInMillis();
193
+    		        cal.setTime(sdf.parse(timea));
194
+    		        time2 = cal.getTimeInMillis();
195
+    		        long between_days=(time2-time1)/(1000*3600*24);
196
+    		        Integer rengTime = Integer.parseInt(String.valueOf(between_days));
197
+	        		date = format1.parse((String) object.get("jkqEnd"));
198
+	        		object.replace("jkqEnd", timea);
199
+	        		object.put("bw", bw);
200
+	        		if(srsl < zcsl) {
201
+	        			object.put("srsl", 0);
202
+	        			object.remove("rq");
203
+	        			if(rengTime < 1) {
204
+	        				bw = 2;
205
+	        				object.put("bw", bw);
206
+	        			}else if(sqyqtime != null){
207
+	        					 long sqyq_days=(time2-time1)/(1000*3600*24);
208
+	        	    		       Integer sqTime = Integer.parseInt(String.valueOf(sqyq_days));
209
+	        					if(sqTime < warningDay ) {
210
+	        						if(isUpload == 2) {
211
+	        						bw = 3;
212
+	        						object.put("bw", bw);
213
+	        						object.put("sqyqTime", sqyqtime);
214
+	        						}else if(rengTime < warningDay) {
215
+	    	        					bw = 1;
216
+	    	        					object.put("bw", bw);
217
+	    	        				}else{
218
+	    	        					bw = 0;
219
+	    	            				object.put("bw", bw);
220
+	    	        				}
221
+	        					}else {
222
+	        						bw = 0;
223
+		        					object.put("bw", bw);
224
+	        					}
225
+	        			}else if(rengTime < warningDay) {
226
+	        					bw = 1;
227
+	        					object.put("bw", bw);
228
+	        				}else{
229
+	        					bw = 0;
230
+	            				object.put("bw", bw);
231
+	        				}
232
+	        			}
233
+
234
+	        		if(srsl >= zcsl) {
235
+	            		Integer planSp = Integer.parseInt((String) object.get("planSp")) ;
236
+	        			if(isUpload == 2) {
237
+	        				object.put("sqyqTime", sqyqtime);
238
+	        			}
239
+	        			if(planSp != 100) {
240
+	        				object.put("srsl", 0);
241
+		        			object.remove("rq");
242
+		        			bw = 5;
243
+		        			object.put("bw", bw);
244
+	        			} 
245
+	        		}
246
+    			} catch (ParseException e) {
247
+    				// TODO Auto-generated catch block
248
+    				e.printStackTrace();
249
+    			}
250
+			}
251
+        	countList.add(object);
252
+	    	}
253
+		}
254
+		if (pageNum!=null && pageSize!=null) {
255
+			PageHelper.startPage(pageNum, pageSize);
256
+		}
257
+		PageInfo<Map<String, Object>> pageInfo = new PageInfo<Map<String, Object>>(countList);
258
+		pageInfo.setPageNum(pageNum);
259
+		pageInfo.setPageSize(pageSize); 
260
+        //由于结果是>startRow的,所以实际的需要+1
261
+        if (pageInfo.getSize() == 0) {
262
+        	pageInfo.setStartRow(0);
263
+        	pageInfo.setEndRow(0);
264
+        } else {
265
+        	pageInfo.setStartRow(pageInfo.getStartRow() + 1);
266
+            //计算实际的endRow(最后一页的时候特殊)
267
+        	pageInfo.setEndRow(pageInfo.getStartRow() - 1 +pageInfo.getSize());
268
+        }
269
+		return pageInfo;
270
+	}
271
+}

+ 127 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageQualityEventController.java

@@ -0,0 +1,127 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import java.util.Date;
4
+import java.util.HashMap;
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+import javax.annotation.Resource;
9
+
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.StorageQualityEvent;
16
+import com.chinaitop.depot.storage.model.StorageQualityEventExample;
17
+import com.chinaitop.depot.storage.model.StorageQualityEventExample.Criteria;
18
+import com.chinaitop.depot.storage.service.StorageQualityEventService;
19
+import com.fasterxml.jackson.databind.ObjectMapper;
20
+import com.github.pagehelper.PageHelper;
21
+import com.github.pagehelper.PageInfo;
22
+
23
+import io.swagger.annotations.Api;
24
+import io.swagger.annotations.ApiImplicitParam;
25
+import io.swagger.annotations.ApiImplicitParams;
26
+import io.swagger.annotations.ApiOperation;
27
+
28
+@RestController
29
+@RequestMapping(value="/qualityEvent")
30
+@Api(value= "StorageQualityEventController", description = "质量事件控制类")
31
+public class StorageQualityEventController {
32
+
33
+	@Resource
34
+	private StorageQualityEventService eventService;
35
+
36
+	@RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
37
+    @ApiOperation(value="查询质量事件列表", notes = "支持分页")
38
+    @ApiImplicitParams({
39
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
40
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
41
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
42
+            @ApiImplicitParam(name = "wareId", value = "货位ID", paramType = "query"),
43
+            @ApiImplicitParam(name = "orgId", value = "单位Id", paramType = "query")
44
+    })
45
+	public PageInfo<StorageQualityEvent> getList(Integer pageNum, Integer pageSize, Integer houseId,
46
+			Integer wareId, Integer orgId) {
47
+
48
+		List<StorageQualityEvent> list = null;
49
+		PageInfo<StorageQualityEvent> pageInfo = null;
50
+
51
+		StorageQualityEventExample example = new StorageQualityEventExample();
52
+		Criteria criteria = example.createCriteria();
53
+		
54
+		if (null != pageNum && null != pageSize) {
55
+			PageHelper.startPage(pageNum, pageSize);
56
+		}
57
+		if (null != houseId) {
58
+			criteria.andHouseIdEqualTo(houseId);
59
+		}
60
+		if (null != wareId) {
61
+			criteria.andWareIdEqualTo(wareId);
62
+		}
63
+		if (null != orgId) {
64
+			criteria.andOrgIdEqualTo(orgId);
65
+		}
66
+
67
+		list = eventService.findByCondition(example);
68
+		String czwt = "";
69
+		for (StorageQualityEvent event : list) {
70
+			czwt = event.getCzwt();
71
+			if (czwt.length() > 10) {
72
+				event.setCzwt(czwt.substring(0, 10)+"......");
73
+			}
74
+		}
75
+		pageInfo = new PageInfo<StorageQualityEvent>(list);
76
+
77
+		return pageInfo;
78
+	}
79
+
80
+	@RequestMapping(value = "/findByIdObj",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
81
+    @ApiOperation(value="按ID查询一条安全事件数据(包含附件信息)")
82
+    @ApiImplicitParams({
83
+            @ApiImplicitParam(name = "id", value = "主键Id", paramType = "query")
84
+    })
85
+	public Map<String, Object> findByIdObj(Integer id) {
86
+
87
+		Map<String, Object> map = new HashMap<String, Object>();
88
+
89
+		/* 查询质量事件主表数据  */
90
+		StorageQualityEvent qualityEvent = eventService.findByPrimaryKey(id);
91
+		if (null == qualityEvent) {
92
+			qualityEvent = new StorageQualityEvent();
93
+			qualityEvent.setInputDate(new Date());
94
+		}
95
+		map.put("qualityEvent", qualityEvent);
96
+
97
+		return map;
98
+	}
99
+
100
+	@RequestMapping(value = "/update",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
101
+    @ApiOperation(value="更新质量事件信息")
102
+    @ApiImplicitParams({
103
+        @ApiImplicitParam(name = "event", value = "质量事件数据", paramType = "form")
104
+    })
105
+	public Map<String, Object> update(String event) {
106
+
107
+		Map<String, Object> map = new HashMap<String, Object>();
108
+
109
+		/* 插入质量事件主表数据  */
110
+		ObjectMapper objectMapper = new ObjectMapper();
111
+		try {
112
+			StorageQualityEvent qualityEvent = objectMapper.readValue(event, StorageQualityEvent.class);
113
+
114
+			if (qualityEvent.getId() == null) {
115
+				eventService.save(qualityEvent);
116
+			} else {
117
+				eventService.update(qualityEvent);
118
+			}
119
+			map.put("status", "success");
120
+			map.put("id", qualityEvent.getId());
121
+		} catch (Exception e) {
122
+			e.printStackTrace();
123
+		}
124
+
125
+		return map;
126
+	}
127
+}

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

@@ -0,0 +1,690 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+
4
+import com.chinaitop.depot.storage.model.*;
5
+import com.chinaitop.depot.storage.model.StorageQualitycheckExample.Criteria;
6
+import com.chinaitop.depot.storage.service.StorageQualitycheckService;
7
+import com.chinaitop.depot.storage.service.StorageQualitycheckSonService;
8
+import com.chinaitop.depot.storage.utils.DataSynchronization;
9
+import com.chinaitop.depot.storage.utils.ParameterUtil;
10
+import com.fasterxml.jackson.core.type.TypeReference;
11
+import com.fasterxml.jackson.databind.ObjectMapper;
12
+import com.github.pagehelper.PageHelper;
13
+import com.github.pagehelper.PageInfo;
14
+import io.swagger.annotations.Api;
15
+import io.swagger.annotations.ApiImplicitParam;
16
+import io.swagger.annotations.ApiImplicitParams;
17
+import io.swagger.annotations.ApiOperation;
18
+import org.apache.commons.lang.ObjectUtils;
19
+import org.apache.commons.lang3.StringUtils;
20
+import org.springframework.http.MediaType;
21
+import org.springframework.web.bind.annotation.RequestMapping;
22
+import org.springframework.web.bind.annotation.RequestMethod;
23
+import org.springframework.web.bind.annotation.RestController;
24
+
25
+import javax.annotation.Resource;
26
+import java.io.IOException;
27
+import java.text.SimpleDateFormat;
28
+import java.util.ArrayList;
29
+import java.util.HashMap;
30
+import java.util.List;
31
+import java.util.Map;
32
+
33
+/**
34
+ * Created by product on 2017/10/11.
35
+ */
36
+@RestController
37
+@RequestMapping(value = {"/qualitycheck"})
38
+@Api(value= "StorageQualitycheckController", description = "质量管理控制类")
39
+public class StorageQualitycheckController {
40
+    @Resource
41
+    private StorageQualitycheckService storageQualitycheckService;
42
+
43
+    @Resource
44
+    private StorageQualitycheckSonService qualitycheckSonService;
45
+
46
+    /**
47
+     * 封仓管理中查询出未封仓的质量管理信息,已经封仓的不要展示
48
+     * 分页获取
49
+     */
50
+    @RequestMapping(value = "/getList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
51
+    @ApiOperation(value="查询质量管理列表", notes = "查询质量管理信息列表,支持分页")
52
+    @ApiImplicitParams({
53
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
54
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
55
+            @ApiImplicitParam(name = "qualitycheck", value = "实体类", paramType = "query"),
56
+            @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
57
+            @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query")
58
+    })
59
+    public PageInfo<StorageQualitycheck> listPage(Integer pageNum, Integer pageSize,
60
+                                                  StorageQualitycheck qualitycheck, String checktype,String checkResult) {
61
+    	StorageQualitycheck qualityCheck = new StorageQualitycheck();
62
+        //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
63
+        if (StringUtils.isNotBlank(checktype)){
64
+            qualityCheck.setType(checktype);
65
+        }
66
+        // 仓房id.
67
+        if (qualitycheck.getHouseId() != null) {
68
+            qualityCheck.setHouseId(qualitycheck.getHouseId());
69
+
70
+        }
71
+        // 货位id.
72
+        if (qualitycheck.getWarehouseId() != null) {
73
+            qualityCheck.setWarehouseId(qualitycheck.getWarehouseId());
74
+        }
75
+        // 粮库id.
76
+        if (qualitycheck.getOrgId() != null) {
77
+            qualityCheck.setOrgId(qualitycheck.getOrgId());
78
+        }
79
+        
80
+        // 明细品种.
81
+        if (qualitycheck.getSubTypeDetailed() != null) {
82
+            qualityCheck.setSubTypeDetailed(qualitycheck.getSubTypeDetailed());
83
+        }
84
+        
85
+        // 等级.
86
+        if (qualitycheck.getLevel() != null) {
87
+            qualityCheck.setLevel(qualitycheck.getLevel());
88
+        }
89
+
90
+        //检验结果(0:合格 , 1 :不合格)
91
+
92
+        if (StringUtils.isNotBlank(checkResult)) {
93
+            qualityCheck.setCheckResult(checkResult);
94
+        }
95
+        qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
96
+        //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
97
+        //qualityCheck.setSealStatus("0");
98
+        if (pageNum!=null && pageSize!=null) {
99
+            PageHelper.startPage(pageNum, pageSize);
100
+        }
101
+        List<StorageQualitycheck> list = storageQualitycheckService.queryByQualitycheck(qualityCheck);
102
+
103
+        PageInfo<StorageQualitycheck> pageInfo = new PageInfo<StorageQualitycheck>(list);
104
+        return pageInfo;
105
+    }
106
+    
107
+    /**
108
+     * 获取仓房或者货位(通过分组查询最新的满足条件的仓房或者货位).
109
+     * @param qualitycheck
110
+     * @return
111
+     */
112
+    @RequestMapping(value = "/getHouseOrWareList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
113
+    @ApiOperation(value="获取仓房或者货位(通过分组查询最新的满足条件的仓房或者货位)", notes = "获取仓房或者货位(通过分组查询最新的满足条件的仓房或者货位)")
114
+    @ApiImplicitParams({
115
+            @ApiImplicitParam(name = "qualitycheck", value = "质量管理对象", paramType = "query")
116
+    })
117
+    public List<StorageQualitycheck> getHouseIdList(StorageQualitycheck qualitycheck) {
118
+        List<StorageQualitycheck> list = storageQualitycheckService.getHouseOrWareList(qualitycheck);
119
+        return list;
120
+    }
121
+    
122
+    /**
123
+     * 获取第三方检验的质量标准字符串(手动拼写)
124
+     * @param id
125
+     * @return
126
+     */
127
+    @RequestMapping(value = "/getQualityStandardStr",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
128
+    @ApiOperation(value="获取第三方检验的质量标准字符串(手动拼写)", notes = "获取第三方检验的质量标准字符串(手动拼写)")
129
+    @ApiImplicitParams({
130
+            @ApiImplicitParam(name = "id", value = "id", paramType = "form"),
131
+    })
132
+    public Map<String, Object> getQualityStandardStr(Integer id) {
133
+        Map<String, Object> modelMap = new HashMap<String, Object>();
134
+        if (id == null) {
135
+            modelMap.put("status", "error");
136
+            modelMap.put("msg", "id为空,查询质量标准失败!");
137
+        } else {
138
+            String qualityStandardStr = storageQualitycheckService.getQualityStandardStr(id);
139
+            modelMap.put("status", "success");
140
+            modelMap.put("qualityStandard", qualityStandardStr);
141
+        }
142
+
143
+        return modelMap;
144
+    }
145
+    
146
+    
147
+
148
+    /**
149
+     * 新增和修改的数据进行保存
150
+     * @param qualitycheckJson
151
+     * @return
152
+     */
153
+    @RequestMapping(value="/save", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
154
+    @ApiOperation(value="新增/修改数据", notes = "新增/修改数据")
155
+    @ApiImplicitParams({
156
+            @ApiImplicitParam(name = "qualitycheckJson", value = "质量基础信息JSON数据对象", paramType = "form"),
157
+            @ApiImplicitParam(name = "qualityOneJson", value = "质量检测信息JSON数据对象", paramType = "form")
158
+    })
159
+    public Map<String, Object> save(String qualitycheckJson,String qualityOneJson) {
160
+        Map<String, Object> modelMap = new HashMap<>();
161
+        // JSON字符串转对象
162
+        ObjectMapper mapper = new ObjectMapper();
163
+        StorageQualitycheck qualitycheck = null;
164
+        List<StorageQualitycheckSon> qualitycheckone = null;
165
+        try {
166
+            qualitycheck = (StorageQualitycheck)mapper.readValue(qualitycheckJson, StorageQualitycheck.class);
167
+            //默认0:未封仓   1:已封仓
168
+            qualitycheck.setSealStatus("0");
169
+            qualitycheck.setHistoryStatus(0);//0:最新数据   1:历史数据
170
+            Integer qualityCheckId = storageQualitycheckService.save(qualitycheck);
171
+            //关联保存日常检查和第三方检测的检测信息 如果为空则是对初检 验收等操作
172
+            if(StringUtils.isNoneBlank(qualityOneJson)){
173
+                qualitycheckone = mapper.readValue(qualityOneJson,  new TypeReference<List<StorageQualitycheckSon>>(){});
174
+                for (int i = 0; i < qualitycheckone.size(); i++) {
175
+                    qualitycheckone.get(i).setQualitycheckId(qualityCheckId);
176
+                    storageQualitycheckService.saveOne(qualitycheckone.get(i));
177
+                }
178
+            }
179
+            modelMap.put("status", "success");
180
+        } catch (IOException e) {
181
+            modelMap.put("status", "error");
182
+            e.printStackTrace();
183
+        }
184
+        return modelMap;
185
+    }
186
+
187
+    /**
188
+     * 根据id加载对应数据
189
+     * @param id
190
+     * @return
191
+     */
192
+    @RequestMapping(value = "/loadDataById" ,produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
193
+    @ApiOperation(value="根据id加载质量检查数据", notes = "根据id加载质量检查数据")
194
+    @ApiImplicitParams({
195
+            @ApiImplicitParam(name = "id", value = "id", paramType = "query"),
196
+    })
197
+    public StorageQualitycheck loadDataById(Integer id){
198
+        StorageQualitycheck qualitycheck=storageQualitycheckService.loadDataById(id);
199
+        return qualitycheck;
200
+    }
201
+
202
+    /**
203
+     * 根据主键id移除数据
204
+     * @param id
205
+     * @return
206
+     */
207
+    @RequestMapping(value="/remove", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
208
+    @ApiOperation(value="按ID删除质量检查信息", notes = "按ID删除质量检查信息")
209
+    @ApiImplicitParams({
210
+            @ApiImplicitParam(name = "id", value = "数据ID", paramType = "form")
211
+    })
212
+    public Map<String, Object> remove(Integer id){
213
+        Map<String,Object> retMap = new HashMap<String,Object>();
214
+        storageQualitycheckService.remove(id);
215
+
216
+        //删除管理的数据
217
+        StorageQualitycheckSonExample qualitycheckSonExample = new StorageQualitycheckSonExample();
218
+        StorageQualitycheckSonExample.Criteria criteria = qualitycheckSonExample.createCriteria();
219
+        if(id != null){
220
+            criteria.andQualitycheckIdEqualTo(id);
221
+        }
222
+        qualitycheckSonService.removeSon(qualitycheckSonExample);
223
+        retMap.put("msg","success");
224
+        return retMap;
225
+    }
226
+
227
+    /**
228
+     * 封仓管理中查询出所有仓已经封仓或者未封仓的质量管理信息
229
+     * @param houseId
230
+     * @param warehouseId
231
+     * @return
232
+     */
233
+    @RequestMapping(value="/getFoodsealList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
234
+    @ApiOperation(value="封仓管理列表中查询出封仓或未封仓的质量管理信息", notes = "封仓管理列表中查询出封仓或未封仓的质量管理信息")
235
+    @ApiImplicitParams({
236
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
237
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
238
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
239
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query")
240
+    })
241
+    public PageInfo<StorageQualitycheck> listPage(Integer pageNum, Integer pageSize ,
242
+                                                  String houseId, String warehouseId) {
243
+    	StorageQualitycheck qualityCheck = new StorageQualitycheck();
244
+        if(StringUtils.isNoneBlank(houseId)){
245
+            qualityCheck.setHouseId(Integer.valueOf(houseId));
246
+
247
+        }
248
+        if(StringUtils.isNoneBlank(warehouseId)){
249
+            qualityCheck.setWarehouseId(Integer.valueOf(warehouseId));
250
+        }
251
+        qualityCheck.setType("1");///查找验收质量管理的信息
252
+
253
+        qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
254
+
255
+        if (pageNum!=null && pageSize!=null) {
256
+            PageHelper.startPage(pageNum, pageSize);
257
+        }
258
+
259
+        List<StorageQualitycheck> list = storageQualitycheckService.queryByQualitycheck(qualityCheck);
260
+
261
+        PageInfo<StorageQualitycheck> pageInfo = new PageInfo<StorageQualitycheck>(list);
262
+        return pageInfo;
263
+    }
264
+
265
+    /**
266
+     * 根据仓号,货位号以及类型查找对应质量检查信息
267
+     * @param houseId warehouseId
268
+     * @return
269
+     */
270
+    @RequestMapping(value = "/findByStoreWarehouse", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
271
+    @ApiOperation(value="根据仓号,货位号以及类型查找对应质量检查信息", notes = "根据仓号,货位号以及类型查找对应质量检查信息")
272
+    @ApiImplicitParams({
273
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
274
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
275
+            @ApiImplicitParam(name = "type", value = "检查类型", paramType = "query"),
276
+            @ApiImplicitParam(name = "sealStatus", value = "封仓类型", paramType = "query")
277
+    })
278
+    public StorageQualitycheck findByStoreWarehouse(Integer houseId, Integer warehouseId, String type,String sealStatus) {
279
+    	StorageQualitycheck qualityCheckExample = new StorageQualitycheck();
280
+        StorageQualitycheck qualitycheck = null;
281
+        try {
282
+            if (houseId != null && !"".equals(houseId)) {
283
+                qualityCheckExample.setHouseId(houseId);
284
+
285
+            }
286
+            if(warehouseId != null && !"".equals(warehouseId)){
287
+                qualityCheckExample.setWarehouseId(warehouseId);
288
+            }
289
+            if(StringUtils.isNotBlank(type)){
290
+                qualityCheckExample.setType(type);//传入查找的质量类型
291
+            }
292
+
293
+            if(StringUtils.isNotBlank(sealStatus)){
294
+                qualityCheckExample.setSealStatus(sealStatus);//传入查找的质量类型
295
+            }
296
+            //0:最新数据  1:历史数据
297
+            qualityCheckExample.setHistoryStatus(0);
298
+            List<StorageQualitycheck> list = storageQualitycheckService.queryByQualitycheck(qualityCheckExample);
299
+            if (null != list && list.size() > 0) {
300
+            	qualitycheck = list.get(0);
301
+            }
302
+
303
+        } catch (Exception e) {
304
+            e.printStackTrace();
305
+        }
306
+        return qualitycheck;
307
+    }
308
+
309
+    /**
310
+     * 根据仓号,货位号以及类型查找对应封仓信息
311
+     * @param houseId warehouseId
312
+     * @return
313
+     */
314
+    @RequestMapping(value = "/findByStoreWarehouseData", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
315
+    @ApiOperation(value="根据仓号,货位号以及类型查找对应信息", notes = "根据仓号,货位号以及类型查找对应信息")
316
+    @ApiImplicitParams({
317
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
318
+            @ApiImplicitParam(name = "warehouseId", value = "货位ID", paramType = "query"),
319
+            @ApiImplicitParam(name = "type", value = "检查类型", paramType = "query"),
320
+            @ApiImplicitParam(name = "id", value = "检查id", paramType = "query")
321
+    })
322
+    public StorageFoodbasicinfo findByStoreWarehouseData(Integer houseId, Integer warehouseId, String type , Integer id) {
323
+        StorageQualitycheck qualityCheckExample = new StorageQualitycheck();
324
+        StorageFoodbasicinfo foodbasicinfo = new StorageFoodbasicinfo();
325
+        try {
326
+            if (houseId != null && !"".equals(houseId)) {
327
+                qualityCheckExample.setHouseId(houseId);
328
+            }
329
+            if(warehouseId != null && !"".equals(warehouseId)){
330
+                qualityCheckExample.setWarehouseId(warehouseId);
331
+            }
332
+            if(StringUtils.isNotBlank(type)){
333
+                qualityCheckExample.setType(type);//传入查找的质量类型
334
+            }
335
+
336
+            if (id != null && !"".equals(id)) {
337
+                qualityCheckExample.setId(id);
338
+            }
339
+
340
+            //0:最新数据  1:历史数据
341
+            qualityCheckExample.setHistoryStatus(0);
342
+            //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
343
+            qualityCheckExample.setSealStatus("0");
344
+
345
+            //查看business_store_ware_detail中价格是否有
346
+            List<StorageQualitycheck> businessList = storageQualitycheckService.queryByQualitycheckusiness(qualityCheckExample);
347
+            if(null != businessList && businessList.size() > 0){
348
+                qualityCheckExample.setNotice(1);
349
+            }
350
+
351
+            List<StorageQualitycheck> list = storageQualitycheckService.queryByQualitycheckData(qualityCheckExample);
352
+            if (null != list && list.size() > 0) {
353
+                foodbasicinfo.setHeight(list.get(0).getHeight());
354
+                foodbasicinfo.setDisperseCapacity(list.get(0).getDisperseCapacity());
355
+                foodbasicinfo.setKeepMethod(list.get(0).getKeepMethod());
356
+                foodbasicinfo.setPrice(list.get(0).getPrice());
357
+                foodbasicinfo.setStorageLocation(list.get(0).getDepotName());
358
+            }
359
+
360
+        } catch (Exception e) {
361
+            e.printStackTrace();
362
+        }
363
+        return foodbasicinfo;
364
+    }
365
+
366
+    /**
367
+     * 查询第三方检查
368
+     * @param  foodbasicinfoId
369
+     * @return getThirdCheckList
370
+     */
371
+    @RequestMapping(value="/getThirdCheckList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
372
+    @ApiOperation(value="查询获得第三方检查列表", notes = "查询获得第三方检查列表,支持分页")
373
+    @ApiImplicitParams({
374
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
375
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
376
+            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "query"),
377
+            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "query"),
378
+            @ApiImplicitParam(name = "foodbasicinfoId", value = "对应粮情专卡Id", paramType = "query"),
379
+
380
+    })
381
+    public PageInfo<StorageQualitycheck> getThirdCheckList(Integer pageNum, Integer pageSize , Integer houseId, Integer warehouseId,
382
+                                                           Integer foodbasicinfoId) {
383
+        StorageQualitycheck qualityCheck = new StorageQualitycheck();
384
+
385
+        if(foodbasicinfoId != null){
386
+            qualityCheck.setId(foodbasicinfoId);
387
+        }
388
+        if(houseId != null){
389
+            qualityCheck.setHouseId(houseId);
390
+        }
391
+        if(warehouseId != null){
392
+            qualityCheck.setWarehouseId(warehouseId);
393
+        }
394
+
395
+        if (pageNum!=null && pageSize!=null) {
396
+            PageHelper.startPage(pageNum, pageSize);
397
+        }
398
+
399
+        List<StorageQualitycheck> list = storageQualitycheckService.getThirdCheckList(qualityCheck);
400
+
401
+        PageInfo<StorageQualitycheck> pageInfo = new PageInfo<StorageQualitycheck>(list);
402
+        return pageInfo;
403
+    }
404
+
405
+    /**
406
+     * 和foodbasicinfoCheck关联得到粮情专卡中粮食质量检测记录(该记录包含当前仓房的验收信息和选择的第三方检验信息)
407
+     * @param houseId
408
+     * @param warehouseId
409
+     * @param foodbasicinfoId
410
+     * @return
411
+     */
412
+    @RequestMapping(value = "/getQualitycheckListByFoodbasicinfoCheck",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
413
+    @ApiOperation(value="和foodbasicinfoCheck关联得到粮情专卡中粮食质量检测记录", notes = "该记录包含当前仓房的验收信息和选择的第三方检验信息")
414
+    @ApiImplicitParams({
415
+            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "query"),
416
+            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "query"),
417
+            @ApiImplicitParam(name = "foodbasicinfoId", value = "对应粮情专卡Id", paramType = "query"),
418
+
419
+    })
420
+    public List<StorageQualitycheck> getQualitycheckListByFoodbasicinfoCheck(Integer houseId, Integer warehouseId, Integer foodbasicinfoId){
421
+        StorageQualitycheck qualityCheck = new StorageQualitycheck();
422
+        if(foodbasicinfoId != null){
423
+            qualityCheck.setId(foodbasicinfoId);
424
+        }
425
+        if(houseId != null){
426
+            qualityCheck.setHouseId(houseId);
427
+        }
428
+        if(warehouseId != null){
429
+            qualityCheck.setWarehouseId(warehouseId);
430
+        }
431
+        List<StorageQualitycheck> list = storageQualitycheckService.getQualitycheckListByFoodbasicinfoCheck(qualityCheck,foodbasicinfoId);
432
+
433
+        return list;
434
+    }
435
+
436
+    /**
437
+     * 获取第三方检查的不宜存的可用数据
438
+     * @return
439
+     */
440
+    
441
+    @RequestMapping(value = "/getStoreQualityList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET )
442
+    @ApiOperation(value="获取第三方检查的不宜存的可用数据", notes = "获取第三方检查的不宜存的可用数据")
443
+    @ApiImplicitParams({
444
+        @ApiImplicitParam(name = "orgId", value = "粮库id", paramType = "query")
445
+
446
+    })
447
+    public List<Map<String,Object>> getStoreQualityList(Integer orgId){
448
+        List<Map<String,Object>> listQuality=storageQualitycheckService.getStoreQualityList(orgId);
449
+        return listQuality;
450
+    }
451
+
452
+    /**
453
+     * 获取第三方检查的不宜存的可用数据
454
+     * @return
455
+     */
456
+    @RequestMapping(value = "/getTrdStoreQualityList",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET )
457
+    @ApiOperation(value="获取第三方检查的不宜存的可用数据(集合格式)", notes = "获取第三方检查的不宜存的可用数据(集合格式)")
458
+    public List<Map<String,Object>> getTrdStoreQualityList(){
459
+    	List<Map<String,Object>> listQuality=storageQualitycheckService.getTrdStoreQualityList();    
460
+        return listQuality;
461
+    }
462
+    
463
+    
464
+    @RequestMapping(value = "/setQualityCheckByHistoryStatus", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
465
+    @ApiOperation(value = "根据仓房和货位名称更新当前质量管理为历史记录", notes = "根据仓房和货位名称更新当前质量管理为历史记录")
466
+    @ApiImplicitParams({
467
+            @ApiImplicitParam(name = "houseId", value = "仓房id", paramType = "query"),
468
+            @ApiImplicitParam(name = "warehouseId", value = "货位Id", paramType = "query"),
469
+    })
470
+    public Map<String, Object> setQualityCheckByHistoryStatus(Integer houseId, Integer warehouseId) {
471
+        Map<String, Object> modelMap = new HashMap<>();
472
+        if (ParameterUtil.isnotnull(houseId) &&ParameterUtil.isnotnull(warehouseId) ) {
473
+            storageQualitycheckService.setQualityCheckByHistoryStatus(houseId,warehouseId);
474
+        }
475
+        modelMap.put("status", "success");
476
+        return modelMap;
477
+    }
478
+
479
+    /**
480
+     * 根据id查询质检信息
481
+     * @param ZZid
482
+     * @return
483
+     */
484
+    @RequestMapping(value="/getDataByZJId", produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.GET)
485
+    @ApiOperation(value = "根据id查询质检信息", notes = "根据id查询质检信息,计划验收模块用到。")
486
+    @ApiImplicitParams({
487
+            @ApiImplicitParam(name = "ZZid", value = "质检id", paramType = "query")
488
+    })
489
+    public Map<String,Object> getDataByZJId(Integer id ,Integer ZZid) {
490
+        Map<String,Object> map = new HashMap<String, Object>();
491
+        Map<String,Object> paramMap = new HashMap<String, Object>();
492
+        paramMap.put("ZZid", ZZid);
493
+        paramMap.put("id", id);
494
+        List<StorageQualitycheck> list = storageQualitycheckService.getDataByZJId(paramMap);
495
+        map.put("qualitycheck", list);
496
+        return map;
497
+    }
498
+    
499
+    
500
+    
501
+    /**
502
+     * 根据仓房和货位获取第三方检查的数据
503
+     * 分页获取
504
+     */
505
+    @RequestMapping(value = "/getListByhouseId",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
506
+    @ApiOperation(value="根据仓房和货位获取第三方检查的数据", notes = "支持分页")
507
+    @ApiImplicitParams({
508
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
509
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
510
+            @ApiImplicitParam(name = "houseIds", value = "仓房id(数组)", paramType = "query"),
511
+            @ApiImplicitParam(name = "warehouseIds", value = "货位id(数组)", paramType = "query")
512
+    })
513
+    public PageInfo<StorageQualitycheck> getListByhouseId(Integer pageNum, Integer pageSize,
514
+            Integer[] houseIds, Integer[] warehouseIds , String checktype) {
515
+    	StorageQualitycheck qualityCheck = new StorageQualitycheck();
516
+    	List<List<StorageQualitycheck>> list = new ArrayList<List<StorageQualitycheck>>();
517
+        //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
518
+        if (StringUtils.isNotBlank(checktype)){
519
+            qualityCheck.setType(checktype);
520
+        }
521
+        
522
+        qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
523
+        //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
524
+        qualityCheck.setSealStatus("0");
525
+        
526
+        List<StorageQualitycheck> qualityCheckList =null;
527
+        for (int i = 0; i < houseIds.length; i++) {
528
+        	for (int j = 0; j < warehouseIds.length; j++) {
529
+            	if(i==j){
530
+            		Integer houseId = houseIds[i];
531
+            		Integer warehouseId = warehouseIds[j];
532
+            		 	//仓房id.
533
+            	        if (qualityCheck.getHouseId() == null) {
534
+            	            qualityCheck.setHouseId(houseId);
535
+
536
+            	        }
537
+            	        // 货位id.
538
+            	        if (qualityCheck.getWarehouseId() == null) {
539
+            	            qualityCheck.setWarehouseId(warehouseId);
540
+            	        }
541
+            	        if (pageNum!=null && pageSize!=null) {
542
+            	            PageHelper.startPage(pageNum, pageSize);
543
+            	        }
544
+            	        
545
+            	        qualityCheckList = storageQualitycheckService.queryByQualitycheck(qualityCheck);
546
+            	}
547
+    		}
548
+		}
549
+        
550
+       
551
+       
552
+        PageInfo<StorageQualitycheck> pageInfo = new PageInfo<StorageQualitycheck>(qualityCheckList);
553
+        return pageInfo;
554
+    }
555
+
556
+    @RequestMapping(value = "/getNewList",produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.GET)
557
+    @ApiOperation(value="查询质量管理列表", notes = "查询质量管理信息列表,支持分页")
558
+    @ApiImplicitParams({
559
+            @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
560
+            @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
561
+            @ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "query"),
562
+            @ApiImplicitParam(name = "wareId", value = "货位ID", paramType = "query"),
563
+            @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
564
+            @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query"),
565
+            @ApiImplicitParam(name = "historyStatus", value = "数据状态", paramType = "query"),
566
+            @ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "query")
567
+    })
568
+    public PageInfo<StorageQualitycheck> newListPage(Integer pageNum, Integer pageSize, Integer houseId, Integer wareId,
569
+                                                  String checkType, String checkResult, Integer historyStatus, Integer orgId) {
570
+    	StorageQualitycheckExample example = new StorageQualitycheckExample();
571
+    	Criteria criteria = example.createCriteria();
572
+
573
+        //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
574
+        if (StringUtils.isNotBlank(checkType)){
575
+        	criteria.andTypeEqualTo(checkType);
576
+        }
577
+        // 仓房id.
578
+        if (houseId != null) {
579
+        	criteria.andHouseIdEqualTo(houseId);
580
+        }
581
+        // 货位id.
582
+        if (wareId != null) {
583
+        	criteria.andWarehouseIdEqualTo(wareId);
584
+        }
585
+        // 粮库id.
586
+        if (orgId != null) {
587
+        	criteria.andOrgIdEqualTo(orgId);
588
+        }
589
+
590
+        //检验结果(0:合格 , 1 :不合格)
591
+        if (StringUtils.isNotBlank(checkResult)) {
592
+        	criteria.andCheckResultEqualTo(checkResult);
593
+        }
594
+        //数据状态
595
+        if (null != historyStatus) {
596
+        	//0:最新数据  1:历史数据
597
+        	criteria.andHistoryStatusEqualTo(historyStatus);
598
+        }
599
+
600
+        if (pageNum!=null && pageSize!=null) {
601
+            PageHelper.startPage(pageNum, pageSize);
602
+        }
603
+        List<StorageQualitycheck> list = storageQualitycheckService.findByCondition(example);
604
+
605
+        PageInfo<StorageQualitycheck> pageInfo = new PageInfo<StorageQualitycheck>(list);
606
+        return pageInfo;
607
+    }
608
+
609
+    //质检信息主表同步
610
+    @RequestMapping("/qualityMainSynchronization")
611
+    public void qualityMainSynchronization() {
612
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
613
+        List list = DataSynchronization.queryQualityMain();
614
+        Map<String, Object> paramMap = new HashMap<String, Object>();
615
+        List<Map<String,Object>> qualitycheckList = storageQualitycheckService.getAllQualityMain(paramMap);
616
+        for(Map qualitycheckMap:qualitycheckList) {
617
+            int num = 0;
618
+            for(int i=0;i<list.size();i++) {
619
+                Map<String,Object> map = (Map<String,Object>)list.get(i);
620
+                String zjid = ObjectUtils.toString(map.get("zjid"),"");//库点编码
621
+                String refreshTime = ObjectUtils.toString(map.get("refreshTime"),"");
622
+                if(zjid.equals(ObjectUtils.toString(qualitycheckMap.get("zjid"),""))) {
623
+                    if(!refreshTime.equals(format.format(qualitycheckMap.get("updatetime")))) {
624
+                        DataSynchronization.updateQualityMain(map, qualitycheckMap);
625
+                    }
626
+                    break;
627
+                }else if(num == (list.size()-1)){
628
+                    DataSynchronization.insertQualityMain(qualitycheckMap);
629
+                }else {
630
+                    num = num+1;
631
+                }
632
+            }
633
+        }
634
+    }
635
+
636
+    //质检信息明细同步
637
+    @RequestMapping("/qualityInfoSynchronization")
638
+    public void qualityInfoSynchronization() {
639
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
640
+        List list = DataSynchronization.queryQualityMain();
641
+        Map<String, Object> paramMap = new HashMap<String, Object>();
642
+        List<Map<String,Object>> qualitycheckList = storageQualitycheckService.getAllQualityInfo(paramMap);
643
+        for(Map qualitycheckMap:qualitycheckList) {
644
+            int num = 0;
645
+            for(int i=0;i<list.size();i++) {
646
+                Map<String,Object> map = (Map<String,Object>)list.get(i);
647
+                String zjid = ObjectUtils.toString(map.get("zjid"),"");//库点编码
648
+                String refreshTime = ObjectUtils.toString(map.get("refreshTime"),"");
649
+                if(zjid.equals(ObjectUtils.toString(qualitycheckMap.get("zjid"),""))) {
650
+                    if(!refreshTime.equals(format.format(qualitycheckMap.get("updatetime")))) {
651
+                        DataSynchronization.updateQuality(map, qualitycheckMap);
652
+                    }
653
+                    break;
654
+                }else if(num == (list.size()-1)){
655
+                    DataSynchronization.insertQuality(qualitycheckMap);
656
+                }else {
657
+                    num = num+1;
658
+                }
659
+            }
660
+        }
661
+    }
662
+
663
+    //粮食库存同步
664
+    @RequestMapping("/foodStocksSynchronization")
665
+    public void foodStocksSynchronization() {
666
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
667
+        List list = DataSynchronization.queryQualityMain();
668
+        Map<String, Object> paramMap = new HashMap<String, Object>();
669
+        List<Map<String,Object>> foodStocksList = storageQualitycheckService.getAllFoodStocks(paramMap);
670
+        for(Map foodStocksMap:foodStocksList) {
671
+            int num = 0;
672
+            for(int i=0;i<list.size();i++) {
673
+                Map<String,Object> map = (Map<String,Object>)list.get(i);
674
+                String fcid = ObjectUtils.toString(map.get("fcid"),"");//库点编码
675
+                String refreshTime = ObjectUtils.toString(map.get("refreshTime"),"");
676
+                if(fcid.equals(ObjectUtils.toString(foodStocksMap.get("fcid"),""))) {
677
+                    if(!refreshTime.equals(format.format(foodStocksMap.get("updatetime")))) {
678
+                        DataSynchronization.updateFoodStocks(map, foodStocksMap);
679
+                    }
680
+                    break;
681
+                }else if(num == (list.size()-1)){
682
+                    DataSynchronization.insertFoodStocks(foodStocksMap);
683
+                }else {
684
+                    num = num+1;
685
+                }
686
+            }
687
+        }
688
+    }
689
+
690
+}

+ 80 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckSonController.java

@@ -0,0 +1,80 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import com.chinaitop.depot.storage.model.StorageQualitycheckSon;
4
+import com.chinaitop.depot.storage.model.StorageQualitycheckSonExample;
5
+import com.chinaitop.depot.storage.service.StorageQualitycheckSonService;
6
+import io.swagger.annotations.Api;
7
+import io.swagger.annotations.ApiImplicitParam;
8
+import io.swagger.annotations.ApiImplicitParams;
9
+import io.swagger.annotations.ApiOperation;
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 javax.annotation.Resource;
16
+import java.util.ArrayList;
17
+import java.util.HashMap;
18
+import java.util.List;
19
+import java.util.Map;
20
+
21
+/**
22
+ * @author sunhongbing
23
+ * @Date 2017/12/23
24
+ */
25
+@RestController
26
+@RequestMapping(value = {"/qualitycheckSon"})
27
+@Api(value= "StorageQualitycheckSonController", description = "质量管理中检测信息控制类")
28
+public class StorageQualitycheckSonController {
29
+    @Resource
30
+    private StorageQualitycheckSonService qualitycheckSonService;
31
+
32
+    /**
33
+     * 接收主表的id关联着子表的ktId
34
+     * @param qcSonId
35
+     * @return
36
+     */
37
+    @RequestMapping(value = "/findQualitycheckSonBySonId",produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
38
+    @ApiOperation(value="根据质量检查id查询出关联的子表信息(包含检测信息)", notes = "根据质量检查id查询出关联的子表信息(包含检测信息)")
39
+    @ApiImplicitParams({
40
+            @ApiImplicitParam(name = "qcSonId", value = "qcSonId", paramType = "query"),
41
+    })
42
+    public List<StorageQualitycheckSon> findKtDetailsByKtId(Integer qcSonId){
43
+        StorageQualitycheckSonExample storageQualitycheckSonExample = new StorageQualitycheckSonExample();
44
+        StorageQualitycheckSonExample.Criteria criteria = storageQualitycheckSonExample.createCriteria();
45
+        if(qcSonId != null){
46
+            criteria.andQualitycheckIdEqualTo(qcSonId);
47
+        }
48
+        return  qualitycheckSonService.findQualitycheckSonExample(storageQualitycheckSonExample);
49
+    }
50
+
51
+    /**
52
+     * 删除一条检测信息
53
+     * @param sonId 数据ID
54
+     * @return
55
+     */
56
+    @RequestMapping(value = "/removeSon", produces = MediaType.APPLICATION_JSON_VALUE,method = RequestMethod.POST)
57
+    @ApiOperation(value="根据子表id质量检查的子表信息", notes = "根据子表id质量检查的子表信息")
58
+    @ApiImplicitParams({
59
+            @ApiImplicitParam(name = "sonId", value = "sonId", paramType = "form"),
60
+    })
61
+    public Map<String, Object> removeSon(Integer sonId) {
62
+        Map<String, Object> map = new HashMap<String, Object>();
63
+        //删除管理的数据
64
+        StorageQualitycheckSonExample qualitycheckSonExample = new StorageQualitycheckSonExample();
65
+        StorageQualitycheckSonExample.Criteria criteria = qualitycheckSonExample.createCriteria();
66
+        if(sonId != null){
67
+            criteria.andIdEqualTo(sonId);
68
+        }
69
+        try {
70
+            qualitycheckSonService.removeSon(qualitycheckSonExample);
71
+            map.put("status", "success");
72
+        } catch (Exception e) {
73
+            e.printStackTrace();
74
+            map.put("status", "error");
75
+            map.put("msg", "删除失败!");
76
+        }
77
+        return map;
78
+    }
79
+
80
+}

+ 78 - 0
src/main/java/com/chinaitop/depot/storage/controller/StorageStorehouseBusinessController.java

@@ -0,0 +1,78 @@
1
+package com.chinaitop.depot.storage.controller;
2
+
3
+import com.chinaitop.depot.storage.service.StorageStorehouseBusinessService;
4
+import io.swagger.annotations.Api;
5
+import io.swagger.annotations.ApiImplicitParam;
6
+import io.swagger.annotations.ApiImplicitParams;
7
+import io.swagger.annotations.ApiOperation;
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 javax.annotation.Resource;
14
+import java.util.Map;
15
+
16
+/**
17
+ * @Description:
18
+ * @Author: sunhongbing
19
+ * @Date: 2018/5/6
20
+ */
21
+@RestController
22
+@RequestMapping(value = {"/storehouseBusiness"})
23
+@Api(value= "StorageStorehouseBusinessController", description = "仓房业务信息控制类")
24
+public class StorageStorehouseBusinessController {
25
+    @Resource
26
+    private StorageStorehouseBusinessService businessService;
27
+
28
+    /**
29
+     * 根据分仓保管账中的仓房名称
30
+     * @return
31
+     */
32
+    @RequestMapping(value = "/getStorehouseListFromBusiness", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
33
+    @ApiOperation(value="仓房业务信息表获取仓房", notes = "该仓房从分仓保管账获得")
34
+    public Map<String, Object> getStorehouseListFromBusiness() throws Exception {
35
+        Map<String, Object> map = null;
36
+        map = businessService.getStorehouseData();
37
+        return map;
38
+    }
39
+
40
+    /**
41
+     * 根据分仓保管账中的仓房ID获取货位号
42
+     * @return
43
+     */
44
+    @RequestMapping(value = "/getWarehouseListFromBusiness", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
45
+    @ApiOperation(value="根据仓房业务信息表的仓房ID获取货位号", notes = "该货位从分仓保管账获得")
46
+    public Map<String, Object> getWarehouseListFromBusiness(Integer ch) throws Exception {
47
+        Map<String, Object> map = null;
48
+        if (ch!=null) {
49
+            map = businessService.getWarehouseData(ch);
50
+        }
51
+        return map;
52
+    }
53
+
54
+    /**
55
+     * 从分仓保管账中查数据插入到仓房业务表
56
+     */
57
+    @RequestMapping(value = "/insertStorehouseBusinessFromFcbgz", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
58
+    @ApiOperation(value="从分仓保管账中查数据插入到仓房业务表", notes = "从分仓保管账中查数据插入到仓房业务表")
59
+    public void insertStorehouseBusinessFromFcbgz() {
60
+        //从分仓保管账取出仓房和货位以及品种加入到仓房业务信息表中
61
+
62
+        businessService.saveStorehouseBusinessFromFcbgz();
63
+
64
+    }
65
+
66
+    @RequestMapping(value = "/updateAerationTaskStatus", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.POST)
67
+    @ApiOperation(value="更新一个仓房的作业状态", notes = "更新一个仓房的作业状态")
68
+    @ApiImplicitParams({
69
+		@ApiImplicitParam(name = "houseId", value = "仓房ID", paramType = "form"),
70
+		@ApiImplicitParam(name = "wareId", value = "货位ID", paramType = "form"),
71
+		@ApiImplicitParam(name = "orgId", value = "单位ID", paramType = "form"),
72
+		@ApiImplicitParam(name = "aerationStatus", value = "通风状态(ON开启/OFF关闭)", paramType = "form")
73
+	})
74
+    public void updateAerationTaskStatus(Integer houseId, Integer wareId, Integer orgId, String aerationStatus) {
75
+        businessService.updateAerationStatus(houseId, wareId, orgId, aerationStatus);
76
+    }
77
+
78
+}

+ 35 - 0
src/main/java/com/chinaitop/depot/storage/mapper/BusinessFileMapper.java

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

+ 338 - 0
src/main/java/com/chinaitop/depot/storage/mapper/BusinessFileMapper.xml

@@ -0,0 +1,338 @@
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.BusinessFileMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.BusinessFile" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="bid" property="bid" jdbcType="INTEGER" />
7
+    <result column="type" property="type" jdbcType="VARCHAR" />
8
+    <result column="file_name" property="fileName" jdbcType="VARCHAR" />
9
+    <result column="original_file_name" property="originalFileName" jdbcType="VARCHAR" />
10
+    <result column="file_type" property="fileType" jdbcType="VARCHAR" />
11
+    <result column="source" property="source" jdbcType="VARCHAR" />
12
+    <result column="remarks" property="remarks" jdbcType="VARCHAR" />
13
+    <result column="file_path" property="filePath" jdbcType="VARCHAR" />
14
+    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
15
+    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
16
+    <result column="creater" property="creater" jdbcType="INTEGER" />
17
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
18
+  </resultMap>
19
+  <sql id="Example_Where_Clause" >
20
+    <where >
21
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
22
+        <if test="criteria.valid" >
23
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
24
+            <foreach collection="criteria.criteria" item="criterion" >
25
+              <choose >
26
+                <when test="criterion.noValue" >
27
+                  and ${criterion.condition}
28
+                </when>
29
+                <when test="criterion.singleValue" >
30
+                  and ${criterion.condition} #{criterion.value}
31
+                </when>
32
+                <when test="criterion.betweenValue" >
33
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
34
+                </when>
35
+                <when test="criterion.listValue" >
36
+                  and ${criterion.condition}
37
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
38
+                    #{listItem}
39
+                  </foreach>
40
+                </when>
41
+              </choose>
42
+            </foreach>
43
+          </trim>
44
+        </if>
45
+      </foreach>
46
+    </where>
47
+  </sql>
48
+  <sql id="Update_By_Example_Where_Clause" >
49
+    <where >
50
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
51
+        <if test="criteria.valid" >
52
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
53
+            <foreach collection="criteria.criteria" item="criterion" >
54
+              <choose >
55
+                <when test="criterion.noValue" >
56
+                  and ${criterion.condition}
57
+                </when>
58
+                <when test="criterion.singleValue" >
59
+                  and ${criterion.condition} #{criterion.value}
60
+                </when>
61
+                <when test="criterion.betweenValue" >
62
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
63
+                </when>
64
+                <when test="criterion.listValue" >
65
+                  and ${criterion.condition}
66
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
67
+                    #{listItem}
68
+                  </foreach>
69
+                </when>
70
+              </choose>
71
+            </foreach>
72
+          </trim>
73
+        </if>
74
+      </foreach>
75
+    </where>
76
+  </sql>
77
+  <sql id="Base_Column_List" >
78
+    id, bid, type, file_name, original_file_name, file_type, source, remarks, file_path, 
79
+    create_time, update_time, creater, org_id
80
+  </sql>
81
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.BusinessFileExample" >
82
+    select
83
+    <if test="distinct" >
84
+      distinct
85
+    </if>
86
+    <include refid="Base_Column_List" />
87
+    from business_file
88
+    <if test="_parameter != null" >
89
+      <include refid="Example_Where_Clause" />
90
+    </if>
91
+    <if test="orderByClause != null" >
92
+      order by ${orderByClause}
93
+    </if>
94
+  </select>
95
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
96
+    select 
97
+    <include refid="Base_Column_List" />
98
+    from business_file
99
+    where id = #{id,jdbcType=INTEGER}
100
+  </select>
101
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
102
+    delete from business_file
103
+    where id = #{id,jdbcType=INTEGER}
104
+  </delete>
105
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.BusinessFileExample" >
106
+    delete from business_file
107
+    <if test="_parameter != null" >
108
+      <include refid="Example_Where_Clause" />
109
+    </if>
110
+  </delete>
111
+  <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.storage.model.BusinessFile" >
112
+    insert into business_file (id, bid, type, 
113
+      file_name, original_file_name, file_type, 
114
+      source, remarks, file_path, 
115
+      create_time, update_time, creater, 
116
+      org_id)
117
+    values (#{id,jdbcType=INTEGER}, #{bid,jdbcType=INTEGER}, #{type,jdbcType=VARCHAR}, 
118
+      #{fileName,jdbcType=VARCHAR}, #{originalFileName,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR}, 
119
+      #{source,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{filePath,jdbcType=VARCHAR}, 
120
+      #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{creater,jdbcType=INTEGER}, 
121
+      #{orgId,jdbcType=INTEGER})
122
+  </insert>
123
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.BusinessFile" >
124
+    insert into business_file
125
+    <trim prefix="(" suffix=")" suffixOverrides="," >
126
+      <if test="id != null" >
127
+        id,
128
+      </if>
129
+      <if test="bid != null" >
130
+        bid,
131
+      </if>
132
+      <if test="type != null" >
133
+        type,
134
+      </if>
135
+      <if test="fileName != null" >
136
+        file_name,
137
+      </if>
138
+      <if test="originalFileName != null" >
139
+        original_file_name,
140
+      </if>
141
+      <if test="fileType != null" >
142
+        file_type,
143
+      </if>
144
+      <if test="source != null" >
145
+        source,
146
+      </if>
147
+      <if test="remarks != null" >
148
+        remarks,
149
+      </if>
150
+      <if test="filePath != null" >
151
+        file_path,
152
+      </if>
153
+      <if test="createTime != null" >
154
+        create_time,
155
+      </if>
156
+      <if test="updateTime != null" >
157
+        update_time,
158
+      </if>
159
+      <if test="creater != null" >
160
+        creater,
161
+      </if>
162
+      <if test="orgId != null" >
163
+        org_id,
164
+      </if>
165
+    </trim>
166
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
167
+      <if test="id != null" >
168
+        #{id,jdbcType=INTEGER},
169
+      </if>
170
+      <if test="bid != null" >
171
+        #{bid,jdbcType=INTEGER},
172
+      </if>
173
+      <if test="type != null" >
174
+        #{type,jdbcType=VARCHAR},
175
+      </if>
176
+      <if test="fileName != null" >
177
+        #{fileName,jdbcType=VARCHAR},
178
+      </if>
179
+      <if test="originalFileName != null" >
180
+        #{originalFileName,jdbcType=VARCHAR},
181
+      </if>
182
+      <if test="fileType != null" >
183
+        #{fileType,jdbcType=VARCHAR},
184
+      </if>
185
+      <if test="source != null" >
186
+        #{source,jdbcType=VARCHAR},
187
+      </if>
188
+      <if test="remarks != null" >
189
+        #{remarks,jdbcType=VARCHAR},
190
+      </if>
191
+      <if test="filePath != null" >
192
+        #{filePath,jdbcType=VARCHAR},
193
+      </if>
194
+      <if test="createTime != null" >
195
+        #{createTime,jdbcType=TIMESTAMP},
196
+      </if>
197
+      <if test="updateTime != null" >
198
+        #{updateTime,jdbcType=TIMESTAMP},
199
+      </if>
200
+      <if test="creater != null" >
201
+        #{creater,jdbcType=INTEGER},
202
+      </if>
203
+      <if test="orgId != null" >
204
+        #{orgId,jdbcType=INTEGER},
205
+      </if>
206
+    </trim>
207
+  </insert>
208
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.BusinessFileExample" resultType="java.lang.Integer" >
209
+    select count(*) from business_file
210
+    <if test="_parameter != null" >
211
+      <include refid="Example_Where_Clause" />
212
+    </if>
213
+  </select>
214
+  <update id="updateByExampleSelective" parameterType="map" >
215
+    update business_file
216
+    <set >
217
+      <if test="record.id != null" >
218
+        id = #{record.id,jdbcType=INTEGER},
219
+      </if>
220
+      <if test="record.bid != null" >
221
+        bid = #{record.bid,jdbcType=INTEGER},
222
+      </if>
223
+      <if test="record.type != null" >
224
+        type = #{record.type,jdbcType=VARCHAR},
225
+      </if>
226
+      <if test="record.fileName != null" >
227
+        file_name = #{record.fileName,jdbcType=VARCHAR},
228
+      </if>
229
+      <if test="record.originalFileName != null" >
230
+        original_file_name = #{record.originalFileName,jdbcType=VARCHAR},
231
+      </if>
232
+      <if test="record.fileType != null" >
233
+        file_type = #{record.fileType,jdbcType=VARCHAR},
234
+      </if>
235
+      <if test="record.source != null" >
236
+        source = #{record.source,jdbcType=VARCHAR},
237
+      </if>
238
+      <if test="record.remarks != null" >
239
+        remarks = #{record.remarks,jdbcType=VARCHAR},
240
+      </if>
241
+      <if test="record.filePath != null" >
242
+        file_path = #{record.filePath,jdbcType=VARCHAR},
243
+      </if>
244
+      <if test="record.createTime != null" >
245
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
246
+      </if>
247
+      <if test="record.updateTime != null" >
248
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
249
+      </if>
250
+      <if test="record.creater != null" >
251
+        creater = #{record.creater,jdbcType=INTEGER},
252
+      </if>
253
+      <if test="record.orgId != null" >
254
+        org_id = #{record.orgId,jdbcType=INTEGER},
255
+      </if>
256
+    </set>
257
+    <if test="_parameter != null" >
258
+      <include refid="Update_By_Example_Where_Clause" />
259
+    </if>
260
+  </update>
261
+  <update id="updateByExample" parameterType="map" >
262
+    update business_file
263
+    set id = #{record.id,jdbcType=INTEGER},
264
+      bid = #{record.bid,jdbcType=INTEGER},
265
+      type = #{record.type,jdbcType=VARCHAR},
266
+      file_name = #{record.fileName,jdbcType=VARCHAR},
267
+      original_file_name = #{record.originalFileName,jdbcType=VARCHAR},
268
+      file_type = #{record.fileType,jdbcType=VARCHAR},
269
+      source = #{record.source,jdbcType=VARCHAR},
270
+      remarks = #{record.remarks,jdbcType=VARCHAR},
271
+      file_path = #{record.filePath,jdbcType=VARCHAR},
272
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
273
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP},
274
+      creater = #{record.creater,jdbcType=INTEGER},
275
+      org_id = #{record.orgId,jdbcType=INTEGER}
276
+    <if test="_parameter != null" >
277
+      <include refid="Update_By_Example_Where_Clause" />
278
+    </if>
279
+  </update>
280
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.BusinessFile" >
281
+    update business_file
282
+    <set >
283
+      <if test="bid != null" >
284
+        bid = #{bid,jdbcType=INTEGER},
285
+      </if>
286
+      <if test="type != null" >
287
+        type = #{type,jdbcType=VARCHAR},
288
+      </if>
289
+      <if test="fileName != null" >
290
+        file_name = #{fileName,jdbcType=VARCHAR},
291
+      </if>
292
+      <if test="originalFileName != null" >
293
+        original_file_name = #{originalFileName,jdbcType=VARCHAR},
294
+      </if>
295
+      <if test="fileType != null" >
296
+        file_type = #{fileType,jdbcType=VARCHAR},
297
+      </if>
298
+      <if test="source != null" >
299
+        source = #{source,jdbcType=VARCHAR},
300
+      </if>
301
+      <if test="remarks != null" >
302
+        remarks = #{remarks,jdbcType=VARCHAR},
303
+      </if>
304
+      <if test="filePath != null" >
305
+        file_path = #{filePath,jdbcType=VARCHAR},
306
+      </if>
307
+      <if test="createTime != null" >
308
+        create_time = #{createTime,jdbcType=TIMESTAMP},
309
+      </if>
310
+      <if test="updateTime != null" >
311
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
312
+      </if>
313
+      <if test="creater != null" >
314
+        creater = #{creater,jdbcType=INTEGER},
315
+      </if>
316
+      <if test="orgId != null" >
317
+        org_id = #{orgId,jdbcType=INTEGER},
318
+      </if>
319
+    </set>
320
+    where id = #{id,jdbcType=INTEGER}
321
+  </update>
322
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.BusinessFile" >
323
+    update business_file
324
+    set bid = #{bid,jdbcType=INTEGER},
325
+      type = #{type,jdbcType=VARCHAR},
326
+      file_name = #{fileName,jdbcType=VARCHAR},
327
+      original_file_name = #{originalFileName,jdbcType=VARCHAR},
328
+      file_type = #{fileType,jdbcType=VARCHAR},
329
+      source = #{source,jdbcType=VARCHAR},
330
+      remarks = #{remarks,jdbcType=VARCHAR},
331
+      file_path = #{filePath,jdbcType=VARCHAR},
332
+      create_time = #{createTime,jdbcType=TIMESTAMP},
333
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
334
+      creater = #{creater,jdbcType=INTEGER},
335
+      org_id = #{orgId,jdbcType=INTEGER}
336
+    where id = #{id,jdbcType=INTEGER}
337
+  </update>
338
+</mapper>

+ 32 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskDetailMapper.java

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

+ 410 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskDetailMapper.xml

@@ -0,0 +1,410 @@
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.StorageChangeStoragehouseTaskDetailMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="org_id" property="org_id" jdbcType="INTEGER" />
7
+    <result column="businessNo" property="businessNo" jdbcType="VARCHAR" />
8
+    <result column="houseId" property="houseId" jdbcType="INTEGER" />
9
+    <result column="wareId" property="wareId" jdbcType="INTEGER" />
10
+    <result column="storehouseId" property="storehouseId" jdbcType="INTEGER" />
11
+    <result column="warehouseId" property="warehouseId" jdbcType="INTEGER" />
12
+    <result column="rksj" property="rksj" jdbcType="TIMESTAMP" />
13
+    <result column="lspz" property="lspz" jdbcType="INTEGER" />
14
+    <result column="lsxz" property="lsxz" jdbcType="VARCHAR" />
15
+    <result column="keepingWay" property="keepingWay" jdbcType="INTEGER" />
16
+    <result column="ccfs" property="ccfs" jdbcType="INTEGER" />
17
+    <result column="applyStatus" property="applyStatus" jdbcType="INTEGER" />
18
+    <result column="pourInNum" property="pourInNum" jdbcType="DECIMAL" />
19
+    <result column="pourOutNum" property="pourOutNum" jdbcType="DECIMAL" />
20
+    <result column="qichuNum" property="qichuNum" jdbcType="DECIMAL" />
21
+    <result column="updateTime" property="updateTime" jdbcType="TIMESTAMP" />
22
+  </resultMap>
23
+  <sql id="Example_Where_Clause" >
24
+    <where >
25
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
26
+        <if test="criteria.valid" >
27
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
28
+            <foreach collection="criteria.criteria" item="criterion" >
29
+              <choose >
30
+                <when test="criterion.noValue" >
31
+                  and ${criterion.condition}
32
+                </when>
33
+                <when test="criterion.singleValue" >
34
+                  and ${criterion.condition} #{criterion.value}
35
+                </when>
36
+                <when test="criterion.betweenValue" >
37
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
38
+                </when>
39
+                <when test="criterion.listValue" >
40
+                  and ${criterion.condition}
41
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
42
+                    #{listItem}
43
+                  </foreach>
44
+                </when>
45
+              </choose>
46
+            </foreach>
47
+          </trim>
48
+        </if>
49
+      </foreach>
50
+    </where>
51
+  </sql>
52
+  <sql id="Update_By_Example_Where_Clause" >
53
+    <where >
54
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
55
+        <if test="criteria.valid" >
56
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
57
+            <foreach collection="criteria.criteria" item="criterion" >
58
+              <choose >
59
+                <when test="criterion.noValue" >
60
+                  and ${criterion.condition}
61
+                </when>
62
+                <when test="criterion.singleValue" >
63
+                  and ${criterion.condition} #{criterion.value}
64
+                </when>
65
+                <when test="criterion.betweenValue" >
66
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
67
+                </when>
68
+                <when test="criterion.listValue" >
69
+                  and ${criterion.condition}
70
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
71
+                    #{listItem}
72
+                  </foreach>
73
+                </when>
74
+              </choose>
75
+            </foreach>
76
+          </trim>
77
+        </if>
78
+      </foreach>
79
+    </where>
80
+  </sql>
81
+  <sql id="Base_Column_List" >
82
+    id, org_id, businessNo, houseId, wareId, storehouseId, warehouseId, rksj, lspz, lsxz, 
83
+    keepingWay, ccfs, applyStatus, pourInNum, pourOutNum, qichuNum, updateTime
84
+  </sql>
85
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample" >
86
+    select
87
+    <if test="distinct" >
88
+      distinct
89
+    </if>
90
+    <include refid="Base_Column_List" />
91
+    from storage_change_storagehouse_task_detail
92
+    <if test="_parameter != null" >
93
+      <include refid="Example_Where_Clause" />
94
+    </if>
95
+    <if test="orderByClause != null" >
96
+      order by ${orderByClause}
97
+    </if>
98
+  </select>
99
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
100
+    select 
101
+    <include refid="Base_Column_List" />
102
+    from storage_change_storagehouse_task_detail
103
+    where id = #{id,jdbcType=INTEGER}
104
+  </select>
105
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
106
+    delete from storage_change_storagehouse_task_detail
107
+    where id = #{id,jdbcType=INTEGER}
108
+  </delete>
109
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample" >
110
+    delete from storage_change_storagehouse_task_detail
111
+    <if test="_parameter != null" >
112
+      <include refid="Example_Where_Clause" />
113
+    </if>
114
+  </delete>
115
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail" >
116
+    insert into storage_change_storagehouse_task_detail (id, org_id, businessNo, 
117
+      houseId, wareId, storehouseId, 
118
+      warehouseId, rksj, lspz, 
119
+      lsxz, keepingWay, ccfs, 
120
+      applyStatus, pourInNum, pourOutNum, 
121
+      qichuNum, updateTime)
122
+    values (#{id,jdbcType=INTEGER}, #{org_id,jdbcType=INTEGER}, #{businessNo,jdbcType=VARCHAR}, 
123
+      #{houseId,jdbcType=INTEGER}, #{wareId,jdbcType=INTEGER}, #{storehouseId,jdbcType=INTEGER}, 
124
+      #{warehouseId,jdbcType=INTEGER}, #{rksj,jdbcType=TIMESTAMP}, #{lspz,jdbcType=INTEGER}, 
125
+      #{lsxz,jdbcType=VARCHAR}, #{keepingWay,jdbcType=INTEGER}, #{ccfs,jdbcType=INTEGER}, 
126
+      #{applyStatus,jdbcType=INTEGER}, #{pourInNum,jdbcType=DECIMAL}, #{pourOutNum,jdbcType=DECIMAL}, 
127
+      #{qichuNum,jdbcType=DECIMAL}, #{updateTime,jdbcType=TIMESTAMP})
128
+  </insert>
129
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail" >
130
+    insert into storage_change_storagehouse_task_detail
131
+    <trim prefix="(" suffix=")" suffixOverrides="," >
132
+      <if test="id != null" >
133
+        id,
134
+      </if>
135
+      <if test="org_id != null" >
136
+        org_id,
137
+      </if>
138
+      <if test="businessNo != null" >
139
+        businessNo,
140
+      </if>
141
+      <if test="houseId != null" >
142
+        houseId,
143
+      </if>
144
+      <if test="wareId != null" >
145
+        wareId,
146
+      </if>
147
+      <if test="storehouseId != null" >
148
+        storehouseId,
149
+      </if>
150
+      <if test="warehouseId != null" >
151
+        warehouseId,
152
+      </if>
153
+      <if test="rksj != null" >
154
+        rksj,
155
+      </if>
156
+      <if test="lspz != null" >
157
+        lspz,
158
+      </if>
159
+      <if test="lsxz != null" >
160
+        lsxz,
161
+      </if>
162
+      <if test="keepingWay != null" >
163
+        keepingWay,
164
+      </if>
165
+      <if test="ccfs != null" >
166
+        ccfs,
167
+      </if>
168
+      <if test="applyStatus != null" >
169
+        applyStatus,
170
+      </if>
171
+      <if test="pourInNum != null" >
172
+        pourInNum,
173
+      </if>
174
+      <if test="pourOutNum != null" >
175
+        pourOutNum,
176
+      </if>
177
+      <if test="qichuNum != null" >
178
+        qichuNum,
179
+      </if>
180
+      <if test="updateTime != null" >
181
+        updateTime,
182
+      </if>
183
+    </trim>
184
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
185
+      <if test="id != null" >
186
+        #{id,jdbcType=INTEGER},
187
+      </if>
188
+      <if test="org_id != null" >
189
+        #{org_id,jdbcType=INTEGER},
190
+      </if>
191
+      <if test="businessNo != null" >
192
+        #{businessNo,jdbcType=VARCHAR},
193
+      </if>
194
+      <if test="houseId != null" >
195
+        #{houseId,jdbcType=INTEGER},
196
+      </if>
197
+      <if test="wareId != null" >
198
+        #{wareId,jdbcType=INTEGER},
199
+      </if>
200
+      <if test="storehouseId != null" >
201
+        #{storehouseId,jdbcType=INTEGER},
202
+      </if>
203
+      <if test="warehouseId != null" >
204
+        #{warehouseId,jdbcType=INTEGER},
205
+      </if>
206
+      <if test="rksj != null" >
207
+        #{rksj,jdbcType=TIMESTAMP},
208
+      </if>
209
+      <if test="lspz != null" >
210
+        #{lspz,jdbcType=INTEGER},
211
+      </if>
212
+      <if test="lsxz != null" >
213
+        #{lsxz,jdbcType=VARCHAR},
214
+      </if>
215
+      <if test="keepingWay != null" >
216
+        #{keepingWay,jdbcType=INTEGER},
217
+      </if>
218
+      <if test="ccfs != null" >
219
+        #{ccfs,jdbcType=INTEGER},
220
+      </if>
221
+      <if test="applyStatus != null" >
222
+        #{applyStatus,jdbcType=INTEGER},
223
+      </if>
224
+      <if test="pourInNum != null" >
225
+        #{pourInNum,jdbcType=DECIMAL},
226
+      </if>
227
+      <if test="pourOutNum != null" >
228
+        #{pourOutNum,jdbcType=DECIMAL},
229
+      </if>
230
+      <if test="qichuNum != null" >
231
+        #{qichuNum,jdbcType=DECIMAL},
232
+      </if>
233
+      <if test="updateTime != null" >
234
+        #{updateTime,jdbcType=TIMESTAMP},
235
+      </if>
236
+    </trim>
237
+  </insert>
238
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample" resultType="java.lang.Integer" >
239
+    select count(*) from storage_change_storagehouse_task_detail
240
+    <if test="_parameter != null" >
241
+      <include refid="Example_Where_Clause" />
242
+    </if>
243
+  </select>
244
+  <update id="updateByExampleSelective" parameterType="map" >
245
+    update storage_change_storagehouse_task_detail
246
+    <set >
247
+      <if test="record.id != null" >
248
+        id = #{record.id,jdbcType=INTEGER},
249
+      </if>
250
+      <if test="record.org_id != null" >
251
+        org_id = #{record.org_id,jdbcType=INTEGER},
252
+      </if>
253
+      <if test="record.businessNo != null" >
254
+        businessNo = #{record.businessNo,jdbcType=VARCHAR},
255
+      </if>
256
+      <if test="record.houseId != null" >
257
+        houseId = #{record.houseId,jdbcType=INTEGER},
258
+      </if>
259
+      <if test="record.wareId != null" >
260
+        wareId = #{record.wareId,jdbcType=INTEGER},
261
+      </if>
262
+      <if test="record.storehouseId != null" >
263
+        storehouseId = #{record.storehouseId,jdbcType=INTEGER},
264
+      </if>
265
+      <if test="record.warehouseId != null" >
266
+        warehouseId = #{record.warehouseId,jdbcType=INTEGER},
267
+      </if>
268
+      <if test="record.rksj != null" >
269
+        rksj = #{record.rksj,jdbcType=TIMESTAMP},
270
+      </if>
271
+      <if test="record.lspz != null" >
272
+        lspz = #{record.lspz,jdbcType=INTEGER},
273
+      </if>
274
+      <if test="record.lsxz != null" >
275
+        lsxz = #{record.lsxz,jdbcType=VARCHAR},
276
+      </if>
277
+      <if test="record.keepingWay != null" >
278
+        keepingWay = #{record.keepingWay,jdbcType=INTEGER},
279
+      </if>
280
+      <if test="record.ccfs != null" >
281
+        ccfs = #{record.ccfs,jdbcType=INTEGER},
282
+      </if>
283
+      <if test="record.applyStatus != null" >
284
+        applyStatus = #{record.applyStatus,jdbcType=INTEGER},
285
+      </if>
286
+      <if test="record.pourInNum != null" >
287
+        pourInNum = #{record.pourInNum,jdbcType=DECIMAL},
288
+      </if>
289
+      <if test="record.pourOutNum != null" >
290
+        pourOutNum = #{record.pourOutNum,jdbcType=DECIMAL},
291
+      </if>
292
+      <if test="record.qichuNum != null" >
293
+        qichuNum = #{record.qichuNum,jdbcType=DECIMAL},
294
+      </if>
295
+      <if test="record.updateTime != null" >
296
+        updateTime = #{record.updateTime,jdbcType=TIMESTAMP},
297
+      </if>
298
+    </set>
299
+    <if test="_parameter != null" >
300
+      <include refid="Update_By_Example_Where_Clause" />
301
+    </if>
302
+  </update>
303
+  <update id="updateByExample" parameterType="map" >
304
+    update storage_change_storagehouse_task_detail
305
+    set id = #{record.id,jdbcType=INTEGER},
306
+      org_id = #{record.org_id,jdbcType=INTEGER},
307
+      businessNo = #{record.businessNo,jdbcType=VARCHAR},
308
+      houseId = #{record.houseId,jdbcType=INTEGER},
309
+      wareId = #{record.wareId,jdbcType=INTEGER},
310
+      storehouseId = #{record.storehouseId,jdbcType=INTEGER},
311
+      warehouseId = #{record.warehouseId,jdbcType=INTEGER},
312
+      rksj = #{record.rksj,jdbcType=TIMESTAMP},
313
+      lspz = #{record.lspz,jdbcType=INTEGER},
314
+      lsxz = #{record.lsxz,jdbcType=VARCHAR},
315
+      keepingWay = #{record.keepingWay,jdbcType=INTEGER},
316
+      ccfs = #{record.ccfs,jdbcType=INTEGER},
317
+      applyStatus = #{record.applyStatus,jdbcType=INTEGER},
318
+      pourInNum = #{record.pourInNum,jdbcType=DECIMAL},
319
+      pourOutNum = #{record.pourOutNum,jdbcType=DECIMAL},
320
+      qichuNum = #{record.qichuNum,jdbcType=DECIMAL},
321
+      updateTime = #{record.updateTime,jdbcType=TIMESTAMP}
322
+    <if test="_parameter != null" >
323
+      <include refid="Update_By_Example_Where_Clause" />
324
+    </if>
325
+  </update>
326
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail" >
327
+    update storage_change_storagehouse_task_detail
328
+    <set >
329
+      <if test="org_id != null" >
330
+        org_id = #{org_id,jdbcType=INTEGER},
331
+      </if>
332
+      <if test="businessNo != null" >
333
+        businessNo = #{businessNo,jdbcType=VARCHAR},
334
+      </if>
335
+      <if test="houseId != null" >
336
+        houseId = #{houseId,jdbcType=INTEGER},
337
+      </if>
338
+      <if test="wareId != null" >
339
+        wareId = #{wareId,jdbcType=INTEGER},
340
+      </if>
341
+      <if test="storehouseId != null" >
342
+        storehouseId = #{storehouseId,jdbcType=INTEGER},
343
+      </if>
344
+      <if test="warehouseId != null" >
345
+        warehouseId = #{warehouseId,jdbcType=INTEGER},
346
+      </if>
347
+      <if test="rksj != null" >
348
+        rksj = #{rksj,jdbcType=TIMESTAMP},
349
+      </if>
350
+      <if test="lspz != null" >
351
+        lspz = #{lspz,jdbcType=INTEGER},
352
+      </if>
353
+      <if test="lsxz != null" >
354
+        lsxz = #{lsxz,jdbcType=VARCHAR},
355
+      </if>
356
+      <if test="keepingWay != null" >
357
+        keepingWay = #{keepingWay,jdbcType=INTEGER},
358
+      </if>
359
+      <if test="ccfs != null" >
360
+        ccfs = #{ccfs,jdbcType=INTEGER},
361
+      </if>
362
+      <if test="applyStatus != null" >
363
+        applyStatus = #{applyStatus,jdbcType=INTEGER},
364
+      </if>
365
+      <if test="pourInNum != null" >
366
+        pourInNum = #{pourInNum,jdbcType=DECIMAL},
367
+      </if>
368
+      <if test="pourOutNum != null" >
369
+        pourOutNum = #{pourOutNum,jdbcType=DECIMAL},
370
+      </if>
371
+      <if test="qichuNum != null" >
372
+        qichuNum = #{qichuNum,jdbcType=DECIMAL},
373
+      </if>
374
+      <if test="updateTime != null" >
375
+        updateTime = #{updateTime,jdbcType=TIMESTAMP},
376
+      </if>
377
+    </set>
378
+    where id = #{id,jdbcType=INTEGER}
379
+  </update>
380
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail" >
381
+    update storage_change_storagehouse_task_detail
382
+    set org_id = #{org_id,jdbcType=INTEGER},
383
+      businessNo = #{businessNo,jdbcType=VARCHAR},
384
+      houseId = #{houseId,jdbcType=INTEGER},
385
+      wareId = #{wareId,jdbcType=INTEGER},
386
+      storehouseId = #{storehouseId,jdbcType=INTEGER},
387
+      warehouseId = #{warehouseId,jdbcType=INTEGER},
388
+      rksj = #{rksj,jdbcType=TIMESTAMP},
389
+      lspz = #{lspz,jdbcType=INTEGER},
390
+      lsxz = #{lsxz,jdbcType=VARCHAR},
391
+      keepingWay = #{keepingWay,jdbcType=INTEGER},
392
+      ccfs = #{ccfs,jdbcType=INTEGER},
393
+      applyStatus = #{applyStatus,jdbcType=INTEGER},
394
+      pourInNum = #{pourInNum,jdbcType=DECIMAL},
395
+      pourOutNum = #{pourOutNum,jdbcType=DECIMAL},
396
+      qichuNum = #{qichuNum,jdbcType=DECIMAL},
397
+      updateTime = #{updateTime,jdbcType=TIMESTAMP}
398
+    where id = #{id,jdbcType=INTEGER}
399
+  </update>
400
+  <!-- 通过businessNO修改子表状态 -->
401
+  <update id="updateBybusinessNo" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail" >
402
+    update storage_change_storagehouse_task_detail
403
+    <set >
404
+      <if test="applyStatus != null" >
405
+        applyStatus = #{applyStatus,jdbcType=INTEGER},
406
+      </if>
407
+    </set>
408
+    where businessNo = #{businessNo,jdbcType=VARCHAR}
409
+  </update>
410
+</mapper>

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

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

+ 481 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseTaskMapper.xml

@@ -0,0 +1,481 @@
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.StorageChangeStoragehouseTaskMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
8
+    <result column="work_no" property="workNo" jdbcType="VARCHAR" />
9
+    <result column="business_no" property="businessNo" jdbcType="VARCHAR" />
10
+    <result column="plan_pour_out_sum" property="planPourOutSum" jdbcType="DECIMAL" />
11
+    <result column="plan_pour_in_sum" property="planPourInSum" jdbcType="DECIMAL" />
12
+    <result column="apply_unit_id" property="applyUnitId" jdbcType="INTEGER" />
13
+    <result column="apply_unit_name" property="applyUnitName" jdbcType="VARCHAR" />
14
+    <result column="storage_unnit_person" property="storageUnnitPerson" jdbcType="VARCHAR" />
15
+    <result column="apply_time" property="applyTime" jdbcType="TIMESTAMP" />
16
+    <result column="plan_start_date" property="planStartDate" jdbcType="TIMESTAMP" />
17
+    <result column="plan_end_date" property="planEndDate" jdbcType="TIMESTAMP" />
18
+    <result column="work_team" property="workTeam" jdbcType="VARCHAR" />
19
+    <result column="work_group" property="workGroup" jdbcType="VARCHAR" />
20
+    <result column="change_reason" property="changeReason" jdbcType="VARCHAR" />
21
+    <result column="plan_type" property="planType" jdbcType="VARCHAR" />
22
+    <result column="apply_status" property="applyStatus" jdbcType="INTEGER" />
23
+    <result column="apply_date" property="applyDate" jdbcType="TIMESTAMP" />
24
+    <result column="apply_ieda" property="applyIeda" jdbcType="VARCHAR" />
25
+    <result column="is_upload" property="isUpload" jdbcType="INTEGER" />
26
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
27
+  </resultMap>
28
+  <sql id="Example_Where_Clause" >
29
+    <where >
30
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
31
+        <if test="criteria.valid" >
32
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
33
+            <foreach collection="criteria.criteria" item="criterion" >
34
+              <choose >
35
+                <when test="criterion.noValue" >
36
+                  and ${criterion.condition}
37
+                </when>
38
+                <when test="criterion.singleValue" >
39
+                  and ${criterion.condition} #{criterion.value}
40
+                </when>
41
+                <when test="criterion.betweenValue" >
42
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
43
+                </when>
44
+                <when test="criterion.listValue" >
45
+                  and ${criterion.condition}
46
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
47
+                    #{listItem}
48
+                  </foreach>
49
+                </when>
50
+              </choose>
51
+            </foreach>
52
+          </trim>
53
+        </if>
54
+      </foreach>
55
+    </where>
56
+  </sql>
57
+  <sql id="Update_By_Example_Where_Clause" >
58
+    <where >
59
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
60
+        <if test="criteria.valid" >
61
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
62
+            <foreach collection="criteria.criteria" item="criterion" >
63
+              <choose >
64
+                <when test="criterion.noValue" >
65
+                  and ${criterion.condition}
66
+                </when>
67
+                <when test="criterion.singleValue" >
68
+                  and ${criterion.condition} #{criterion.value}
69
+                </when>
70
+                <when test="criterion.betweenValue" >
71
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
72
+                </when>
73
+                <when test="criterion.listValue" >
74
+                  and ${criterion.condition}
75
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
76
+                    #{listItem}
77
+                  </foreach>
78
+                </when>
79
+              </choose>
80
+            </foreach>
81
+          </trim>
82
+        </if>
83
+      </foreach>
84
+    </where>
85
+  </sql>
86
+  <sql id="Base_Column_List" >
87
+    id, org_id, create_date, work_no, business_no, plan_pour_out_sum, plan_pour_in_sum, 
88
+    apply_unit_id, apply_unit_name, storage_unnit_person, apply_time, plan_start_date, 
89
+    plan_end_date, work_team, work_group, change_reason, plan_type, apply_status, apply_date, 
90
+    apply_ieda, is_upload, updatetime
91
+  </sql>
92
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample" >
93
+    select
94
+    <if test="distinct" >
95
+      distinct
96
+    </if>
97
+    <include refid="Base_Column_List" />
98
+    from storage_change_storagehouse_task
99
+    <if test="_parameter != null" >
100
+      <include refid="Example_Where_Clause" />
101
+    </if>
102
+    <if test="orderByClause != null" >
103
+      order by ${orderByClause}
104
+    </if>
105
+  </select>
106
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
107
+    select 
108
+    <include refid="Base_Column_List" />
109
+    from storage_change_storagehouse_task
110
+    where id = #{id,jdbcType=INTEGER}
111
+  </select>
112
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
113
+    delete from storage_change_storagehouse_task
114
+    where id = #{id,jdbcType=INTEGER}
115
+  </delete>
116
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample" >
117
+    delete from storage_change_storagehouse_task
118
+    <if test="_parameter != null" >
119
+      <include refid="Example_Where_Clause" />
120
+    </if>
121
+  </delete>
122
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask" >
123
+    insert into storage_change_storagehouse_task (id, org_id, create_date, 
124
+      work_no, business_no, plan_pour_out_sum, 
125
+      plan_pour_in_sum, apply_unit_id, apply_unit_name, 
126
+      storage_unnit_person, apply_time, plan_start_date, 
127
+      plan_end_date, work_team, work_group, 
128
+      change_reason, plan_type, apply_status, 
129
+      apply_date, apply_ieda, is_upload, 
130
+      updatetime)
131
+    values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
132
+      #{workNo,jdbcType=VARCHAR}, #{businessNo,jdbcType=VARCHAR}, #{planPourOutSum,jdbcType=DECIMAL}, 
133
+      #{planPourInSum,jdbcType=DECIMAL}, #{applyUnitId,jdbcType=INTEGER}, #{applyUnitName,jdbcType=VARCHAR}, 
134
+      #{storageUnnitPerson,jdbcType=VARCHAR}, #{applyTime,jdbcType=TIMESTAMP}, #{planStartDate,jdbcType=TIMESTAMP}, 
135
+      #{planEndDate,jdbcType=TIMESTAMP}, #{workTeam,jdbcType=VARCHAR}, #{workGroup,jdbcType=VARCHAR}, 
136
+      #{changeReason,jdbcType=VARCHAR}, #{planType,jdbcType=VARCHAR}, #{applyStatus,jdbcType=INTEGER}, 
137
+      #{applyDate,jdbcType=TIMESTAMP}, #{applyIeda,jdbcType=VARCHAR}, #{isUpload,jdbcType=INTEGER}, 
138
+      #{updatetime,jdbcType=TIMESTAMP})
139
+  </insert>
140
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask" >
141
+    insert into storage_change_storagehouse_task
142
+    <trim prefix="(" suffix=")" suffixOverrides="," >
143
+      <if test="id != null" >
144
+        id,
145
+      </if>
146
+      <if test="orgId != null" >
147
+        org_id,
148
+      </if>
149
+      <if test="createDate != null" >
150
+        create_date,
151
+      </if>
152
+      <if test="workNo != null" >
153
+        work_no,
154
+      </if>
155
+      <if test="businessNo != null" >
156
+        business_no,
157
+      </if>
158
+      <if test="planPourOutSum != null" >
159
+        plan_pour_out_sum,
160
+      </if>
161
+      <if test="planPourInSum != null" >
162
+        plan_pour_in_sum,
163
+      </if>
164
+      <if test="applyUnitId != null" >
165
+        apply_unit_id,
166
+      </if>
167
+      <if test="applyUnitName != null" >
168
+        apply_unit_name,
169
+      </if>
170
+      <if test="storageUnnitPerson != null" >
171
+        storage_unnit_person,
172
+      </if>
173
+      <if test="applyTime != null" >
174
+        apply_time,
175
+      </if>
176
+      <if test="planStartDate != null" >
177
+        plan_start_date,
178
+      </if>
179
+      <if test="planEndDate != null" >
180
+        plan_end_date,
181
+      </if>
182
+      <if test="workTeam != null" >
183
+        work_team,
184
+      </if>
185
+      <if test="workGroup != null" >
186
+        work_group,
187
+      </if>
188
+      <if test="changeReason != null" >
189
+        change_reason,
190
+      </if>
191
+      <if test="planType != null" >
192
+        plan_type,
193
+      </if>
194
+      <if test="applyStatus != null" >
195
+        apply_status,
196
+      </if>
197
+      <if test="applyDate != null" >
198
+        apply_date,
199
+      </if>
200
+      <if test="applyIeda != null" >
201
+        apply_ieda,
202
+      </if>
203
+      <if test="isUpload != null" >
204
+        is_upload,
205
+      </if>
206
+      <if test="updatetime != null" >
207
+        updatetime,
208
+      </if>
209
+    </trim>
210
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
211
+      <if test="id != null" >
212
+        #{id,jdbcType=INTEGER},
213
+      </if>
214
+      <if test="orgId != null" >
215
+        #{orgId,jdbcType=INTEGER},
216
+      </if>
217
+      <if test="createDate != null" >
218
+        #{createDate,jdbcType=TIMESTAMP},
219
+      </if>
220
+      <if test="workNo != null" >
221
+        #{workNo,jdbcType=VARCHAR},
222
+      </if>
223
+      <if test="businessNo != null" >
224
+        #{businessNo,jdbcType=VARCHAR},
225
+      </if>
226
+      <if test="planPourOutSum != null" >
227
+        #{planPourOutSum,jdbcType=DECIMAL},
228
+      </if>
229
+      <if test="planPourInSum != null" >
230
+        #{planPourInSum,jdbcType=DECIMAL},
231
+      </if>
232
+      <if test="applyUnitId != null" >
233
+        #{applyUnitId,jdbcType=INTEGER},
234
+      </if>
235
+      <if test="applyUnitName != null" >
236
+        #{applyUnitName,jdbcType=VARCHAR},
237
+      </if>
238
+      <if test="storageUnnitPerson != null" >
239
+        #{storageUnnitPerson,jdbcType=VARCHAR},
240
+      </if>
241
+      <if test="applyTime != null" >
242
+        #{applyTime,jdbcType=TIMESTAMP},
243
+      </if>
244
+      <if test="planStartDate != null" >
245
+        #{planStartDate,jdbcType=TIMESTAMP},
246
+      </if>
247
+      <if test="planEndDate != null" >
248
+        #{planEndDate,jdbcType=TIMESTAMP},
249
+      </if>
250
+      <if test="workTeam != null" >
251
+        #{workTeam,jdbcType=VARCHAR},
252
+      </if>
253
+      <if test="workGroup != null" >
254
+        #{workGroup,jdbcType=VARCHAR},
255
+      </if>
256
+      <if test="changeReason != null" >
257
+        #{changeReason,jdbcType=VARCHAR},
258
+      </if>
259
+      <if test="planType != null" >
260
+        #{planType,jdbcType=VARCHAR},
261
+      </if>
262
+      <if test="applyStatus != null" >
263
+        #{applyStatus,jdbcType=INTEGER},
264
+      </if>
265
+      <if test="applyDate != null" >
266
+        #{applyDate,jdbcType=TIMESTAMP},
267
+      </if>
268
+      <if test="applyIeda != null" >
269
+        #{applyIeda,jdbcType=VARCHAR},
270
+      </if>
271
+      <if test="isUpload != null" >
272
+        #{isUpload,jdbcType=INTEGER},
273
+      </if>
274
+      <if test="updatetime != null" >
275
+        #{updatetime,jdbcType=TIMESTAMP},
276
+      </if>
277
+    </trim>
278
+  </insert>
279
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample" resultType="java.lang.Integer" >
280
+    select count(*) from storage_change_storagehouse_task
281
+    <if test="_parameter != null" >
282
+      <include refid="Example_Where_Clause" />
283
+    </if>
284
+  </select>
285
+  <update id="updateByExampleSelective" parameterType="map" >
286
+    update storage_change_storagehouse_task
287
+    <set >
288
+      <if test="record.id != null" >
289
+        id = #{record.id,jdbcType=INTEGER},
290
+      </if>
291
+      <if test="record.orgId != null" >
292
+        org_id = #{record.orgId,jdbcType=INTEGER},
293
+      </if>
294
+      <if test="record.createDate != null" >
295
+        create_date = #{record.createDate,jdbcType=TIMESTAMP},
296
+      </if>
297
+      <if test="record.workNo != null" >
298
+        work_no = #{record.workNo,jdbcType=VARCHAR},
299
+      </if>
300
+      <if test="record.businessNo != null" >
301
+        business_no = #{record.businessNo,jdbcType=VARCHAR},
302
+      </if>
303
+      <if test="record.planPourOutSum != null" >
304
+        plan_pour_out_sum = #{record.planPourOutSum,jdbcType=DECIMAL},
305
+      </if>
306
+      <if test="record.planPourInSum != null" >
307
+        plan_pour_in_sum = #{record.planPourInSum,jdbcType=DECIMAL},
308
+      </if>
309
+      <if test="record.applyUnitId != null" >
310
+        apply_unit_id = #{record.applyUnitId,jdbcType=INTEGER},
311
+      </if>
312
+      <if test="record.applyUnitName != null" >
313
+        apply_unit_name = #{record.applyUnitName,jdbcType=VARCHAR},
314
+      </if>
315
+      <if test="record.storageUnnitPerson != null" >
316
+        storage_unnit_person = #{record.storageUnnitPerson,jdbcType=VARCHAR},
317
+      </if>
318
+      <if test="record.applyTime != null" >
319
+        apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
320
+      </if>
321
+      <if test="record.planStartDate != null" >
322
+        plan_start_date = #{record.planStartDate,jdbcType=TIMESTAMP},
323
+      </if>
324
+      <if test="record.planEndDate != null" >
325
+        plan_end_date = #{record.planEndDate,jdbcType=TIMESTAMP},
326
+      </if>
327
+      <if test="record.workTeam != null" >
328
+        work_team = #{record.workTeam,jdbcType=VARCHAR},
329
+      </if>
330
+      <if test="record.workGroup != null" >
331
+        work_group = #{record.workGroup,jdbcType=VARCHAR},
332
+      </if>
333
+      <if test="record.changeReason != null" >
334
+        change_reason = #{record.changeReason,jdbcType=VARCHAR},
335
+      </if>
336
+      <if test="record.planType != null" >
337
+        plan_type = #{record.planType,jdbcType=VARCHAR},
338
+      </if>
339
+      <if test="record.applyStatus != null" >
340
+        apply_status = #{record.applyStatus,jdbcType=INTEGER},
341
+      </if>
342
+      <if test="record.applyDate != null" >
343
+        apply_date = #{record.applyDate,jdbcType=TIMESTAMP},
344
+      </if>
345
+      <if test="record.applyIeda != null" >
346
+        apply_ieda = #{record.applyIeda,jdbcType=VARCHAR},
347
+      </if>
348
+      <if test="record.isUpload != null" >
349
+        is_upload = #{record.isUpload,jdbcType=INTEGER},
350
+      </if>
351
+      <if test="record.updatetime != null" >
352
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
353
+      </if>
354
+    </set>
355
+    <if test="_parameter != null" >
356
+      <include refid="Update_By_Example_Where_Clause" />
357
+    </if>
358
+  </update>
359
+  <update id="updateByExample" parameterType="map" >
360
+    update storage_change_storagehouse_task
361
+    set id = #{record.id,jdbcType=INTEGER},
362
+      org_id = #{record.orgId,jdbcType=INTEGER},
363
+      create_date = #{record.createDate,jdbcType=TIMESTAMP},
364
+      work_no = #{record.workNo,jdbcType=VARCHAR},
365
+      business_no = #{record.businessNo,jdbcType=VARCHAR},
366
+      plan_pour_out_sum = #{record.planPourOutSum,jdbcType=DECIMAL},
367
+      plan_pour_in_sum = #{record.planPourInSum,jdbcType=DECIMAL},
368
+      apply_unit_id = #{record.applyUnitId,jdbcType=INTEGER},
369
+      apply_unit_name = #{record.applyUnitName,jdbcType=VARCHAR},
370
+      storage_unnit_person = #{record.storageUnnitPerson,jdbcType=VARCHAR},
371
+      apply_time = #{record.applyTime,jdbcType=TIMESTAMP},
372
+      plan_start_date = #{record.planStartDate,jdbcType=TIMESTAMP},
373
+      plan_end_date = #{record.planEndDate,jdbcType=TIMESTAMP},
374
+      work_team = #{record.workTeam,jdbcType=VARCHAR},
375
+      work_group = #{record.workGroup,jdbcType=VARCHAR},
376
+      change_reason = #{record.changeReason,jdbcType=VARCHAR},
377
+      plan_type = #{record.planType,jdbcType=VARCHAR},
378
+      apply_status = #{record.applyStatus,jdbcType=INTEGER},
379
+      apply_date = #{record.applyDate,jdbcType=TIMESTAMP},
380
+      apply_ieda = #{record.applyIeda,jdbcType=VARCHAR},
381
+      is_upload = #{record.isUpload,jdbcType=INTEGER},
382
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
383
+    <if test="_parameter != null" >
384
+      <include refid="Update_By_Example_Where_Clause" />
385
+    </if>
386
+  </update>
387
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask" >
388
+    update storage_change_storagehouse_task
389
+    <set >
390
+      <if test="orgId != null" >
391
+        org_id = #{orgId,jdbcType=INTEGER},
392
+      </if>
393
+      <if test="createDate != null" >
394
+        create_date = #{createDate,jdbcType=TIMESTAMP},
395
+      </if>
396
+      <if test="workNo != null" >
397
+        work_no = #{workNo,jdbcType=VARCHAR},
398
+      </if>
399
+      <if test="businessNo != null" >
400
+        business_no = #{businessNo,jdbcType=VARCHAR},
401
+      </if>
402
+      <if test="planPourOutSum != null" >
403
+        plan_pour_out_sum = #{planPourOutSum,jdbcType=DECIMAL},
404
+      </if>
405
+      <if test="planPourInSum != null" >
406
+        plan_pour_in_sum = #{planPourInSum,jdbcType=DECIMAL},
407
+      </if>
408
+      <if test="applyUnitId != null" >
409
+        apply_unit_id = #{applyUnitId,jdbcType=INTEGER},
410
+      </if>
411
+      <if test="applyUnitName != null" >
412
+        apply_unit_name = #{applyUnitName,jdbcType=VARCHAR},
413
+      </if>
414
+      <if test="storageUnnitPerson != null" >
415
+        storage_unnit_person = #{storageUnnitPerson,jdbcType=VARCHAR},
416
+      </if>
417
+      <if test="applyTime != null" >
418
+        apply_time = #{applyTime,jdbcType=TIMESTAMP},
419
+      </if>
420
+      <if test="planStartDate != null" >
421
+        plan_start_date = #{planStartDate,jdbcType=TIMESTAMP},
422
+      </if>
423
+      <if test="planEndDate != null" >
424
+        plan_end_date = #{planEndDate,jdbcType=TIMESTAMP},
425
+      </if>
426
+      <if test="workTeam != null" >
427
+        work_team = #{workTeam,jdbcType=VARCHAR},
428
+      </if>
429
+      <if test="workGroup != null" >
430
+        work_group = #{workGroup,jdbcType=VARCHAR},
431
+      </if>
432
+      <if test="changeReason != null" >
433
+        change_reason = #{changeReason,jdbcType=VARCHAR},
434
+      </if>
435
+      <if test="planType != null" >
436
+        plan_type = #{planType,jdbcType=VARCHAR},
437
+      </if>
438
+      <if test="applyStatus != null" >
439
+        apply_status = #{applyStatus,jdbcType=INTEGER},
440
+      </if>
441
+      <if test="applyDate != null" >
442
+        apply_date = #{applyDate,jdbcType=TIMESTAMP},
443
+      </if>
444
+      <if test="applyIeda != null" >
445
+        apply_ieda = #{applyIeda,jdbcType=VARCHAR},
446
+      </if>
447
+      <if test="isUpload != null" >
448
+        is_upload = #{isUpload,jdbcType=INTEGER},
449
+      </if>
450
+      <if test="updatetime != null" >
451
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
452
+      </if>
453
+    </set>
454
+    where id = #{id,jdbcType=INTEGER}
455
+  </update>
456
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask" >
457
+    update storage_change_storagehouse_task
458
+    set org_id = #{orgId,jdbcType=INTEGER},
459
+      create_date = #{createDate,jdbcType=TIMESTAMP},
460
+      work_no = #{workNo,jdbcType=VARCHAR},
461
+      business_no = #{businessNo,jdbcType=VARCHAR},
462
+      plan_pour_out_sum = #{planPourOutSum,jdbcType=DECIMAL},
463
+      plan_pour_in_sum = #{planPourInSum,jdbcType=DECIMAL},
464
+      apply_unit_id = #{applyUnitId,jdbcType=INTEGER},
465
+      apply_unit_name = #{applyUnitName,jdbcType=VARCHAR},
466
+      storage_unnit_person = #{storageUnnitPerson,jdbcType=VARCHAR},
467
+      apply_time = #{applyTime,jdbcType=TIMESTAMP},
468
+      plan_start_date = #{planStartDate,jdbcType=TIMESTAMP},
469
+      plan_end_date = #{planEndDate,jdbcType=TIMESTAMP},
470
+      work_team = #{workTeam,jdbcType=VARCHAR},
471
+      work_group = #{workGroup,jdbcType=VARCHAR},
472
+      change_reason = #{changeReason,jdbcType=VARCHAR},
473
+      plan_type = #{planType,jdbcType=VARCHAR},
474
+      apply_status = #{applyStatus,jdbcType=INTEGER},
475
+      apply_date = #{applyDate,jdbcType=TIMESTAMP},
476
+      apply_ieda = #{applyIeda,jdbcType=VARCHAR},
477
+      is_upload = #{isUpload,jdbcType=INTEGER},
478
+      updatetime = #{updatetime,jdbcType=TIMESTAMP}
479
+    where id = #{id,jdbcType=INTEGER}
480
+  </update>
481
+</mapper>

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

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

+ 385 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageChangeStoragehouseWorkTaskMapper.xml

@@ -0,0 +1,385 @@
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.StorageChangeStoragehouseWorkTaskMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="org_id" property="org_id" jdbcType="INTEGER" />
7
+    <result column="createDate" property="createDate" jdbcType="TIMESTAMP" />
8
+    <result column="workNo" property="workNo" jdbcType="VARCHAR" />
9
+    <result column="houseId" property="houseId" jdbcType="INTEGER" />
10
+    <result column="wareId" property="wareId" jdbcType="INTEGER" />
11
+    <result column="storehouseId" property="storehouseId" jdbcType="INTEGER" />
12
+    <result column="warehouseId" property="warehouseId" jdbcType="INTEGER" />
13
+    <result column="lspz" property="lspz" jdbcType="INTEGER" />
14
+    <result column="qichuNum" property="qichuNum" jdbcType="DECIMAL" />
15
+    <result column="pourInNum" property="pourInNum" jdbcType="DECIMAL" />
16
+    <result column="pourOutNum" property="pourOutNum" jdbcType="DECIMAL" />
17
+    <result column="surplusNum" property="surplusNum" jdbcType="DECIMAL" />
18
+    <result column="changIndex" property="changIndex" jdbcType="INTEGER" />
19
+    <result column="beginNum" property="beginNum" jdbcType="DECIMAL" />
20
+    <result column="resultNum" property="resultNum" jdbcType="DECIMAL" />
21
+  </resultMap>
22
+  <sql id="Example_Where_Clause" >
23
+    <where >
24
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
25
+        <if test="criteria.valid" >
26
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
27
+            <foreach collection="criteria.criteria" item="criterion" >
28
+              <choose >
29
+                <when test="criterion.noValue" >
30
+                  and ${criterion.condition}
31
+                </when>
32
+                <when test="criterion.singleValue" >
33
+                  and ${criterion.condition} #{criterion.value}
34
+                </when>
35
+                <when test="criterion.betweenValue" >
36
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
37
+                </when>
38
+                <when test="criterion.listValue" >
39
+                  and ${criterion.condition}
40
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
41
+                    #{listItem}
42
+                  </foreach>
43
+                </when>
44
+              </choose>
45
+            </foreach>
46
+          </trim>
47
+        </if>
48
+      </foreach>
49
+    </where>
50
+  </sql>
51
+  <sql id="Update_By_Example_Where_Clause" >
52
+    <where >
53
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
54
+        <if test="criteria.valid" >
55
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
56
+            <foreach collection="criteria.criteria" item="criterion" >
57
+              <choose >
58
+                <when test="criterion.noValue" >
59
+                  and ${criterion.condition}
60
+                </when>
61
+                <when test="criterion.singleValue" >
62
+                  and ${criterion.condition} #{criterion.value}
63
+                </when>
64
+                <when test="criterion.betweenValue" >
65
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
66
+                </when>
67
+                <when test="criterion.listValue" >
68
+                  and ${criterion.condition}
69
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
70
+                    #{listItem}
71
+                  </foreach>
72
+                </when>
73
+              </choose>
74
+            </foreach>
75
+          </trim>
76
+        </if>
77
+      </foreach>
78
+    </where>
79
+  </sql>
80
+  <sql id="Base_Column_List" >
81
+    id, org_id, createDate, workNo, houseId, wareId, storehouseId, warehouseId, lspz, 
82
+    qichuNum, pourInNum, pourOutNum, surplusNum, changIndex, beginNum, resultNum
83
+  </sql>
84
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample" >
85
+    select
86
+    <if test="distinct" >
87
+      distinct
88
+    </if>
89
+    <include refid="Base_Column_List" />
90
+    from storage_change_storagehouse_work_task
91
+    <if test="_parameter != null" >
92
+      <include refid="Example_Where_Clause" />
93
+    </if>
94
+    <if test="orderByClause != null" >
95
+      order by ${orderByClause}
96
+    </if>
97
+  </select>
98
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
99
+    select 
100
+    <include refid="Base_Column_List" />
101
+    from storage_change_storagehouse_work_task
102
+    where id = #{id,jdbcType=INTEGER}
103
+  </select>
104
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
105
+    delete from storage_change_storagehouse_work_task
106
+    where id = #{id,jdbcType=INTEGER}
107
+  </delete>
108
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample" >
109
+    delete from storage_change_storagehouse_work_task
110
+    <if test="_parameter != null" >
111
+      <include refid="Example_Where_Clause" />
112
+    </if>
113
+  </delete>
114
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask" >
115
+    insert into storage_change_storagehouse_work_task (id, org_id, createDate, 
116
+      workNo, houseId, wareId, 
117
+      storehouseId, warehouseId, lspz, 
118
+      qichuNum, pourInNum, pourOutNum, 
119
+      surplusNum, changIndex, beginNum, 
120
+      resultNum)
121
+    values (#{id,jdbcType=INTEGER}, #{org_id,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
122
+      #{workNo,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER}, #{wareId,jdbcType=INTEGER}, 
123
+      #{storehouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, #{lspz,jdbcType=INTEGER}, 
124
+      #{qichuNum,jdbcType=DECIMAL}, #{pourInNum,jdbcType=DECIMAL}, #{pourOutNum,jdbcType=DECIMAL}, 
125
+      #{surplusNum,jdbcType=DECIMAL}, #{changIndex,jdbcType=INTEGER}, #{beginNum,jdbcType=DECIMAL}, 
126
+      #{resultNum,jdbcType=DECIMAL})
127
+  </insert>
128
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask" >
129
+    insert into storage_change_storagehouse_work_task
130
+    <trim prefix="(" suffix=")" suffixOverrides="," >
131
+      <if test="id != null" >
132
+        id,
133
+      </if>
134
+      <if test="org_id != null" >
135
+        org_id,
136
+      </if>
137
+      <if test="createDate != null" >
138
+        createDate,
139
+      </if>
140
+      <if test="workNo != null" >
141
+        workNo,
142
+      </if>
143
+      <if test="houseId != null" >
144
+        houseId,
145
+      </if>
146
+      <if test="wareId != null" >
147
+        wareId,
148
+      </if>
149
+      <if test="storehouseId != null" >
150
+        storehouseId,
151
+      </if>
152
+      <if test="warehouseId != null" >
153
+        warehouseId,
154
+      </if>
155
+      <if test="lspz != null" >
156
+        lspz,
157
+      </if>
158
+      <if test="qichuNum != null" >
159
+        qichuNum,
160
+      </if>
161
+      <if test="pourInNum != null" >
162
+        pourInNum,
163
+      </if>
164
+      <if test="pourOutNum != null" >
165
+        pourOutNum,
166
+      </if>
167
+      <if test="surplusNum != null" >
168
+        surplusNum,
169
+      </if>
170
+      <if test="changIndex != null" >
171
+        changIndex,
172
+      </if>
173
+      <if test="beginNum != null" >
174
+        beginNum,
175
+      </if>
176
+      <if test="resultNum != null" >
177
+        resultNum,
178
+      </if>
179
+    </trim>
180
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
181
+      <if test="id != null" >
182
+        #{id,jdbcType=INTEGER},
183
+      </if>
184
+      <if test="org_id != null" >
185
+        #{org_id,jdbcType=INTEGER},
186
+      </if>
187
+      <if test="createDate != null" >
188
+        #{createDate,jdbcType=TIMESTAMP},
189
+      </if>
190
+      <if test="workNo != null" >
191
+        #{workNo,jdbcType=VARCHAR},
192
+      </if>
193
+      <if test="houseId != null" >
194
+        #{houseId,jdbcType=INTEGER},
195
+      </if>
196
+      <if test="wareId != null" >
197
+        #{wareId,jdbcType=INTEGER},
198
+      </if>
199
+      <if test="storehouseId != null" >
200
+        #{storehouseId,jdbcType=INTEGER},
201
+      </if>
202
+      <if test="warehouseId != null" >
203
+        #{warehouseId,jdbcType=INTEGER},
204
+      </if>
205
+      <if test="lspz != null" >
206
+        #{lspz,jdbcType=INTEGER},
207
+      </if>
208
+      <if test="qichuNum != null" >
209
+        #{qichuNum,jdbcType=DECIMAL},
210
+      </if>
211
+      <if test="pourInNum != null" >
212
+        #{pourInNum,jdbcType=DECIMAL},
213
+      </if>
214
+      <if test="pourOutNum != null" >
215
+        #{pourOutNum,jdbcType=DECIMAL},
216
+      </if>
217
+      <if test="surplusNum != null" >
218
+        #{surplusNum,jdbcType=DECIMAL},
219
+      </if>
220
+      <if test="changIndex != null" >
221
+        #{changIndex,jdbcType=INTEGER},
222
+      </if>
223
+      <if test="beginNum != null" >
224
+        #{beginNum,jdbcType=DECIMAL},
225
+      </if>
226
+      <if test="resultNum != null" >
227
+        #{resultNum,jdbcType=DECIMAL},
228
+      </if>
229
+    </trim>
230
+  </insert>
231
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample" resultType="java.lang.Integer" >
232
+    select count(*) from storage_change_storagehouse_work_task
233
+    <if test="_parameter != null" >
234
+      <include refid="Example_Where_Clause" />
235
+    </if>
236
+  </select>
237
+  <update id="updateByExampleSelective" parameterType="map" >
238
+    update storage_change_storagehouse_work_task
239
+    <set >
240
+      <if test="record.id != null" >
241
+        id = #{record.id,jdbcType=INTEGER},
242
+      </if>
243
+      <if test="record.org_id != null" >
244
+        org_id = #{record.org_id,jdbcType=INTEGER},
245
+      </if>
246
+      <if test="record.createDate != null" >
247
+        createDate = #{record.createDate,jdbcType=TIMESTAMP},
248
+      </if>
249
+      <if test="record.workNo != null" >
250
+        workNo = #{record.workNo,jdbcType=VARCHAR},
251
+      </if>
252
+      <if test="record.houseId != null" >
253
+        houseId = #{record.houseId,jdbcType=INTEGER},
254
+      </if>
255
+      <if test="record.wareId != null" >
256
+        wareId = #{record.wareId,jdbcType=INTEGER},
257
+      </if>
258
+      <if test="record.storehouseId != null" >
259
+        storehouseId = #{record.storehouseId,jdbcType=INTEGER},
260
+      </if>
261
+      <if test="record.warehouseId != null" >
262
+        warehouseId = #{record.warehouseId,jdbcType=INTEGER},
263
+      </if>
264
+      <if test="record.lspz != null" >
265
+        lspz = #{record.lspz,jdbcType=INTEGER},
266
+      </if>
267
+      <if test="record.qichuNum != null" >
268
+        qichuNum = #{record.qichuNum,jdbcType=DECIMAL},
269
+      </if>
270
+      <if test="record.pourInNum != null" >
271
+        pourInNum = #{record.pourInNum,jdbcType=DECIMAL},
272
+      </if>
273
+      <if test="record.pourOutNum != null" >
274
+        pourOutNum = #{record.pourOutNum,jdbcType=DECIMAL},
275
+      </if>
276
+      <if test="record.surplusNum != null" >
277
+        surplusNum = #{record.surplusNum,jdbcType=DECIMAL},
278
+      </if>
279
+      <if test="record.changIndex != null" >
280
+        changIndex = #{record.changIndex,jdbcType=INTEGER},
281
+      </if>
282
+      <if test="record.beginNum != null" >
283
+        beginNum = #{record.beginNum,jdbcType=DECIMAL},
284
+      </if>
285
+      <if test="record.resultNum != null" >
286
+        resultNum = #{record.resultNum,jdbcType=DECIMAL},
287
+      </if>
288
+    </set>
289
+    <if test="_parameter != null" >
290
+      <include refid="Update_By_Example_Where_Clause" />
291
+    </if>
292
+  </update>
293
+  <update id="updateByExample" parameterType="map" >
294
+    update storage_change_storagehouse_work_task
295
+    set id = #{record.id,jdbcType=INTEGER},
296
+      org_id = #{record.org_id,jdbcType=INTEGER},
297
+      createDate = #{record.createDate,jdbcType=TIMESTAMP},
298
+      workNo = #{record.workNo,jdbcType=VARCHAR},
299
+      houseId = #{record.houseId,jdbcType=INTEGER},
300
+      wareId = #{record.wareId,jdbcType=INTEGER},
301
+      storehouseId = #{record.storehouseId,jdbcType=INTEGER},
302
+      warehouseId = #{record.warehouseId,jdbcType=INTEGER},
303
+      lspz = #{record.lspz,jdbcType=INTEGER},
304
+      qichuNum = #{record.qichuNum,jdbcType=DECIMAL},
305
+      pourInNum = #{record.pourInNum,jdbcType=DECIMAL},
306
+      pourOutNum = #{record.pourOutNum,jdbcType=DECIMAL},
307
+      surplusNum = #{record.surplusNum,jdbcType=DECIMAL},
308
+      changIndex = #{record.changIndex,jdbcType=INTEGER},
309
+      beginNum = #{record.beginNum,jdbcType=DECIMAL},
310
+      resultNum = #{record.resultNum,jdbcType=DECIMAL}
311
+    <if test="_parameter != null" >
312
+      <include refid="Update_By_Example_Where_Clause" />
313
+    </if>
314
+  </update>
315
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask" >
316
+    update storage_change_storagehouse_work_task
317
+    <set >
318
+      <if test="org_id != null" >
319
+        org_id = #{org_id,jdbcType=INTEGER},
320
+      </if>
321
+      <if test="createDate != null" >
322
+        createDate = #{createDate,jdbcType=TIMESTAMP},
323
+      </if>
324
+      <if test="workNo != null" >
325
+        workNo = #{workNo,jdbcType=VARCHAR},
326
+      </if>
327
+      <if test="houseId != null" >
328
+        houseId = #{houseId,jdbcType=INTEGER},
329
+      </if>
330
+      <if test="wareId != null" >
331
+        wareId = #{wareId,jdbcType=INTEGER},
332
+      </if>
333
+      <if test="storehouseId != null" >
334
+        storehouseId = #{storehouseId,jdbcType=INTEGER},
335
+      </if>
336
+      <if test="warehouseId != null" >
337
+        warehouseId = #{warehouseId,jdbcType=INTEGER},
338
+      </if>
339
+      <if test="lspz != null" >
340
+        lspz = #{lspz,jdbcType=INTEGER},
341
+      </if>
342
+      <if test="qichuNum != null" >
343
+        qichuNum = #{qichuNum,jdbcType=DECIMAL},
344
+      </if>
345
+      <if test="pourInNum != null" >
346
+        pourInNum = #{pourInNum,jdbcType=DECIMAL},
347
+      </if>
348
+      <if test="pourOutNum != null" >
349
+        pourOutNum = #{pourOutNum,jdbcType=DECIMAL},
350
+      </if>
351
+      <if test="surplusNum != null" >
352
+        surplusNum = #{surplusNum,jdbcType=DECIMAL},
353
+      </if>
354
+      <if test="changIndex != null" >
355
+        changIndex = #{changIndex,jdbcType=INTEGER},
356
+      </if>
357
+      <if test="beginNum != null" >
358
+        beginNum = #{beginNum,jdbcType=DECIMAL},
359
+      </if>
360
+      <if test="resultNum != null" >
361
+        resultNum = #{resultNum,jdbcType=DECIMAL},
362
+      </if>
363
+    </set>
364
+    where id = #{id,jdbcType=INTEGER}
365
+  </update>
366
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask" >
367
+    update storage_change_storagehouse_work_task
368
+    set org_id = #{org_id,jdbcType=INTEGER},
369
+      createDate = #{createDate,jdbcType=TIMESTAMP},
370
+      workNo = #{workNo,jdbcType=VARCHAR},
371
+      houseId = #{houseId,jdbcType=INTEGER},
372
+      wareId = #{wareId,jdbcType=INTEGER},
373
+      storehouseId = #{storehouseId,jdbcType=INTEGER},
374
+      warehouseId = #{warehouseId,jdbcType=INTEGER},
375
+      lspz = #{lspz,jdbcType=INTEGER},
376
+      qichuNum = #{qichuNum,jdbcType=DECIMAL},
377
+      pourInNum = #{pourInNum,jdbcType=DECIMAL},
378
+      pourOutNum = #{pourOutNum,jdbcType=DECIMAL},
379
+      surplusNum = #{surplusNum,jdbcType=DECIMAL},
380
+      changIndex = #{changIndex,jdbcType=INTEGER},
381
+      beginNum = #{beginNum,jdbcType=DECIMAL},
382
+      resultNum = #{resultNum,jdbcType=DECIMAL}
383
+    where id = #{id,jdbcType=INTEGER}
384
+  </update>
385
+</mapper>

+ 39 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageDumpMapper.java

@@ -0,0 +1,39 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import com.chinaitop.depot.storage.model.StorageDump;
7
+import com.chinaitop.depot.storage.model.StorageDumpExample;
8
+
9
+public interface StorageDumpMapper {
10
+    int countByExample(StorageDumpExample example);
11
+
12
+    int deleteByExample(StorageDumpExample example);
13
+
14
+    int deleteByPrimaryKey(Integer id);
15
+
16
+    int insert(StorageDump record);
17
+
18
+    int insertSelective(StorageDump record);
19
+
20
+    List<StorageDump> selectByExample(StorageDumpExample example);
21
+
22
+    StorageDump selectByPrimaryKey(Integer id);
23
+
24
+    int updateByExampleSelective(StorageDumpExample example);
25
+
26
+    int updateByExample(StorageDumpExample example);
27
+
28
+    int updateByPrimaryKeySelective(StorageDump record);
29
+
30
+    int updateByPrimaryKey(StorageDump record);
31
+
32
+    /**
33
+     * 查询验收通过的数据
34
+     * 
35
+     * @param orgId 单位ID
36
+     * @return
37
+     */
38
+    List<Map<String, Object>> selectYswData(Integer orgId);
39
+}

+ 440 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageDumpMapper.xml

@@ -0,0 +1,440 @@
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.StorageDumpMapper">
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageDump">
5
+    <id column="id" jdbcType="INTEGER" property="id" />
6
+    <result column="ys_id" jdbcType="INTEGER" property="ysId" />
7
+    <result column="org_id" jdbcType="INTEGER" property="orgId" />
8
+    <result column="house_id" jdbcType="INTEGER" property="houseId" />
9
+    <result column="ware_id" jdbcType="INTEGER" property="wareId" />
10
+    <result column="lspz" jdbcType="INTEGER" property="lspz" />
11
+    <result column="y_lsxz" jdbcType="INTEGER" property="yLsxz" />
12
+    <result column="x_lsxz" jdbcType="INTEGER" property="xLsxz" />
13
+    <result column="lsdj" jdbcType="INTEGER" property="lsdj" />
14
+    <result column="clsl" jdbcType="DECIMAL" property="clsl" />
15
+    <result column="zjjg" jdbcType="VARCHAR" property="zjjg" />
16
+    <result column="ys_status" jdbcType="VARCHAR" property="ysStatus" />
17
+    <result column="business_create_time" jdbcType="TIMESTAMP" property="businessCreateTime" />
18
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
19
+    <result column="create_person" jdbcType="VARCHAR" property="createPerson" />
20
+    <result column="is_upload" jdbcType="INTEGER" property="isUpload" />
21
+    <result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime" />
22
+    <result column="updatetime" jdbcType="TIMESTAMP" property="updatetime" />
23
+  </resultMap>
24
+  <sql id="Example_Where_Clause">
25
+    <where>
26
+      <foreach collection="oredCriteria" item="criteria" separator="or">
27
+        <if test="criteria.valid">
28
+          <trim prefix="(" prefixOverrides="and" suffix=")">
29
+            <foreach collection="criteria.criteria" item="criterion">
30
+              <choose>
31
+                <when test="criterion.noValue">
32
+                  and ${criterion.condition}
33
+                </when>
34
+                <when test="criterion.singleValue">
35
+                  and ${criterion.condition} #{criterion.value}
36
+                </when>
37
+                <when test="criterion.betweenValue">
38
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
39
+                </when>
40
+                <when test="criterion.listValue">
41
+                  and ${criterion.condition}
42
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
43
+                    #{listItem}
44
+                  </foreach>
45
+                </when>
46
+              </choose>
47
+            </foreach>
48
+          </trim>
49
+        </if>
50
+      </foreach>
51
+    </where>
52
+  </sql>
53
+  <sql id="Update_By_Example_Where_Clause">
54
+    <where>
55
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
56
+        <if test="criteria.valid">
57
+          <trim prefix="(" prefixOverrides="and" suffix=")">
58
+            <foreach collection="criteria.criteria" item="criterion">
59
+              <choose>
60
+                <when test="criterion.noValue">
61
+                  and ${criterion.condition}
62
+                </when>
63
+                <when test="criterion.singleValue">
64
+                  and ${criterion.condition} #{criterion.value}
65
+                </when>
66
+                <when test="criterion.betweenValue">
67
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
68
+                </when>
69
+                <when test="criterion.listValue">
70
+                  and ${criterion.condition}
71
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
72
+                    #{listItem}
73
+                  </foreach>
74
+                </when>
75
+              </choose>
76
+            </foreach>
77
+          </trim>
78
+        </if>
79
+      </foreach>
80
+    </where>
81
+  </sql>
82
+  <sql id="Base_Column_List">
83
+    id, ys_id, org_id, house_id, ware_id, lspz, y_lsxz, x_lsxz, lsdj, clsl, zjjg, ys_status, 
84
+    business_create_time, create_time, create_person, is_upload, upload_time, updatetime
85
+  </sql>
86
+  <select id="selectByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample" resultMap="BaseResultMap">
87
+    select
88
+    <if test="distinct">
89
+      distinct
90
+    </if>
91
+    <include refid="Base_Column_List" />
92
+    from storage_dump
93
+    <if test="_parameter != null">
94
+      <include refid="Example_Where_Clause" />
95
+    </if>
96
+    <if test="orderByClause != null">
97
+      order by ${orderByClause}
98
+    </if>
99
+  </select>
100
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
101
+    select 
102
+    <include refid="Base_Column_List" />
103
+    from storage_dump
104
+    where id = #{id,jdbcType=INTEGER}
105
+  </select>
106
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
107
+    delete from storage_dump
108
+    where id = #{id,jdbcType=INTEGER}
109
+  </delete>
110
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample">
111
+    delete from storage_dump
112
+    <if test="_parameter != null">
113
+      <include refid="Example_Where_Clause" />
114
+    </if>
115
+  </delete>
116
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageDump">
117
+    insert into storage_dump (id, ys_id, org_id, 
118
+      house_id, ware_id, lspz, 
119
+      y_lsxz, x_lsxz, lsdj, 
120
+      clsl, zjjg, ys_status, 
121
+      business_create_time, create_time, create_person, 
122
+      is_upload, upload_time, updatetime
123
+      )
124
+    values (#{id,jdbcType=INTEGER}, #{ysId,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, 
125
+      #{houseId,jdbcType=INTEGER}, #{wareId,jdbcType=INTEGER}, #{lspz,jdbcType=INTEGER}, 
126
+      #{yLsxz,jdbcType=INTEGER}, #{xLsxz,jdbcType=INTEGER}, #{lsdj,jdbcType=INTEGER}, 
127
+      #{clsl,jdbcType=DECIMAL}, #{zjjg,jdbcType=VARCHAR}, #{ysStatus,jdbcType=VARCHAR}, 
128
+      #{businessCreateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{createPerson,jdbcType=VARCHAR}, 
129
+      #{isUpload,jdbcType=INTEGER}, #{uploadTime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}
130
+      )
131
+  </insert>
132
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageDump">
133
+    insert into storage_dump
134
+    <trim prefix="(" suffix=")" suffixOverrides=",">
135
+      <if test="id != null">
136
+        id,
137
+      </if>
138
+      <if test="ysId != null">
139
+        ys_id,
140
+      </if>
141
+      <if test="orgId != null">
142
+        org_id,
143
+      </if>
144
+      <if test="houseId != null">
145
+        house_id,
146
+      </if>
147
+      <if test="wareId != null">
148
+        ware_id,
149
+      </if>
150
+      <if test="lspz != null">
151
+        lspz,
152
+      </if>
153
+      <if test="yLsxz != null">
154
+        y_lsxz,
155
+      </if>
156
+      <if test="xLsxz != null">
157
+        x_lsxz,
158
+      </if>
159
+      <if test="lsdj != null">
160
+        lsdj,
161
+      </if>
162
+      <if test="clsl != null">
163
+        clsl,
164
+      </if>
165
+      <if test="zjjg != null">
166
+        zjjg,
167
+      </if>
168
+      <if test="ysStatus != null">
169
+        ys_status,
170
+      </if>
171
+      <if test="businessCreateTime != null">
172
+        business_create_time,
173
+      </if>
174
+      <if test="createTime != null">
175
+        create_time,
176
+      </if>
177
+      <if test="createPerson != null">
178
+        create_person,
179
+      </if>
180
+      <if test="isUpload != null">
181
+        is_upload,
182
+      </if>
183
+      <if test="uploadTime != null">
184
+        upload_time,
185
+      </if>
186
+      <if test="updatetime != null">
187
+        updatetime,
188
+      </if>
189
+    </trim>
190
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
191
+      <if test="id != null">
192
+        #{id,jdbcType=INTEGER},
193
+      </if>
194
+      <if test="ysId != null">
195
+        #{ysId,jdbcType=INTEGER},
196
+      </if>
197
+      <if test="orgId != null">
198
+        #{orgId,jdbcType=INTEGER},
199
+      </if>
200
+      <if test="houseId != null">
201
+        #{houseId,jdbcType=INTEGER},
202
+      </if>
203
+      <if test="wareId != null">
204
+        #{wareId,jdbcType=INTEGER},
205
+      </if>
206
+      <if test="lspz != null">
207
+        #{lspz,jdbcType=INTEGER},
208
+      </if>
209
+      <if test="yLsxz != null">
210
+        #{yLsxz,jdbcType=INTEGER},
211
+      </if>
212
+      <if test="xLsxz != null">
213
+        #{xLsxz,jdbcType=INTEGER},
214
+      </if>
215
+      <if test="lsdj != null">
216
+        #{lsdj,jdbcType=INTEGER},
217
+      </if>
218
+      <if test="clsl != null">
219
+        #{clsl,jdbcType=DECIMAL},
220
+      </if>
221
+      <if test="zjjg != null">
222
+        #{zjjg,jdbcType=VARCHAR},
223
+      </if>
224
+      <if test="ysStatus != null">
225
+        #{ysStatus,jdbcType=VARCHAR},
226
+      </if>
227
+      <if test="businessCreateTime != null">
228
+        #{businessCreateTime,jdbcType=TIMESTAMP},
229
+      </if>
230
+      <if test="createTime != null">
231
+        #{createTime,jdbcType=TIMESTAMP},
232
+      </if>
233
+      <if test="createPerson != null">
234
+        #{createPerson,jdbcType=VARCHAR},
235
+      </if>
236
+      <if test="isUpload != null">
237
+        #{isUpload,jdbcType=INTEGER},
238
+      </if>
239
+      <if test="uploadTime != null">
240
+        #{uploadTime,jdbcType=TIMESTAMP},
241
+      </if>
242
+      <if test="updatetime != null">
243
+        #{updatetime,jdbcType=TIMESTAMP},
244
+      </if>
245
+    </trim>
246
+  </insert>
247
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageDumpExample" resultType="java.lang.Integer">
248
+    select count(*) from storage_dump
249
+    <if test="_parameter != null">
250
+      <include refid="Example_Where_Clause" />
251
+    </if>
252
+  </select>
253
+  <update id="updateByExampleSelective" parameterType="map">
254
+    update storage_dump
255
+    <set>
256
+      <if test="record.id != null">
257
+        id = #{record.id,jdbcType=INTEGER},
258
+      </if>
259
+      <if test="record.ysId != null">
260
+        ys_id = #{record.ysId,jdbcType=INTEGER},
261
+      </if>
262
+      <if test="record.orgId != null">
263
+        org_id = #{record.orgId,jdbcType=INTEGER},
264
+      </if>
265
+      <if test="record.houseId != null">
266
+        house_id = #{record.houseId,jdbcType=INTEGER},
267
+      </if>
268
+      <if test="record.wareId != null">
269
+        ware_id = #{record.wareId,jdbcType=INTEGER},
270
+      </if>
271
+      <if test="record.lspz != null">
272
+        lspz = #{record.lspz,jdbcType=INTEGER},
273
+      </if>
274
+      <if test="record.yLsxz != null">
275
+        y_lsxz = #{record.yLsxz,jdbcType=INTEGER},
276
+      </if>
277
+      <if test="record.xLsxz != null">
278
+        x_lsxz = #{record.xLsxz,jdbcType=INTEGER},
279
+      </if>
280
+      <if test="record.lsdj != null">
281
+        lsdj = #{record.lsdj,jdbcType=INTEGER},
282
+      </if>
283
+      <if test="record.clsl != null">
284
+        clsl = #{record.clsl,jdbcType=DECIMAL},
285
+      </if>
286
+      <if test="record.zjjg != null">
287
+        zjjg = #{record.zjjg,jdbcType=VARCHAR},
288
+      </if>
289
+      <if test="record.ysStatus != null">
290
+        ys_status = #{record.ysStatus,jdbcType=VARCHAR},
291
+      </if>
292
+      <if test="record.businessCreateTime != null">
293
+        business_create_time = #{record.businessCreateTime,jdbcType=TIMESTAMP},
294
+      </if>
295
+      <if test="record.createTime != null">
296
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
297
+      </if>
298
+      <if test="record.createPerson != null">
299
+        create_person = #{record.createPerson,jdbcType=VARCHAR},
300
+      </if>
301
+      <if test="record.isUpload != null">
302
+        is_upload = #{record.isUpload,jdbcType=INTEGER},
303
+      </if>
304
+      <if test="record.uploadTime != null">
305
+        upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
306
+      </if>
307
+      <if test="record.updatetime != null">
308
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
309
+      </if>
310
+    </set>
311
+    <if test="_parameter != null">
312
+      <include refid="Update_By_Example_Where_Clause" />
313
+    </if>
314
+  </update>
315
+  <update id="updateByExample" parameterType="map">
316
+    update storage_dump
317
+    set id = #{record.id,jdbcType=INTEGER},
318
+      ys_id = #{record.ysId,jdbcType=INTEGER},
319
+      org_id = #{record.orgId,jdbcType=INTEGER},
320
+      house_id = #{record.houseId,jdbcType=INTEGER},
321
+      ware_id = #{record.wareId,jdbcType=INTEGER},
322
+      lspz = #{record.lspz,jdbcType=INTEGER},
323
+      y_lsxz = #{record.yLsxz,jdbcType=INTEGER},
324
+      x_lsxz = #{record.xLsxz,jdbcType=INTEGER},
325
+      lsdj = #{record.lsdj,jdbcType=INTEGER},
326
+      clsl = #{record.clsl,jdbcType=DECIMAL},
327
+      zjjg = #{record.zjjg,jdbcType=VARCHAR},
328
+      ys_status = #{record.ysStatus,jdbcType=VARCHAR},
329
+      business_create_time = #{record.businessCreateTime,jdbcType=TIMESTAMP},
330
+      create_time = #{record.createTime,jdbcType=TIMESTAMP},
331
+      create_person = #{record.createPerson,jdbcType=VARCHAR},
332
+      is_upload = #{record.isUpload,jdbcType=INTEGER},
333
+      upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
334
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
335
+    <if test="_parameter != null">
336
+      <include refid="Update_By_Example_Where_Clause" />
337
+    </if>
338
+  </update>
339
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageDump">
340
+    update storage_dump
341
+    <set>
342
+      <if test="ysId != null">
343
+        ys_id = #{ysId,jdbcType=INTEGER},
344
+      </if>
345
+      <if test="orgId != null">
346
+        org_id = #{orgId,jdbcType=INTEGER},
347
+      </if>
348
+      <if test="houseId != null">
349
+        house_id = #{houseId,jdbcType=INTEGER},
350
+      </if>
351
+      <if test="wareId != null">
352
+        ware_id = #{wareId,jdbcType=INTEGER},
353
+      </if>
354
+      <if test="lspz != null">
355
+        lspz = #{lspz,jdbcType=INTEGER},
356
+      </if>
357
+      <if test="yLsxz != null">
358
+        y_lsxz = #{yLsxz,jdbcType=INTEGER},
359
+      </if>
360
+      <if test="xLsxz != null">
361
+        x_lsxz = #{xLsxz,jdbcType=INTEGER},
362
+      </if>
363
+      <if test="lsdj != null">
364
+        lsdj = #{lsdj,jdbcType=INTEGER},
365
+      </if>
366
+      <if test="clsl != null">
367
+        clsl = #{clsl,jdbcType=DECIMAL},
368
+      </if>
369
+      <if test="zjjg != null">
370
+        zjjg = #{zjjg,jdbcType=VARCHAR},
371
+      </if>
372
+      <if test="ysStatus != null">
373
+        ys_status = #{ysStatus,jdbcType=VARCHAR},
374
+      </if>
375
+      <if test="businessCreateTime != null">
376
+        business_create_time = #{businessCreateTime,jdbcType=TIMESTAMP},
377
+      </if>
378
+      <if test="createTime != null">
379
+        create_time = #{createTime,jdbcType=TIMESTAMP},
380
+      </if>
381
+      <if test="createPerson != null">
382
+        create_person = #{createPerson,jdbcType=VARCHAR},
383
+      </if>
384
+      <if test="isUpload != null">
385
+        is_upload = #{isUpload,jdbcType=INTEGER},
386
+      </if>
387
+      <if test="uploadTime != null">
388
+        upload_time = #{uploadTime,jdbcType=TIMESTAMP},
389
+      </if>
390
+      <if test="updatetime != null">
391
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
392
+      </if>
393
+    </set>
394
+    where id = #{id,jdbcType=INTEGER}
395
+  </update>
396
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageDump">
397
+    update storage_dump
398
+    set ys_id = #{ysId,jdbcType=INTEGER},
399
+      org_id = #{orgId,jdbcType=INTEGER},
400
+      house_id = #{houseId,jdbcType=INTEGER},
401
+      ware_id = #{wareId,jdbcType=INTEGER},
402
+      lspz = #{lspz,jdbcType=INTEGER},
403
+      y_lsxz = #{yLsxz,jdbcType=INTEGER},
404
+      x_lsxz = #{xLsxz,jdbcType=INTEGER},
405
+      lsdj = #{lsdj,jdbcType=INTEGER},
406
+      clsl = #{clsl,jdbcType=DECIMAL},
407
+      zjjg = #{zjjg,jdbcType=VARCHAR},
408
+      ys_status = #{ysStatus,jdbcType=VARCHAR},
409
+      business_create_time = #{businessCreateTime,jdbcType=TIMESTAMP},
410
+      create_time = #{createTime,jdbcType=TIMESTAMP},
411
+      create_person = #{createPerson,jdbcType=VARCHAR},
412
+      is_upload = #{isUpload,jdbcType=INTEGER},
413
+      upload_time = #{uploadTime,jdbcType=TIMESTAMP},
414
+      updatetime = #{updatetime,jdbcType=TIMESTAMP}
415
+    where id = #{id,jdbcType=INTEGER}
416
+  </update>
417
+  <!-- 查询验收过通过的数据 -->
418
+  <select id="selectYswData" parameterType="java.util.Map" resultType="java.util.Map">
419
+    SELECT 
420
+    e.qualitycheck_id ysId,
421
+	c.acceptance_number as ysdh,
422
+	b.house_id houseId,
423
+	b.house_name houseName,
424
+	b.warehouse_id wareId,
425
+	b.warehouse_name wareName,
426
+	b.grain_kind lspz,
427
+	b.grain_attribute yLsxz,
428
+	b.grain_grade lsdj,
429
+	a.total_quantity clsl,
430
+	CASE d.check_result WHEN 0 THEN '合格' WHEN 1 THEN '不合格' ELSE '' END zjjg,
431
+	'已验收' AS ysStatus 
432
+	FROM business_plan a 
433
+	LEFT JOIN business_store_ware_detail b ON b.zid=a.id 
434
+	LEFT JOIN business_plan_acceptance c ON c.plan_id=a.id 
435
+	LEFT JOIN business_plan_acceptance_detail e ON e.acceptance_id=c.id 
436
+	LEFT JOIN storage_qualitycheck d ON d.id=e.qualitycheck_id 
437
+	WHERE 1=1 AND a.customer_plan_state='100' AND a.execute_type='3156' AND a.org_id=#{orgId}
438
+  </select>
439
+
440
+</mapper>

+ 31 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoCheckMapper.java

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

+ 228 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoCheckMapper.xml

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

+ 35 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoLocationMapper.java

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

+ 336 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicInfoLocationMapper.xml

@@ -0,0 +1,336 @@
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.StorageFoodbasicInfoLocationMapper">
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation">
5
+    <id column="id" jdbcType="INTEGER" property="id" />
6
+    <result column="foodbasicinfo_id" jdbcType="INTEGER" property="foodbasicinfoId" />
7
+    <result column="house_id" jdbcType="INTEGER" property="houseId" />
8
+    <result column="new_house_id" jdbcType="INTEGER" property="newHouseId" />
9
+    <result column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
10
+    <result column="new_warehouse_id" jdbcType="INTEGER" property="newWarehouseId" />
11
+    <result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
12
+    <result column="new_warehouse_code" jdbcType="VARCHAR" property="newWarehouseCode" />
13
+    <result column="change_time" jdbcType="TIMESTAMP" property="changeTime" />
14
+    <result column="remarks" jdbcType="VARCHAR" property="remarks" />
15
+    <result column="org_id" jdbcType="INTEGER" property="orgId" />
16
+  </resultMap>
17
+  <sql id="Example_Where_Clause">
18
+    <where>
19
+      <foreach collection="oredCriteria" item="criteria" separator="or">
20
+        <if test="criteria.valid">
21
+          <trim prefix="(" prefixOverrides="and" suffix=")">
22
+            <foreach collection="criteria.criteria" item="criterion">
23
+              <choose>
24
+                <when test="criterion.noValue">
25
+                  and ${criterion.condition}
26
+                </when>
27
+                <when test="criterion.singleValue">
28
+                  and ${criterion.condition} #{criterion.value}
29
+                </when>
30
+                <when test="criterion.betweenValue">
31
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
32
+                </when>
33
+                <when test="criterion.listValue">
34
+                  and ${criterion.condition}
35
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
36
+                    #{listItem}
37
+                  </foreach>
38
+                </when>
39
+              </choose>
40
+            </foreach>
41
+          </trim>
42
+        </if>
43
+      </foreach>
44
+    </where>
45
+  </sql>
46
+  <sql id="Update_By_Example_Where_Clause">
47
+    <where>
48
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
49
+        <if test="criteria.valid">
50
+          <trim prefix="(" prefixOverrides="and" suffix=")">
51
+            <foreach collection="criteria.criteria" item="criterion">
52
+              <choose>
53
+                <when test="criterion.noValue">
54
+                  and ${criterion.condition}
55
+                </when>
56
+                <when test="criterion.singleValue">
57
+                  and ${criterion.condition} #{criterion.value}
58
+                </when>
59
+                <when test="criterion.betweenValue">
60
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
61
+                </when>
62
+                <when test="criterion.listValue">
63
+                  and ${criterion.condition}
64
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
65
+                    #{listItem}
66
+                  </foreach>
67
+                </when>
68
+              </choose>
69
+            </foreach>
70
+          </trim>
71
+        </if>
72
+      </foreach>
73
+    </where>
74
+  </sql>
75
+  <sql id="Base_Column_List">
76
+    id, foodbasicinfo_id, house_id, new_house_id, warehouse_id, new_warehouse_id, warehouse_code, 
77
+    new_warehouse_code, change_time, remarks, org_id
78
+  </sql>
79
+  <select id="selectByExample" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocationExample" resultMap="BaseResultMap">
80
+    select
81
+    <if test="distinct">
82
+      distinct
83
+    </if>
84
+    <include refid="Base_Column_List" />
85
+    from storage_foodbasicinfolocation
86
+    <if test="_parameter != null">
87
+      <include refid="Example_Where_Clause" />
88
+    </if>
89
+    <if test="orderByClause != null">
90
+      order by ${orderByClause}
91
+    </if>
92
+  </select>
93
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
94
+    select 
95
+    <include refid="Base_Column_List" />
96
+    from storage_foodbasicinfolocation
97
+    where id = #{id,jdbcType=INTEGER}
98
+  </select>
99
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
100
+    delete from storage_foodbasicinfolocation
101
+    where id = #{id,jdbcType=INTEGER}
102
+  </delete>
103
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocationExample">
104
+    delete from storage_foodbasicinfolocation
105
+    <if test="_parameter != null">
106
+      <include refid="Example_Where_Clause" />
107
+    </if>
108
+  </delete>
109
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation">
110
+    insert into storage_foodbasicinfolocation (id, foodbasicinfo_id, house_id, 
111
+      new_house_id, warehouse_id, new_warehouse_id, 
112
+      warehouse_code, new_warehouse_code, change_time, 
113
+      remarks, org_id)
114
+    values (#{id,jdbcType=INTEGER}, #{foodbasicinfoId,jdbcType=INTEGER}, #{houseId,jdbcType=INTEGER}, 
115
+      #{newHouseId,jdbcType=INTEGER}, #{warehouseId,jdbcType=INTEGER}, #{newWarehouseId,jdbcType=INTEGER}, 
116
+      #{warehouseCode,jdbcType=VARCHAR}, #{newWarehouseCode,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, 
117
+      #{remarks,jdbcType=VARCHAR}, #{orgId,jdbcType=INTEGER})
118
+  </insert>
119
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation">
120
+    insert into storage_foodbasicinfolocation
121
+    <trim prefix="(" suffix=")" suffixOverrides=",">
122
+      <if test="id != null">
123
+        id,
124
+      </if>
125
+      <if test="foodbasicinfoId != null">
126
+        foodbasicinfo_id,
127
+      </if>
128
+      <if test="houseId != null">
129
+        house_id,
130
+      </if>
131
+      <if test="newHouseId != null">
132
+        new_house_id,
133
+      </if>
134
+      <if test="warehouseId != null">
135
+        warehouse_id,
136
+      </if>
137
+      <if test="newWarehouseId != null">
138
+        new_warehouse_id,
139
+      </if>
140
+      <if test="warehouseCode != null">
141
+        warehouse_code,
142
+      </if>
143
+      <if test="newWarehouseCode != null">
144
+        new_warehouse_code,
145
+      </if>
146
+      <if test="changeTime != null">
147
+        change_time,
148
+      </if>
149
+      <if test="remarks != null">
150
+        remarks,
151
+      </if>
152
+      <if test="orgId != null">
153
+        org_id,
154
+      </if>
155
+    </trim>
156
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
157
+      <if test="id != null">
158
+        #{id,jdbcType=INTEGER},
159
+      </if>
160
+      <if test="foodbasicinfoId != null">
161
+        #{foodbasicinfoId,jdbcType=INTEGER},
162
+      </if>
163
+      <if test="houseId != null">
164
+        #{houseId,jdbcType=INTEGER},
165
+      </if>
166
+      <if test="newHouseId != null">
167
+        #{newHouseId,jdbcType=INTEGER},
168
+      </if>
169
+      <if test="warehouseId != null">
170
+        #{warehouseId,jdbcType=INTEGER},
171
+      </if>
172
+      <if test="newWarehouseId != null">
173
+        #{newWarehouseId,jdbcType=INTEGER},
174
+      </if>
175
+      <if test="warehouseCode != null">
176
+        #{warehouseCode,jdbcType=VARCHAR},
177
+      </if>
178
+      <if test="newWarehouseCode != null">
179
+        #{newWarehouseCode,jdbcType=VARCHAR},
180
+      </if>
181
+      <if test="changeTime != null">
182
+        #{changeTime,jdbcType=TIMESTAMP},
183
+      </if>
184
+      <if test="remarks != null">
185
+        #{remarks,jdbcType=VARCHAR},
186
+      </if>
187
+      <if test="orgId != null">
188
+        #{orgId,jdbcType=INTEGER},
189
+      </if>
190
+    </trim>
191
+  </insert>
192
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocationExample" resultType="java.lang.Integer">
193
+    select count(*) from storage_foodbasicinfolocation
194
+    <if test="_parameter != null">
195
+      <include refid="Example_Where_Clause" />
196
+    </if>
197
+  </select>
198
+  <update id="updateByExampleSelective" parameterType="map">
199
+    update storage_foodbasicinfolocation
200
+    <set>
201
+      <if test="record.id != null">
202
+        id = #{record.id,jdbcType=INTEGER},
203
+      </if>
204
+      <if test="record.foodbasicinfoId != null">
205
+        foodbasicinfo_id = #{record.foodbasicinfoId,jdbcType=INTEGER},
206
+      </if>
207
+      <if test="record.houseId != null">
208
+        house_id = #{record.houseId,jdbcType=INTEGER},
209
+      </if>
210
+      <if test="record.newHouseId != null">
211
+        new_house_id = #{record.newHouseId,jdbcType=INTEGER},
212
+      </if>
213
+      <if test="record.warehouseId != null">
214
+        warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
215
+      </if>
216
+      <if test="record.newWarehouseId != null">
217
+        new_warehouse_id = #{record.newWarehouseId,jdbcType=INTEGER},
218
+      </if>
219
+      <if test="record.warehouseCode != null">
220
+        warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
221
+      </if>
222
+      <if test="record.newWarehouseCode != null">
223
+        new_warehouse_code = #{record.newWarehouseCode,jdbcType=VARCHAR},
224
+      </if>
225
+      <if test="record.changeTime != null">
226
+        change_time = #{record.changeTime,jdbcType=TIMESTAMP},
227
+      </if>
228
+      <if test="record.remarks != null">
229
+        remarks = #{record.remarks,jdbcType=VARCHAR},
230
+      </if>
231
+      <if test="record.orgId != null">
232
+        org_id = #{record.orgId,jdbcType=INTEGER},
233
+      </if>
234
+    </set>
235
+    <if test="_parameter != null">
236
+      <include refid="Update_By_Example_Where_Clause" />
237
+    </if>
238
+  </update>
239
+  <update id="updateByExample" parameterType="map">
240
+    update storage_foodbasicinfolocation
241
+    set id = #{record.id,jdbcType=INTEGER},
242
+      foodbasicinfo_id = #{record.foodbasicinfoId,jdbcType=INTEGER},
243
+      house_id = #{record.houseId,jdbcType=INTEGER},
244
+      new_house_id = #{record.newHouseId,jdbcType=INTEGER},
245
+      warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
246
+      new_warehouse_id = #{record.newWarehouseId,jdbcType=INTEGER},
247
+      warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR},
248
+      new_warehouse_code = #{record.newWarehouseCode,jdbcType=VARCHAR},
249
+      change_time = #{record.changeTime,jdbcType=TIMESTAMP},
250
+      remarks = #{record.remarks,jdbcType=VARCHAR},
251
+      org_id = #{record.orgId,jdbcType=INTEGER}
252
+    <if test="_parameter != null">
253
+      <include refid="Update_By_Example_Where_Clause" />
254
+    </if>
255
+  </update>
256
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation">
257
+    update storage_foodbasicinfolocation
258
+    <set>
259
+      <if test="foodbasicinfoId != null">
260
+        foodbasicinfo_id = #{foodbasicinfoId,jdbcType=INTEGER},
261
+      </if>
262
+      <if test="houseId != null">
263
+        house_id = #{houseId,jdbcType=INTEGER},
264
+      </if>
265
+      <if test="newHouseId != null">
266
+        new_house_id = #{newHouseId,jdbcType=INTEGER},
267
+      </if>
268
+      <if test="warehouseId != null">
269
+        warehouse_id = #{warehouseId,jdbcType=INTEGER},
270
+      </if>
271
+      <if test="newWarehouseId != null">
272
+        new_warehouse_id = #{newWarehouseId,jdbcType=INTEGER},
273
+      </if>
274
+      <if test="warehouseCode != null">
275
+        warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
276
+      </if>
277
+      <if test="newWarehouseCode != null">
278
+        new_warehouse_code = #{newWarehouseCode,jdbcType=VARCHAR},
279
+      </if>
280
+      <if test="changeTime != null">
281
+        change_time = #{changeTime,jdbcType=TIMESTAMP},
282
+      </if>
283
+      <if test="remarks != null">
284
+        remarks = #{remarks,jdbcType=VARCHAR},
285
+      </if>
286
+      <if test="orgId != null">
287
+        org_id = #{orgId,jdbcType=INTEGER},
288
+      </if>
289
+    </set>
290
+    where id = #{id,jdbcType=INTEGER}
291
+  </update>
292
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation">
293
+    update storage_foodbasicinfolocation
294
+    set foodbasicinfo_id = #{foodbasicinfoId,jdbcType=INTEGER},
295
+      house_id = #{houseId,jdbcType=INTEGER},
296
+      new_house_id = #{newHouseId,jdbcType=INTEGER},
297
+      warehouse_id = #{warehouseId,jdbcType=INTEGER},
298
+      new_warehouse_id = #{newWarehouseId,jdbcType=INTEGER},
299
+      warehouse_code = #{warehouseCode,jdbcType=VARCHAR},
300
+      new_warehouse_code = #{newWarehouseCode,jdbcType=VARCHAR},
301
+      change_time = #{changeTime,jdbcType=TIMESTAMP},
302
+      remarks = #{remarks,jdbcType=VARCHAR},
303
+      org_id = #{orgId,jdbcType=INTEGER}
304
+    where id = #{id,jdbcType=INTEGER}
305
+  </update>
306
+
307
+  <sql id="Ext_Base_Column_List">
308
+    sfn.id, sfn.foodbasicinfo_id, sfn.house_id, sfn.new_house_id, sfn.warehouse_id, sfn.new_warehouse_id, sfn.warehouse_code,
309
+    sfn.new_warehouse_code, sfn.change_time, sfn.remarks, sfn.org_id
310
+  </sql>
311
+
312
+  <select id="queryByExample" parameterType="com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation" resultMap="BaseResultMap">
313
+    select
314
+    <include refid="Ext_Base_Column_List" />,
315
+      bw.warehouse_name warehouseName,
316
+    bww.warehouse_name newWarehouseName
317
+    FROM
318
+    storage_foodbasicinfolocation sfn
319
+    LEFT JOIN basic_warehouse bw ON sfn.warehouse_id = bw.warehouse_id
320
+    LEFT JOIN  basic_warehouse bww ON sfn.new_warehouse_id = bww.warehouse_id
321
+    <where>
322
+      <if test="houseId !=null">
323
+        and sfn.house_id = #{houseId}
324
+      </if>
325
+      <if test="warehouseId !=null">
326
+        and sfn.warehouse_id = #{warehouseId}
327
+      </if>
328
+      <if test="foodbasicinfoId !=null">
329
+        and sfn.foodbasicinfo_id = #{foodbasicinfoId}
330
+      </if>
331
+    </where>
332
+    group by sfn.id
333
+    order by sfn.change_time desc
334
+  </select>
335
+
336
+</mapper>

+ 35 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicinfoMapper.java

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1010 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicinfoMapper.xml


+ 32 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqApplyDefaultMapper.java

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

+ 331 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqApplyDefaultMapper.xml

@@ -0,0 +1,331 @@
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.StorageKcglJkqyqApplyDefaultMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
+    <result column="modifydate" property="modifydate" jdbcType="TIMESTAMP" />
8
+    <result column="ch" property="ch" jdbcType="INTEGER" />
9
+    <result column="hwh" property="hwh" jdbcType="INTEGER" />
10
+    <result column="pz" property="pz" jdbcType="CHAR" />
11
+    <result column="is_Upload" property="isUpload" jdbcType="INTEGER" />
12
+    <result column="jhbh" property="jhbh" jdbcType="VARCHAR" />
13
+    <result column="jkq_end" property="jkqEnd" jdbcType="TIMESTAMP" />
14
+    <result column="sqyq_time" property="sqyqTime" jdbcType="TIMESTAMP" />
15
+    <result column="yqsq_no" property="yqsqNo" jdbcType="VARCHAR" />
16
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
17
+  </resultMap>
18
+  <sql id="Example_Where_Clause" >
19
+    <where >
20
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
21
+        <if test="criteria.valid" >
22
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
23
+            <foreach collection="criteria.criteria" item="criterion" >
24
+              <choose >
25
+                <when test="criterion.noValue" >
26
+                  and ${criterion.condition}
27
+                </when>
28
+                <when test="criterion.singleValue" >
29
+                  and ${criterion.condition} #{criterion.value}
30
+                </when>
31
+                <when test="criterion.betweenValue" >
32
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
33
+                </when>
34
+                <when test="criterion.listValue" >
35
+                  and ${criterion.condition}
36
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
37
+                    #{listItem}
38
+                  </foreach>
39
+                </when>
40
+              </choose>
41
+            </foreach>
42
+          </trim>
43
+        </if>
44
+      </foreach>
45
+    </where>
46
+  </sql>
47
+  <sql id="Update_By_Example_Where_Clause" >
48
+    <where >
49
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
50
+        <if test="criteria.valid" >
51
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
52
+            <foreach collection="criteria.criteria" item="criterion" >
53
+              <choose >
54
+                <when test="criterion.noValue" >
55
+                  and ${criterion.condition}
56
+                </when>
57
+                <when test="criterion.singleValue" >
58
+                  and ${criterion.condition} #{criterion.value}
59
+                </when>
60
+                <when test="criterion.betweenValue" >
61
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
62
+                </when>
63
+                <when test="criterion.listValue" >
64
+                  and ${criterion.condition}
65
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
66
+                    #{listItem}
67
+                  </foreach>
68
+                </when>
69
+              </choose>
70
+            </foreach>
71
+          </trim>
72
+        </if>
73
+      </foreach>
74
+    </where>
75
+  </sql>
76
+  <sql id="Base_Column_List" >
77
+    id, org_id, modifydate, ch, hwh, pz, is_Upload, jhbh, jkq_end, sqyq_time, yqsq_no, 
78
+    updatetime
79
+  </sql>
80
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample" >
81
+    select
82
+    <if test="distinct" >
83
+      distinct
84
+    </if>
85
+    <include refid="Base_Column_List" />
86
+    from storage_kcgl_jkqyq_apply_default
87
+    <if test="_parameter != null" >
88
+      <include refid="Example_Where_Clause" />
89
+    </if>
90
+    <if test="orderByClause != null" >
91
+      order by ${orderByClause}
92
+    </if>
93
+  </select>
94
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
95
+    select 
96
+    <include refid="Base_Column_List" />
97
+    from storage_kcgl_jkqyq_apply_default
98
+    where id = #{id,jdbcType=INTEGER}
99
+  </select>
100
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
101
+    delete from storage_kcgl_jkqyq_apply_default
102
+    where id = #{id,jdbcType=INTEGER}
103
+  </delete>
104
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample" >
105
+    delete from storage_kcgl_jkqyq_apply_default
106
+    <if test="_parameter != null" >
107
+      <include refid="Example_Where_Clause" />
108
+    </if>
109
+  </delete>
110
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault" >
111
+    insert into storage_kcgl_jkqyq_apply_default (id, org_id, modifydate, 
112
+      ch, hwh, pz, is_Upload, 
113
+      jhbh, jkq_end, sqyq_time, 
114
+      yqsq_no, updatetime)
115
+    values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{modifydate,jdbcType=TIMESTAMP}, 
116
+      #{ch,jdbcType=INTEGER}, #{hwh,jdbcType=INTEGER}, #{pz,jdbcType=CHAR}, #{isUpload,jdbcType=INTEGER}, 
117
+      #{jhbh,jdbcType=VARCHAR}, #{jkqEnd,jdbcType=TIMESTAMP}, #{sqyqTime,jdbcType=TIMESTAMP}, 
118
+      #{yqsqNo,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP})
119
+  </insert>
120
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault" >
121
+    insert into storage_kcgl_jkqyq_apply_default
122
+    <trim prefix="(" suffix=")" suffixOverrides="," >
123
+      <if test="id != null" >
124
+        id,
125
+      </if>
126
+      <if test="orgId != null" >
127
+        org_id,
128
+      </if>
129
+      <if test="modifydate != null" >
130
+        modifydate,
131
+      </if>
132
+      <if test="ch != null" >
133
+        ch,
134
+      </if>
135
+      <if test="hwh != null" >
136
+        hwh,
137
+      </if>
138
+      <if test="pz != null" >
139
+        pz,
140
+      </if>
141
+      <if test="isUpload != null" >
142
+        is_Upload,
143
+      </if>
144
+      <if test="jhbh != null" >
145
+        jhbh,
146
+      </if>
147
+      <if test="jkqEnd != null" >
148
+        jkq_end,
149
+      </if>
150
+      <if test="sqyqTime != null" >
151
+        sqyq_time,
152
+      </if>
153
+      <if test="yqsqNo != null" >
154
+        yqsq_no,
155
+      </if>
156
+      <if test="updatetime != null" >
157
+        updatetime,
158
+      </if>
159
+    </trim>
160
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
161
+      <if test="id != null" >
162
+        #{id,jdbcType=INTEGER},
163
+      </if>
164
+      <if test="orgId != null" >
165
+        #{orgId,jdbcType=INTEGER},
166
+      </if>
167
+      <if test="modifydate != null" >
168
+        #{modifydate,jdbcType=TIMESTAMP},
169
+      </if>
170
+      <if test="ch != null" >
171
+        #{ch,jdbcType=INTEGER},
172
+      </if>
173
+      <if test="hwh != null" >
174
+        #{hwh,jdbcType=INTEGER},
175
+      </if>
176
+      <if test="pz != null" >
177
+        #{pz,jdbcType=CHAR},
178
+      </if>
179
+      <if test="isUpload != null" >
180
+        #{isUpload,jdbcType=INTEGER},
181
+      </if>
182
+      <if test="jhbh != null" >
183
+        #{jhbh,jdbcType=VARCHAR},
184
+      </if>
185
+      <if test="jkqEnd != null" >
186
+        #{jkqEnd,jdbcType=TIMESTAMP},
187
+      </if>
188
+      <if test="sqyqTime != null" >
189
+        #{sqyqTime,jdbcType=TIMESTAMP},
190
+      </if>
191
+      <if test="yqsqNo != null" >
192
+        #{yqsqNo,jdbcType=VARCHAR},
193
+      </if>
194
+      <if test="updatetime != null" >
195
+        #{updatetime,jdbcType=TIMESTAMP},
196
+      </if>
197
+    </trim>
198
+  </insert>
199
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample" resultType="java.lang.Integer" >
200
+    select count(*) from storage_kcgl_jkqyq_apply_default
201
+    <if test="_parameter != null" >
202
+      <include refid="Example_Where_Clause" />
203
+    </if>
204
+  </select>
205
+  <update id="updateByExampleSelective" parameterType="map" >
206
+    update storage_kcgl_jkqyq_apply_default
207
+    <set >
208
+      <if test="record.id != null" >
209
+        id = #{record.id,jdbcType=INTEGER},
210
+      </if>
211
+      <if test="record.orgId != null" >
212
+        org_id = #{record.orgId,jdbcType=INTEGER},
213
+      </if>
214
+      <if test="record.modifydate != null" >
215
+        modifydate = #{record.modifydate,jdbcType=TIMESTAMP},
216
+      </if>
217
+      <if test="record.ch != null" >
218
+        ch = #{record.ch,jdbcType=INTEGER},
219
+      </if>
220
+      <if test="record.hwh != null" >
221
+        hwh = #{record.hwh,jdbcType=INTEGER},
222
+      </if>
223
+      <if test="record.pz != null" >
224
+        pz = #{record.pz,jdbcType=CHAR},
225
+      </if>
226
+      <if test="record.isUpload != null" >
227
+        is_Upload = #{record.isUpload,jdbcType=INTEGER},
228
+      </if>
229
+      <if test="record.jhbh != null" >
230
+        jhbh = #{record.jhbh,jdbcType=VARCHAR},
231
+      </if>
232
+      <if test="record.jkqEnd != null" >
233
+        jkq_end = #{record.jkqEnd,jdbcType=TIMESTAMP},
234
+      </if>
235
+      <if test="record.sqyqTime != null" >
236
+        sqyq_time = #{record.sqyqTime,jdbcType=TIMESTAMP},
237
+      </if>
238
+      <if test="record.yqsqNo != null" >
239
+        yqsq_no = #{record.yqsqNo,jdbcType=VARCHAR},
240
+      </if>
241
+      <if test="record.updatetime != null" >
242
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
243
+      </if>
244
+    </set>
245
+    <if test="_parameter != null" >
246
+      <include refid="Update_By_Example_Where_Clause" />
247
+    </if>
248
+  </update>
249
+  <update id="updateByExample" parameterType="map" >
250
+    update storage_kcgl_jkqyq_apply_default
251
+    set id = #{record.id,jdbcType=INTEGER},
252
+      org_id = #{record.orgId,jdbcType=INTEGER},
253
+      modifydate = #{record.modifydate,jdbcType=TIMESTAMP},
254
+      ch = #{record.ch,jdbcType=INTEGER},
255
+      hwh = #{record.hwh,jdbcType=INTEGER},
256
+      pz = #{record.pz,jdbcType=CHAR},
257
+      is_Upload = #{record.isUpload,jdbcType=INTEGER},
258
+      jhbh = #{record.jhbh,jdbcType=VARCHAR},
259
+      jkq_end = #{record.jkqEnd,jdbcType=TIMESTAMP},
260
+      sqyq_time = #{record.sqyqTime,jdbcType=TIMESTAMP},
261
+      yqsq_no = #{record.yqsqNo,jdbcType=VARCHAR},
262
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
263
+    <if test="_parameter != null" >
264
+      <include refid="Update_By_Example_Where_Clause" />
265
+    </if>
266
+  </update>
267
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault" >
268
+    update storage_kcgl_jkqyq_apply_default
269
+    <set >
270
+      <if test="orgId != null" >
271
+        org_id = #{orgId,jdbcType=INTEGER},
272
+      </if>
273
+      <if test="modifydate != null" >
274
+        modifydate = #{modifydate,jdbcType=TIMESTAMP},
275
+      </if>
276
+      <if test="ch != null" >
277
+        ch = #{ch,jdbcType=INTEGER},
278
+      </if>
279
+      <if test="hwh != null" >
280
+        hwh = #{hwh,jdbcType=INTEGER},
281
+      </if>
282
+      <if test="pz != null" >
283
+        pz = #{pz,jdbcType=CHAR},
284
+      </if>
285
+      <if test="isUpload != null" >
286
+        is_Upload = #{isUpload,jdbcType=INTEGER},
287
+      </if>
288
+      <if test="jhbh != null" >
289
+        jhbh = #{jhbh,jdbcType=VARCHAR},
290
+      </if>
291
+      <if test="jkqEnd != null" >
292
+        jkq_end = #{jkqEnd,jdbcType=TIMESTAMP},
293
+      </if>
294
+      <if test="sqyqTime != null" >
295
+        sqyq_time = #{sqyqTime,jdbcType=TIMESTAMP},
296
+      </if>
297
+      <if test="yqsqNo != null" >
298
+        yqsq_no = #{yqsqNo,jdbcType=VARCHAR},
299
+      </if>
300
+      <if test="updatetime != null" >
301
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
302
+      </if>
303
+    </set>
304
+    where id = #{id,jdbcType=INTEGER}
305
+  </update>
306
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault" >
307
+    update storage_kcgl_jkqyq_apply_default
308
+    set org_id = #{orgId,jdbcType=INTEGER},
309
+      modifydate = #{modifydate,jdbcType=TIMESTAMP},
310
+      ch = #{ch,jdbcType=INTEGER},
311
+      hwh = #{hwh,jdbcType=INTEGER},
312
+      pz = #{pz,jdbcType=CHAR},
313
+      is_Upload = #{isUpload,jdbcType=INTEGER},
314
+      jhbh = #{jhbh,jdbcType=VARCHAR},
315
+      jkq_end = #{jkqEnd,jdbcType=TIMESTAMP},
316
+      sqyq_time = #{sqyqTime,jdbcType=TIMESTAMP},
317
+      yqsq_no = #{yqsqNo,jdbcType=VARCHAR},
318
+      updatetime = #{updatetime,jdbcType=TIMESTAMP}
319
+    where id = #{id,jdbcType=INTEGER}
320
+  </update>
321
+  <!-- 根据架空期延期单号修改子表数据 -->
322
+   <update id="updateByYqsqNo" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault" >
323
+    update storage_kcgl_jkqyq_apply_default
324
+    <set >
325
+      <if test="isUpload != null" >
326
+        is_Upload = #{isUpload,jdbcType=INTEGER},
327
+      </if>
328
+    </set>
329
+    where yqsq_no = #{yqsqNo,jdbcType=VARCHAR}
330
+  </update>
331
+</mapper>

+ 38 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqDefaultMapper.java

@@ -0,0 +1,38 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault;
4
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample;
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+import org.apache.ibatis.annotations.Param;
9
+
10
+public interface StorageKcglJkqyqDefaultMapper {
11
+    int countByExample(StorageKcglJkqyqDefaultExample example);
12
+
13
+    int deleteByExample(StorageKcglJkqyqDefaultExample example);
14
+
15
+    int deleteByPrimaryKey(Integer id);
16
+
17
+    int insert(StorageKcglJkqyqDefault record);
18
+
19
+    int insertSelective(StorageKcglJkqyqDefault record);
20
+
21
+    List<StorageKcglJkqyqDefault> selectByExample(StorageKcglJkqyqDefaultExample example);
22
+
23
+    StorageKcglJkqyqDefault selectByPrimaryKey(Integer id);
24
+
25
+    int updateByExampleSelective(@Param("record") StorageKcglJkqyqDefault record, @Param("example") StorageKcglJkqyqDefaultExample example);
26
+
27
+    int updateByExample(@Param("record") StorageKcglJkqyqDefault record, @Param("example") StorageKcglJkqyqDefaultExample example);
28
+
29
+    int updateByPrimaryKeySelective(StorageKcglJkqyqDefault record);
30
+
31
+    int updateByPrimaryKey(StorageKcglJkqyqDefault record);
32
+
33
+	int updateByYqsqNo(StorageKcglJkqyqDefault dataKcglJkqyqDefault);
34
+
35
+	List<Map<String, Object>> getjkqPlanList(Map<String, Object> map);
36
+
37
+	List<Map<String, Object>> getjkqDataDayList(Map<String, Object> countMap);
38
+}

+ 386 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageKcglJkqyqDefaultMapper.xml

@@ -0,0 +1,386 @@
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.StorageKcglJkqyqDefaultMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
8
+    <result column="yqsq_no" property="yqsqNo" jdbcType="VARCHAR" />
9
+    <result column="yqsqdwname" property="yqsqdwname" jdbcType="VARCHAR" />
10
+    <result column="cqyfzr" property="cqyfzr" jdbcType="VARCHAR" />
11
+    <result column="sqrq" property="sqrq" jdbcType="TIMESTAMP" />
12
+    <result column="is_Upload" property="isUpload" jdbcType="INTEGER" />
13
+    <result column="apply_ieda" property="applyIeda" jdbcType="VARCHAR" />
14
+    <result column="sqyq_reason" property="sqyqReason" jdbcType="VARCHAR" />
15
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
16
+  </resultMap>
17
+  <sql id="Example_Where_Clause" >
18
+    <where >
19
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
20
+        <if test="criteria.valid" >
21
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
22
+            <foreach collection="criteria.criteria" item="criterion" >
23
+              <choose >
24
+                <when test="criterion.noValue" >
25
+                  and ${criterion.condition}
26
+                </when>
27
+                <when test="criterion.singleValue" >
28
+                  and ${criterion.condition} #{criterion.value}
29
+                </when>
30
+                <when test="criterion.betweenValue" >
31
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
32
+                </when>
33
+                <when test="criterion.listValue" >
34
+                  and ${criterion.condition}
35
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
36
+                    #{listItem}
37
+                  </foreach>
38
+                </when>
39
+              </choose>
40
+            </foreach>
41
+          </trim>
42
+        </if>
43
+      </foreach>
44
+    </where>
45
+  </sql>
46
+  <sql id="Update_By_Example_Where_Clause" >
47
+    <where >
48
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
49
+        <if test="criteria.valid" >
50
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
51
+            <foreach collection="criteria.criteria" item="criterion" >
52
+              <choose >
53
+                <when test="criterion.noValue" >
54
+                  and ${criterion.condition}
55
+                </when>
56
+                <when test="criterion.singleValue" >
57
+                  and ${criterion.condition} #{criterion.value}
58
+                </when>
59
+                <when test="criterion.betweenValue" >
60
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
61
+                </when>
62
+                <when test="criterion.listValue" >
63
+                  and ${criterion.condition}
64
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
65
+                    #{listItem}
66
+                  </foreach>
67
+                </when>
68
+              </choose>
69
+            </foreach>
70
+          </trim>
71
+        </if>
72
+      </foreach>
73
+    </where>
74
+  </sql>
75
+  <sql id="Base_Column_List" >
76
+    id, org_id, create_date, yqsq_no, yqsqdwname, cqyfzr, sqrq, is_Upload, apply_ieda, 
77
+    sqyq_reason, updatetime
78
+  </sql>
79
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample" >
80
+    select
81
+    <if test="distinct" >
82
+      distinct
83
+    </if>
84
+    <include refid="Base_Column_List" />
85
+    from storage_kcgl_jkqyq_default
86
+    <if test="_parameter != null" >
87
+      <include refid="Example_Where_Clause" />
88
+    </if>
89
+    <if test="orderByClause != null" >
90
+      order by ${orderByClause}
91
+    </if>
92
+  </select>
93
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
94
+    select 
95
+    <include refid="Base_Column_List" />
96
+    from storage_kcgl_jkqyq_default
97
+    where id = #{id,jdbcType=INTEGER}
98
+  </select>
99
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
100
+    delete from storage_kcgl_jkqyq_default
101
+    where id = #{id,jdbcType=INTEGER}
102
+  </delete>
103
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample" >
104
+    delete from storage_kcgl_jkqyq_default
105
+    <if test="_parameter != null" >
106
+      <include refid="Example_Where_Clause" />
107
+    </if>
108
+  </delete>
109
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault" >
110
+    insert into storage_kcgl_jkqyq_default (id, org_id, create_date, 
111
+      yqsq_no, yqsqdwname, cqyfzr, 
112
+      sqrq, is_Upload, apply_ieda, 
113
+      sqyq_reason, updatetime)
114
+    values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{createDate,jdbcType=TIMESTAMP}, 
115
+      #{yqsqNo,jdbcType=VARCHAR}, #{yqsqdwname,jdbcType=VARCHAR}, #{cqyfzr,jdbcType=VARCHAR}, 
116
+      #{sqrq,jdbcType=TIMESTAMP}, #{isUpload,jdbcType=INTEGER}, #{applyIeda,jdbcType=VARCHAR}, 
117
+      #{sqyqReason,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP})
118
+  </insert>
119
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault" >
120
+    insert into storage_kcgl_jkqyq_default
121
+    <trim prefix="(" suffix=")" suffixOverrides="," >
122
+      <if test="id != null" >
123
+        id,
124
+      </if>
125
+      <if test="orgId != null" >
126
+        org_id,
127
+      </if>
128
+      <if test="createDate != null" >
129
+        create_date,
130
+      </if>
131
+      <if test="yqsqNo != null" >
132
+        yqsq_no,
133
+      </if>
134
+      <if test="yqsqdwname != null" >
135
+        yqsqdwname,
136
+      </if>
137
+      <if test="cqyfzr != null" >
138
+        cqyfzr,
139
+      </if>
140
+      <if test="sqrq != null" >
141
+        sqrq,
142
+      </if>
143
+      <if test="isUpload != null" >
144
+        is_Upload,
145
+      </if>
146
+      <if test="applyIeda != null" >
147
+        apply_ieda,
148
+      </if>
149
+      <if test="sqyqReason != null" >
150
+        sqyq_reason,
151
+      </if>
152
+      <if test="updatetime != null" >
153
+        updatetime,
154
+      </if>
155
+    </trim>
156
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
157
+      <if test="id != null" >
158
+        #{id,jdbcType=INTEGER},
159
+      </if>
160
+      <if test="orgId != null" >
161
+        #{orgId,jdbcType=INTEGER},
162
+      </if>
163
+      <if test="createDate != null" >
164
+        #{createDate,jdbcType=TIMESTAMP},
165
+      </if>
166
+      <if test="yqsqNo != null" >
167
+        #{yqsqNo,jdbcType=VARCHAR},
168
+      </if>
169
+      <if test="yqsqdwname != null" >
170
+        #{yqsqdwname,jdbcType=VARCHAR},
171
+      </if>
172
+      <if test="cqyfzr != null" >
173
+        #{cqyfzr,jdbcType=VARCHAR},
174
+      </if>
175
+      <if test="sqrq != null" >
176
+        #{sqrq,jdbcType=TIMESTAMP},
177
+      </if>
178
+      <if test="isUpload != null" >
179
+        #{isUpload,jdbcType=INTEGER},
180
+      </if>
181
+      <if test="applyIeda != null" >
182
+        #{applyIeda,jdbcType=VARCHAR},
183
+      </if>
184
+      <if test="sqyqReason != null" >
185
+        #{sqyqReason,jdbcType=VARCHAR},
186
+      </if>
187
+      <if test="updatetime != null" >
188
+        #{updatetime,jdbcType=TIMESTAMP},
189
+      </if>
190
+    </trim>
191
+  </insert>
192
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample" resultType="java.lang.Integer" >
193
+    select count(*) from storage_kcgl_jkqyq_default
194
+    <if test="_parameter != null" >
195
+      <include refid="Example_Where_Clause" />
196
+    </if>
197
+  </select>
198
+  <update id="updateByExampleSelective" parameterType="map" >
199
+    update storage_kcgl_jkqyq_default
200
+    <set >
201
+      <if test="record.id != null" >
202
+        id = #{record.id,jdbcType=INTEGER},
203
+      </if>
204
+      <if test="record.orgId != null" >
205
+        org_id = #{record.orgId,jdbcType=INTEGER},
206
+      </if>
207
+      <if test="record.createDate != null" >
208
+        create_date = #{record.createDate,jdbcType=TIMESTAMP},
209
+      </if>
210
+      <if test="record.yqsqNo != null" >
211
+        yqsq_no = #{record.yqsqNo,jdbcType=VARCHAR},
212
+      </if>
213
+      <if test="record.yqsqdwname != null" >
214
+        yqsqdwname = #{record.yqsqdwname,jdbcType=VARCHAR},
215
+      </if>
216
+      <if test="record.cqyfzr != null" >
217
+        cqyfzr = #{record.cqyfzr,jdbcType=VARCHAR},
218
+      </if>
219
+      <if test="record.sqrq != null" >
220
+        sqrq = #{record.sqrq,jdbcType=TIMESTAMP},
221
+      </if>
222
+      <if test="record.isUpload != null" >
223
+        is_Upload = #{record.isUpload,jdbcType=INTEGER},
224
+      </if>
225
+      <if test="record.applyIeda != null" >
226
+        apply_ieda = #{record.applyIeda,jdbcType=VARCHAR},
227
+      </if>
228
+      <if test="record.sqyqReason != null" >
229
+        sqyq_reason = #{record.sqyqReason,jdbcType=VARCHAR},
230
+      </if>
231
+      <if test="record.updatetime != null" >
232
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
233
+      </if>
234
+    </set>
235
+    <if test="_parameter != null" >
236
+      <include refid="Update_By_Example_Where_Clause" />
237
+    </if>
238
+  </update>
239
+  <update id="updateByExample" parameterType="map" >
240
+    update storage_kcgl_jkqyq_default
241
+    set id = #{record.id,jdbcType=INTEGER},
242
+      org_id = #{record.orgId,jdbcType=INTEGER},
243
+      create_date = #{record.createDate,jdbcType=TIMESTAMP},
244
+      yqsq_no = #{record.yqsqNo,jdbcType=VARCHAR},
245
+      yqsqdwname = #{record.yqsqdwname,jdbcType=VARCHAR},
246
+      cqyfzr = #{record.cqyfzr,jdbcType=VARCHAR},
247
+      sqrq = #{record.sqrq,jdbcType=TIMESTAMP},
248
+      is_Upload = #{record.isUpload,jdbcType=INTEGER},
249
+      apply_ieda = #{record.applyIeda,jdbcType=VARCHAR},
250
+      sqyq_reason = #{record.sqyqReason,jdbcType=VARCHAR},
251
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
252
+    <if test="_parameter != null" >
253
+      <include refid="Update_By_Example_Where_Clause" />
254
+    </if>
255
+  </update>
256
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault" >
257
+    update storage_kcgl_jkqyq_default
258
+    <set >
259
+      <if test="orgId != null" >
260
+        org_id = #{orgId,jdbcType=INTEGER},
261
+      </if>
262
+      <if test="createDate != null" >
263
+        create_date = #{createDate,jdbcType=TIMESTAMP},
264
+      </if>
265
+      <if test="yqsqNo != null" >
266
+        yqsq_no = #{yqsqNo,jdbcType=VARCHAR},
267
+      </if>
268
+      <if test="yqsqdwname != null" >
269
+        yqsqdwname = #{yqsqdwname,jdbcType=VARCHAR},
270
+      </if>
271
+      <if test="cqyfzr != null" >
272
+        cqyfzr = #{cqyfzr,jdbcType=VARCHAR},
273
+      </if>
274
+      <if test="sqrq != null" >
275
+        sqrq = #{sqrq,jdbcType=TIMESTAMP},
276
+      </if>
277
+      <if test="isUpload != null" >
278
+        is_Upload = #{isUpload,jdbcType=INTEGER},
279
+      </if>
280
+      <if test="applyIeda != null" >
281
+        apply_ieda = #{applyIeda,jdbcType=VARCHAR},
282
+      </if>
283
+      <if test="sqyqReason != null" >
284
+        sqyq_reason = #{sqyqReason,jdbcType=VARCHAR},
285
+      </if>
286
+      <if test="updatetime != null" >
287
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
288
+      </if>
289
+    </set>
290
+    where id = #{id,jdbcType=INTEGER}
291
+  </update>
292
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault" >
293
+    update storage_kcgl_jkqyq_default
294
+    set org_id = #{orgId,jdbcType=INTEGER},
295
+      create_date = #{createDate,jdbcType=TIMESTAMP},
296
+      yqsq_no = #{yqsqNo,jdbcType=VARCHAR},
297
+      yqsqdwname = #{yqsqdwname,jdbcType=VARCHAR},
298
+      cqyfzr = #{cqyfzr,jdbcType=VARCHAR},
299
+      sqrq = #{sqrq,jdbcType=TIMESTAMP},
300
+      is_Upload = #{isUpload,jdbcType=INTEGER},
301
+      apply_ieda = #{applyIeda,jdbcType=VARCHAR},
302
+      sqyq_reason = #{sqyqReason,jdbcType=VARCHAR},
303
+      updatetime = #{updatetime,jdbcType=TIMESTAMP}
304
+    where id = #{id,jdbcType=INTEGER}
305
+  </update>
306
+    <update id="updateByYqsqNo" parameterType="com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault" >
307
+    update storage_kcgl_jkqyq_default
308
+    <set >
309
+      <if test="isUpload != null" >
310
+        is_Upload = #{isUpload,jdbcType=INTEGER},
311
+      </if>
312
+    </set>
313
+    where yqsq_no = #{yqsqNo,jdbcType=VARCHAR}
314
+  </update>
315
+  <!-- 架空期查询 -->
316
+   <select id="getjkqPlanList" parameterType="java.util.Map" resultType="java.util.HashMap" >
317
+	SELECT
318
+	a.hwxz,
319
+	a.wjh,
320
+	a.ch,
321
+	a.hwh
322
+	FROM
323
+		lsreport_ts.data_kcgl_fcbgz_default a
324
+	LEFT JOIN lsreport_ts.data_kcgl_xckc_default b ON a.DataID = b.DataID
325
+	LEFT JOIN depot.business_delivery_storage_notice c ON b.tzdh = c.bill_number
326
+	LEFT JOIN depot.business_plan d ON  c.plan_number = d.plan_number
327
+	<where>
328
+	<if test="orgId != null">
329
+	AND d.org_id = #{orgId}
330
+	</if>
331
+	<if test="executeType != null">
332
+	AND d.execute_type = #{executeType}
333
+	</if>
334
+	<if test="billType != null">
335
+	AND c.bill_type = #{billType}
336
+	</if>
337
+	</where>
338
+  </select>
339
+  <select id="getjkqDataDayList" parameterType="java.util.Map" resultType="java.util.HashMap" >
340
+	SELECT
341
+		distinct
342
+		overhead.overhead_period,
343
+		overhead.warning_day,
344
+		fcbgz.cjsj AS modifydate,
345
+		fcbgz.ch,
346
+		fcbgz.hwh,
347
+		fcbgz.mxpz AS pz,
348
+		fcbgz.hwxz,
349
+		fcbgz.zcsl,
350
+		sum(fcbgz.srsl) AS srsl,
351
+		notice.bill_number,
352
+		notice.plan_number AS jhbh,
353
+		jkqyq.sqyq_time,
354
+		jkqyq.is_Upload,
355
+		DATE_FORMAT(DATE_ADD(fcbgz.cjsj,INTERVAL 1 DAY),'%Y-%m-%d') AS jkqEnd
356
+		FROM depot.storage_overhead_set overhead 
357
+		LEFT JOIN lsreport_ts.data_kcgl_fcbgz_default fcbgz ON overhead.lsxz = fcbgz.hwxz
358
+		LEFT JOIN lsreport_ts.data_kcgl_xckc_default xckc ON fcbgz.DataID = xckc.DataID
359
+		LEFT JOIN depot.business_delivery_storage_notice notice ON xckc.tzdh = notice.bill_number
360
+		LEFT JOIN depot.business_plan plan ON notice.plan_number = plan.plan_number
361
+		LEFT JOIN depot.storage_kcgl_jkqyq_apply_default jkqyq ON fcbgz.ch = jkqyq.ch
362
+		AND fcbgz.hwh = jkqyq.hwh
363
+	<where>
364
+	<if test="orgId != null">
365
+	AND plan.org_id = #{orgId}
366
+	</if>
367
+	<if test="hwxz != null">
368
+	AND overhead.lsxz = #{hwxz}
369
+	</if>
370
+	<if test="ch != null">
371
+	AND fcbgz.ch = #{ch}
372
+	</if>
373
+	<if test="hwh != null">
374
+	AND fcbgz.hwh = #{hwh}
375
+	</if>
376
+	<if test="wjh != null">
377
+	AND notice.plan_number = #{wjh}
378
+	</if>
379
+	<if test="executeType != null">
380
+	AND plan.execute_type = #{executeType}
381
+	</if>
382
+	</where>
383
+	ORDER BY
384
+	overhead.create_date desc
385
+  </select>
386
+</mapper>

+ 36 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageOverheadSetMapper.java

@@ -0,0 +1,36 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageOverheadSet;
4
+import com.chinaitop.depot.storage.model.StorageOverheadSetExample;
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+import org.apache.ibatis.annotations.Param;
9
+
10
+public interface StorageOverheadSetMapper {
11
+    int countByExample(StorageOverheadSetExample example);
12
+
13
+    int deleteByExample(StorageOverheadSetExample example);
14
+
15
+    int deleteByPrimaryKey(Integer id);
16
+
17
+    int insert(StorageOverheadSet record);
18
+
19
+    int insertSelective(StorageOverheadSet record);
20
+
21
+    List<StorageOverheadSet> selectByExample(StorageOverheadSetExample example);
22
+
23
+    StorageOverheadSet selectByPrimaryKey(Integer id);
24
+
25
+    int updateByExampleSelective(@Param("record") StorageOverheadSet record, @Param("example") StorageOverheadSetExample example);
26
+
27
+    int updateByExample(@Param("record") StorageOverheadSet record, @Param("example") StorageOverheadSetExample example);
28
+
29
+    int updateByPrimaryKeySelective(StorageOverheadSet record);
30
+
31
+    int updateByPrimaryKey(StorageOverheadSet record);
32
+    //查询架空期延期申请
33
+    List<Map<String, Object>> getOverYqDaysList(Map<String, Object> map);
34
+    //查询架空期延期时间
35
+	List<Map<String, Object>> getOverHeadTimeList(Map<String, Object> map);
36
+}

+ 327 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageOverheadSetMapper.xml

@@ -0,0 +1,327 @@
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.StorageOverheadSetMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageOverheadSet" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
+    <result column="lsxz" property="lsxz" jdbcType="INTEGER" />
8
+    <result column="overhead_period" property="overheadPeriod" jdbcType="INTEGER" />
9
+    <result column="warning_day" property="warningDay" jdbcType="INTEGER" />
10
+    <result column="createName" property="createname" jdbcType="VARCHAR" />
11
+    <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
12
+    <result column="is_upload" property="isUpload" jdbcType="INTEGER" />
13
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
14
+  </resultMap>
15
+  <sql id="Example_Where_Clause" >
16
+    <where >
17
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
18
+        <if test="criteria.valid" >
19
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
20
+            <foreach collection="criteria.criteria" item="criterion" >
21
+              <choose >
22
+                <when test="criterion.noValue" >
23
+                  and ${criterion.condition}
24
+                </when>
25
+                <when test="criterion.singleValue" >
26
+                  and ${criterion.condition} #{criterion.value}
27
+                </when>
28
+                <when test="criterion.betweenValue" >
29
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
30
+                </when>
31
+                <when test="criterion.listValue" >
32
+                  and ${criterion.condition}
33
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
34
+                    #{listItem}
35
+                  </foreach>
36
+                </when>
37
+              </choose>
38
+            </foreach>
39
+          </trim>
40
+        </if>
41
+      </foreach>
42
+    </where>
43
+  </sql>
44
+  <sql id="Update_By_Example_Where_Clause" >
45
+    <where >
46
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
47
+        <if test="criteria.valid" >
48
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
49
+            <foreach collection="criteria.criteria" item="criterion" >
50
+              <choose >
51
+                <when test="criterion.noValue" >
52
+                  and ${criterion.condition}
53
+                </when>
54
+                <when test="criterion.singleValue" >
55
+                  and ${criterion.condition} #{criterion.value}
56
+                </when>
57
+                <when test="criterion.betweenValue" >
58
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
59
+                </when>
60
+                <when test="criterion.listValue" >
61
+                  and ${criterion.condition}
62
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
63
+                    #{listItem}
64
+                  </foreach>
65
+                </when>
66
+              </choose>
67
+            </foreach>
68
+          </trim>
69
+        </if>
70
+      </foreach>
71
+    </where>
72
+  </sql>
73
+  <sql id="Base_Column_List" >
74
+    id, org_id, lsxz, overhead_period, warning_day, createName, create_date, is_upload, 
75
+    updatetime
76
+  </sql>
77
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSetExample" >
78
+    select
79
+    <if test="distinct" >
80
+      distinct
81
+    </if>
82
+    <include refid="Base_Column_List" />
83
+    from storage_overhead_set
84
+    <if test="_parameter != null" >
85
+      <include refid="Example_Where_Clause" />
86
+    </if>
87
+    <if test="orderByClause != null" >
88
+      order by ${orderByClause}
89
+    </if>
90
+  </select>
91
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
92
+    select 
93
+    <include refid="Base_Column_List" />
94
+    from storage_overhead_set
95
+    where id = #{id,jdbcType=INTEGER}
96
+  </select>
97
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
98
+    delete from storage_overhead_set
99
+    where id = #{id,jdbcType=INTEGER}
100
+  </delete>
101
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSetExample" >
102
+    delete from storage_overhead_set
103
+    <if test="_parameter != null" >
104
+      <include refid="Example_Where_Clause" />
105
+    </if>
106
+  </delete>
107
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSet" >
108
+    insert into storage_overhead_set (id, org_id, lsxz, 
109
+      overhead_period, warning_day, createName, 
110
+      create_date, is_upload, updatetime
111
+      )
112
+    values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{lsxz,jdbcType=INTEGER}, 
113
+      #{overheadPeriod,jdbcType=INTEGER}, #{warningDay,jdbcType=INTEGER}, #{createname,jdbcType=VARCHAR}, 
114
+      #{createDate,jdbcType=TIMESTAMP}, #{isUpload,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}
115
+      )
116
+  </insert>
117
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSet" >
118
+    insert into storage_overhead_set
119
+    <trim prefix="(" suffix=")" suffixOverrides="," >
120
+      <if test="id != null" >
121
+        id,
122
+      </if>
123
+      <if test="orgId != null" >
124
+        org_id,
125
+      </if>
126
+      <if test="lsxz != null" >
127
+        lsxz,
128
+      </if>
129
+      <if test="overheadPeriod != null" >
130
+        overhead_period,
131
+      </if>
132
+      <if test="warningDay != null" >
133
+        warning_day,
134
+      </if>
135
+      <if test="createname != null" >
136
+        createName,
137
+      </if>
138
+      <if test="createDate != null" >
139
+        create_date,
140
+      </if>
141
+      <if test="isUpload != null" >
142
+        is_upload,
143
+      </if>
144
+      <if test="updatetime != null" >
145
+        updatetime,
146
+      </if>
147
+    </trim>
148
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
149
+      <if test="id != null" >
150
+        #{id,jdbcType=INTEGER},
151
+      </if>
152
+      <if test="orgId != null" >
153
+        #{orgId,jdbcType=INTEGER},
154
+      </if>
155
+      <if test="lsxz != null" >
156
+        #{lsxz,jdbcType=INTEGER},
157
+      </if>
158
+      <if test="overheadPeriod != null" >
159
+        #{overheadPeriod,jdbcType=INTEGER},
160
+      </if>
161
+      <if test="warningDay != null" >
162
+        #{warningDay,jdbcType=INTEGER},
163
+      </if>
164
+      <if test="createname != null" >
165
+        #{createname,jdbcType=VARCHAR},
166
+      </if>
167
+      <if test="createDate != null" >
168
+        #{createDate,jdbcType=TIMESTAMP},
169
+      </if>
170
+      <if test="isUpload != null" >
171
+        #{isUpload,jdbcType=INTEGER},
172
+      </if>
173
+      <if test="updatetime != null" >
174
+        #{updatetime,jdbcType=TIMESTAMP},
175
+      </if>
176
+    </trim>
177
+  </insert>
178
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSetExample" resultType="java.lang.Integer" >
179
+    select count(*) from storage_overhead_set
180
+    <if test="_parameter != null" >
181
+      <include refid="Example_Where_Clause" />
182
+    </if>
183
+  </select>
184
+  <update id="updateByExampleSelective" parameterType="map" >
185
+    update storage_overhead_set
186
+    <set >
187
+      <if test="record.id != null" >
188
+        id = #{record.id,jdbcType=INTEGER},
189
+      </if>
190
+      <if test="record.orgId != null" >
191
+        org_id = #{record.orgId,jdbcType=INTEGER},
192
+      </if>
193
+      <if test="record.lsxz != null" >
194
+        lsxz = #{record.lsxz,jdbcType=INTEGER},
195
+      </if>
196
+      <if test="record.overheadPeriod != null" >
197
+        overhead_period = #{record.overheadPeriod,jdbcType=INTEGER},
198
+      </if>
199
+      <if test="record.warningDay != null" >
200
+        warning_day = #{record.warningDay,jdbcType=INTEGER},
201
+      </if>
202
+      <if test="record.createname != null" >
203
+        createName = #{record.createname,jdbcType=VARCHAR},
204
+      </if>
205
+      <if test="record.createDate != null" >
206
+        create_date = #{record.createDate,jdbcType=TIMESTAMP},
207
+      </if>
208
+      <if test="record.isUpload != null" >
209
+        is_upload = #{record.isUpload,jdbcType=INTEGER},
210
+      </if>
211
+      <if test="record.updatetime != null" >
212
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
213
+      </if>
214
+    </set>
215
+    <if test="_parameter != null" >
216
+      <include refid="Update_By_Example_Where_Clause" />
217
+    </if>
218
+  </update>
219
+  <update id="updateByExample" parameterType="map" >
220
+    update storage_overhead_set
221
+    set id = #{record.id,jdbcType=INTEGER},
222
+      org_id = #{record.orgId,jdbcType=INTEGER},
223
+      lsxz = #{record.lsxz,jdbcType=INTEGER},
224
+      overhead_period = #{record.overheadPeriod,jdbcType=INTEGER},
225
+      warning_day = #{record.warningDay,jdbcType=INTEGER},
226
+      createName = #{record.createname,jdbcType=VARCHAR},
227
+      create_date = #{record.createDate,jdbcType=TIMESTAMP},
228
+      is_upload = #{record.isUpload,jdbcType=INTEGER},
229
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
230
+    <if test="_parameter != null" >
231
+      <include refid="Update_By_Example_Where_Clause" />
232
+    </if>
233
+  </update>
234
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSet" >
235
+    update storage_overhead_set
236
+    <set >
237
+      <if test="orgId != null" >
238
+        org_id = #{orgId,jdbcType=INTEGER},
239
+      </if>
240
+      <if test="lsxz != null" >
241
+        lsxz = #{lsxz,jdbcType=INTEGER},
242
+      </if>
243
+      <if test="overheadPeriod != null" >
244
+        overhead_period = #{overheadPeriod,jdbcType=INTEGER},
245
+      </if>
246
+      <if test="warningDay != null" >
247
+        warning_day = #{warningDay,jdbcType=INTEGER},
248
+      </if>
249
+      <if test="createname != null" >
250
+        createName = #{createname,jdbcType=VARCHAR},
251
+      </if>
252
+      <if test="createDate != null" >
253
+        create_date = #{createDate,jdbcType=TIMESTAMP},
254
+      </if>
255
+      <if test="isUpload != null" >
256
+        is_upload = #{isUpload,jdbcType=INTEGER},
257
+      </if>
258
+      <if test="updatetime != null" >
259
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
260
+      </if>
261
+    </set>
262
+    where id = #{id,jdbcType=INTEGER}
263
+  </update>
264
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageOverheadSet" >
265
+    update storage_overhead_set
266
+    set org_id = #{orgId,jdbcType=INTEGER},
267
+      lsxz = #{lsxz,jdbcType=INTEGER},
268
+      overhead_period = #{overheadPeriod,jdbcType=INTEGER},
269
+      warning_day = #{warningDay,jdbcType=INTEGER},
270
+      createName = #{createname,jdbcType=VARCHAR},
271
+      create_date = #{createDate,jdbcType=TIMESTAMP},
272
+      is_upload = #{isUpload,jdbcType=INTEGER},
273
+      updatetime = #{updatetime,jdbcType=TIMESTAMP}
274
+    where id = #{id,jdbcType=INTEGER}
275
+  </update>
276
+  <!-- 查询延期申请 -->
277
+  <select id="getOverYqDaysList" parameterType="java.util.Map" resultType="java.util.HashMap" >
278
+	SELECT
279
+	distinct
280
+	overhead.overhead_period,
281
+	overhead.warning_day,
282
+	jkqyq.sqyq_time,
283
+	jkqyq.is_Upload
284
+	FROM depot.storage_overhead_set overhead 
285
+	LEFT JOIN lsreport_ts.data_kcgl_fcbgz_default fcbgz ON overhead.lsxz = fcbgz.hwxz
286
+	LEFT JOIN lsreport_ts.data_kcgl_xckc_default xckc ON fcbgz.DataID = xckc.DataID
287
+	LEFT JOIN depot.business_delivery_storage_notice notice ON xckc.tzdh = notice.bill_number
288
+	LEFT JOIN depot.business_plan plan ON notice.plan_number = plan.plan_number
289
+	LEFT JOIN depot.storage_kcgl_jkqyq_apply_default jkqyq ON fcbgz.ch = jkqyq.ch AND fcbgz.hwh = jkqyq.hwh
290
+	<where>
291
+	<if test="orgId != null">
292
+	AND plan.org_id = #{orgId}
293
+	</if>
294
+	<if test="ch != null">
295
+	AND fcbgz.ch = #{ch}
296
+	</if>
297
+	<if test="hwh != null">
298
+	AND fcbgz.hwh = #{hwh}
299
+	</if>
300
+	<if test="executeType != null">
301
+	AND plan.execute_type = #{executeType}
302
+	</if>
303
+	<if test="lsxz != null" >
304
+	AND overhead.lsxz = #{lsxz}
305
+	</if>
306
+	</where>
307
+	ORDER BY
308
+	jkqyq.updatetime DESC
309
+  </select>
310
+  <select id="getOverHeadTimeList" parameterType="java.util.Map" resultType="java.util.HashMap" >
311
+  SELECT
312
+  distinct
313
+  overhead_period,
314
+  warning_day
315
+  FROM storage_overhead_set
316
+  <where>
317
+	<if test="orgId != null">
318
+	AND org_id = #{orgId}
319
+	</if>
320
+	<if test="lsxz != null" >
321
+	AND lsxz = #{lsxz}
322
+	</if>
323
+	</where>
324
+	ORDER BY
325
+	create_date asc
326
+  </select>
327
+</mapper>

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

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

+ 291 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualityEventMapper.xml

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

+ 67 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.java

@@ -0,0 +1,67 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageQualitycheck;
4
+import com.chinaitop.depot.storage.model.StorageQualitycheckExample;
5
+import org.apache.ibatis.annotations.Param;
6
+import org.springframework.stereotype.Repository;
7
+
8
+import java.util.List;
9
+import java.util.Map;
10
+
11
+@Repository
12
+public interface StorageQualitycheckMapper {
13
+    int countByExample(StorageQualitycheckExample example);
14
+
15
+    int deleteByExample(StorageQualitycheckExample example);
16
+
17
+    int deleteByPrimaryKey(Integer id);
18
+
19
+    int insert(StorageQualitycheck record);
20
+
21
+    int insertSelective(StorageQualitycheck record);
22
+
23
+    List<StorageQualitycheck> selectByExample(StorageQualitycheckExample example);
24
+
25
+    StorageQualitycheck selectByPrimaryKey(Integer id);
26
+
27
+
28
+    int updateByExampleSelective(@Param("record") StorageQualitycheck record, @Param("example") StorageQualitycheckExample example);
29
+
30
+    int updateByExample(@Param("record") StorageQualitycheck record, @Param("example") StorageQualitycheckExample example);
31
+
32
+    int updateByPrimaryKeySelective(StorageQualitycheck record);
33
+
34
+    int updateByPrimaryKey(StorageQualitycheck record);
35
+
36
+    /**
37
+     * @param qualitycheck
38
+     * @return
39
+     */
40
+    List<StorageQualitycheck> getHouseIdList(StorageQualitycheck qualitycheck);
41
+
42
+    /**
43
+     * @param qualitycheck
44
+     * @return
45
+     */
46
+    List<StorageQualitycheck> getWareHouseIdList(
47
+            StorageQualitycheck qualitycheck);
48
+    List<StorageQualitycheck> getThirdCheckList(StorageQualitycheck qualitycheck);
49
+    List<StorageQualitycheck> getQualitycheckListByFoodbasicinfoCheck(StorageQualitycheck qualitycheck);
50
+    StorageQualitycheck queryPrimaryKey(Integer id);
51
+    List<StorageQualitycheck> queryByExample(StorageQualitycheck example);
52
+    List<Map<String,Object>> getStoreQualityList(Integer orgId);
53
+
54
+    
55
+    List<Map<String,Object>> getTrdStoreQualityList();
56
+	List<StorageQualitycheck> getDataByZJId(Map<String, Object> paramMap);
57
+
58
+    List<StorageQualitycheck> queryByExampleData(StorageQualitycheck example);
59
+
60
+    List<StorageQualitycheck> queryByQualitycheckusiness(StorageQualitycheck qualityCheckExample);
61
+
62
+    List<Map<String,Object>> getAllQualityMain(Map<String, Object> paramMap);
63
+
64
+    List<Map<String, Object>> getAllQualityInfo(Map<String, Object> paramMap);
65
+
66
+    List<Map<String, Object>> getAllFoodStocks(Map<String, Object> paramMap);
67
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1797 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml


+ 37 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckSonMapper.java

@@ -0,0 +1,37 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageQualitycheckSon;
4
+import com.chinaitop.depot.storage.model.StorageQualitycheckSonExample;
5
+import org.apache.ibatis.annotations.Param;
6
+import org.springframework.stereotype.Repository;
7
+
8
+import java.util.List;
9
+
10
+@Repository
11
+public interface StorageQualitycheckSonMapper {
12
+    int countByExample(StorageQualitycheckSonExample example);
13
+
14
+    int deleteByExample(StorageQualitycheckSonExample example);
15
+
16
+    int deleteByPrimaryKey(Integer id);
17
+
18
+    int insert(StorageQualitycheckSon record);
19
+
20
+    int insertSelective(StorageQualitycheckSon record);
21
+
22
+    List<StorageQualitycheckSon> selectByExample(StorageQualitycheckSonExample example);
23
+
24
+    StorageQualitycheckSon selectByPrimaryKey(Integer id);
25
+
26
+    int updateByExampleSelective(@Param("record") StorageQualitycheckSon record, @Param("example") StorageQualitycheckSonExample example);
27
+
28
+    int updateByExample(@Param("record") StorageQualitycheckSon record, @Param("example") StorageQualitycheckSonExample example);
29
+
30
+    int updateByPrimaryKeySelective(StorageQualitycheckSon record);
31
+
32
+    int updateByPrimaryKey(StorageQualitycheckSon record);
33
+
34
+    List<StorageQualitycheckSon> getQualitycheckSonByFoodbasicinfoCheck(Integer id);
35
+
36
+    List<StorageQualitycheckSon> selectByQualitycheckId(Integer id);
37
+}

+ 215 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckSonMapper.xml

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

+ 42 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageStorehouseBusinessMapper.java

@@ -0,0 +1,42 @@
1
+package com.chinaitop.depot.storage.mapper;
2
+
3
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
4
+import com.chinaitop.depot.storage.model.StorageStorehouseBusinessExample;
5
+import org.apache.ibatis.annotations.Param;
6
+
7
+import java.util.List;
8
+import java.util.Map;
9
+
10
+public interface StorageStorehouseBusinessMapper {
11
+    int countByExample(StorageStorehouseBusinessExample example);
12
+
13
+    int deleteByExample(StorageStorehouseBusinessExample example);
14
+
15
+    int deleteByPrimaryKey(Integer id);
16
+
17
+    int insert(StorageStorehouseBusiness record);
18
+
19
+    int insertSelective(StorageStorehouseBusiness record);
20
+
21
+    List<StorageStorehouseBusiness> selectByExample(StorageStorehouseBusinessExample example);
22
+
23
+    StorageStorehouseBusiness selectByPrimaryKey(Integer id);
24
+
25
+    int updateByExampleSelective(@Param("record") StorageStorehouseBusiness record, @Param("example") StorageStorehouseBusinessExample example);
26
+
27
+    int updateByExample(@Param("record") StorageStorehouseBusiness record, @Param("example") StorageStorehouseBusinessExample example);
28
+
29
+    int updateByPrimaryKeySelective(StorageStorehouseBusiness record);
30
+
31
+    int updateByPrimaryKey(StorageStorehouseBusiness record);
32
+
33
+
34
+    List<StorageStorehouseBusiness> selectStorehouseData();
35
+    List<StorageStorehouseBusiness> selectWarehouseData(Integer ch);
36
+
37
+    void truncateStorehouseBusiness();
38
+    void saveStorehouseBusinessFromFcbgz(Map<String, Object> map);
39
+
40
+    void updateTaskStatusForCf(Map<String, Object> map);
41
+
42
+}

+ 400 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageStorehouseBusinessMapper.xml

@@ -0,0 +1,400 @@
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.StorageStorehouseBusinessMapper">
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.storage.model.StorageStorehouseBusiness">
5
+    <id column="id" jdbcType="INTEGER" property="id" />
6
+    <result column="org_id" jdbcType="INTEGER" property="orgId" />
7
+    <result column="storehouse_id" jdbcType="INTEGER" property="storehouseId" />
8
+    <result column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
9
+    <result column="pz" jdbcType="VARCHAR" property="pz" />
10
+    <result column="full_storehouse_status" jdbcType="VARCHAR" property="fullStorehouseStatus" />
11
+    <result column="aeration_status" jdbcType="VARCHAR" property="aerationStatus" />
12
+    <result column="fumigation_status" jdbcType="VARCHAR" property="fumigationStatus" />
13
+    <result column="rk_status" jdbcType="VARCHAR" property="rkStatus" />
14
+    <result column="ck_status" jdbcType="VARCHAR" property="ckStatus" />
15
+    <result column="nhl_status" jdbcType="VARCHAR" property="nhlStatus" />
16
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
17
+  </resultMap>
18
+  <sql id="Example_Where_Clause">
19
+    <where>
20
+      <foreach collection="oredCriteria" item="criteria" separator="or">
21
+        <if test="criteria.valid">
22
+          <trim prefix="(" prefixOverrides="and" suffix=")">
23
+            <foreach collection="criteria.criteria" item="criterion">
24
+              <choose>
25
+                <when test="criterion.noValue">
26
+                  and ${criterion.condition}
27
+                </when>
28
+                <when test="criterion.singleValue">
29
+                  and ${criterion.condition} #{criterion.value}
30
+                </when>
31
+                <when test="criterion.betweenValue">
32
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
33
+                </when>
34
+                <when test="criterion.listValue">
35
+                  and ${criterion.condition}
36
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
37
+                    #{listItem}
38
+                  </foreach>
39
+                </when>
40
+              </choose>
41
+            </foreach>
42
+          </trim>
43
+        </if>
44
+      </foreach>
45
+    </where>
46
+  </sql>
47
+  <sql id="Update_By_Example_Where_Clause">
48
+    <where>
49
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
50
+        <if test="criteria.valid">
51
+          <trim prefix="(" prefixOverrides="and" suffix=")">
52
+            <foreach collection="criteria.criteria" item="criterion">
53
+              <choose>
54
+                <when test="criterion.noValue">
55
+                  and ${criterion.condition}
56
+                </when>
57
+                <when test="criterion.singleValue">
58
+                  and ${criterion.condition} #{criterion.value}
59
+                </when>
60
+                <when test="criterion.betweenValue">
61
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
62
+                </when>
63
+                <when test="criterion.listValue">
64
+                  and ${criterion.condition}
65
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
66
+                    #{listItem}
67
+                  </foreach>
68
+                </when>
69
+              </choose>
70
+            </foreach>
71
+          </trim>
72
+        </if>
73
+      </foreach>
74
+    </where>
75
+  </sql>
76
+  <sql id="Base_Column_List">
77
+    id, org_id, storehouse_id, warehouse_id, pz, full_storehouse_status, aeration_status, 
78
+    fumigation_status, rk_status, ck_status, nhl_status, remark
79
+  </sql>
80
+  <select id="selectByExample" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusinessExample" resultMap="BaseResultMap">
81
+    select
82
+    <if test="distinct">
83
+      distinct
84
+    </if>
85
+    <include refid="Base_Column_List" />
86
+    from storage_storehouse_business
87
+    <if test="_parameter != null">
88
+      <include refid="Example_Where_Clause" />
89
+    </if>
90
+    <if test="orderByClause != null">
91
+      order by ${orderByClause}
92
+    </if>
93
+  </select>
94
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
95
+    select 
96
+    <include refid="Base_Column_List" />
97
+    from storage_storehouse_business
98
+    where id = #{id,jdbcType=INTEGER}
99
+  </select>
100
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
101
+    delete from storage_storehouse_business
102
+    where id = #{id,jdbcType=INTEGER}
103
+  </delete>
104
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusinessExample">
105
+    delete from storage_storehouse_business
106
+    <if test="_parameter != null">
107
+      <include refid="Example_Where_Clause" />
108
+    </if>
109
+  </delete>
110
+  <insert id="insert" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusiness">
111
+    insert into storage_storehouse_business (id, org_id, storehouse_id, 
112
+      warehouse_id, pz, full_storehouse_status, 
113
+      aeration_status, fumigation_status, rk_status, 
114
+      ck_status, nhl_status, remark
115
+      )
116
+    values (#{id,jdbcType=INTEGER}, #{orgId,jdbcType=INTEGER}, #{storehouseId,jdbcType=INTEGER}, 
117
+      #{warehouseId,jdbcType=INTEGER}, #{pz,jdbcType=VARCHAR}, #{fullStorehouseStatus,jdbcType=VARCHAR}, 
118
+      #{aerationStatus,jdbcType=VARCHAR}, #{fumigationStatus,jdbcType=VARCHAR}, #{rkStatus,jdbcType=VARCHAR}, 
119
+      #{ckStatus,jdbcType=VARCHAR}, #{nhlStatus,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}
120
+      )
121
+  </insert>
122
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusiness">
123
+    insert into storage_storehouse_business
124
+    <trim prefix="(" suffix=")" suffixOverrides=",">
125
+      <if test="id != null">
126
+        id,
127
+      </if>
128
+      <if test="orgId != null">
129
+        org_id,
130
+      </if>
131
+      <if test="storehouseId != null">
132
+        storehouse_id,
133
+      </if>
134
+      <if test="warehouseId != null">
135
+        warehouse_id,
136
+      </if>
137
+      <if test="pz != null">
138
+        pz,
139
+      </if>
140
+      <if test="fullStorehouseStatus != null">
141
+        full_storehouse_status,
142
+      </if>
143
+      <if test="aerationStatus != null">
144
+        aeration_status,
145
+      </if>
146
+      <if test="fumigationStatus != null">
147
+        fumigation_status,
148
+      </if>
149
+      <if test="rkStatus != null">
150
+        rk_status,
151
+      </if>
152
+      <if test="ckStatus != null">
153
+        ck_status,
154
+      </if>
155
+      <if test="nhlStatus != null">
156
+        nhl_status,
157
+      </if>
158
+      <if test="remark != null">
159
+        remark,
160
+      </if>
161
+    </trim>
162
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
163
+      <if test="id != null">
164
+        #{id,jdbcType=INTEGER},
165
+      </if>
166
+      <if test="orgId != null">
167
+        #{orgId,jdbcType=INTEGER},
168
+      </if>
169
+      <if test="storehouseId != null">
170
+        #{storehouseId,jdbcType=INTEGER},
171
+      </if>
172
+      <if test="warehouseId != null">
173
+        #{warehouseId,jdbcType=INTEGER},
174
+      </if>
175
+      <if test="pz != null">
176
+        #{pz,jdbcType=VARCHAR},
177
+      </if>
178
+      <if test="fullStorehouseStatus != null">
179
+        #{fullStorehouseStatus,jdbcType=VARCHAR},
180
+      </if>
181
+      <if test="aerationStatus != null">
182
+        #{aerationStatus,jdbcType=VARCHAR},
183
+      </if>
184
+      <if test="fumigationStatus != null">
185
+        #{fumigationStatus,jdbcType=VARCHAR},
186
+      </if>
187
+      <if test="rkStatus != null">
188
+        #{rkStatus,jdbcType=VARCHAR},
189
+      </if>
190
+      <if test="ckStatus != null">
191
+        #{ckStatus,jdbcType=VARCHAR},
192
+      </if>
193
+      <if test="nhlStatus != null">
194
+        #{nhlStatus,jdbcType=VARCHAR},
195
+      </if>
196
+      <if test="remark != null">
197
+        #{remark,jdbcType=VARCHAR},
198
+      </if>
199
+    </trim>
200
+  </insert>
201
+  <select id="countByExample" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusinessExample" resultType="java.lang.Integer">
202
+    select count(*) from storage_storehouse_business
203
+    <if test="_parameter != null">
204
+      <include refid="Example_Where_Clause" />
205
+    </if>
206
+  </select>
207
+  <update id="updateByExampleSelective" parameterType="map">
208
+    update storage_storehouse_business
209
+    <set>
210
+      <if test="record.id != null">
211
+        id = #{record.id,jdbcType=INTEGER},
212
+      </if>
213
+      <if test="record.orgId != null">
214
+        org_id = #{record.orgId,jdbcType=INTEGER},
215
+      </if>
216
+      <if test="record.storehouseId != null">
217
+        storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
218
+      </if>
219
+      <if test="record.warehouseId != null">
220
+        warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
221
+      </if>
222
+      <if test="record.pz != null">
223
+        pz = #{record.pz,jdbcType=VARCHAR},
224
+      </if>
225
+      <if test="record.fullStorehouseStatus != null">
226
+        full_storehouse_status = #{record.fullStorehouseStatus,jdbcType=VARCHAR},
227
+      </if>
228
+      <if test="record.aerationStatus != null">
229
+        aeration_status = #{record.aerationStatus,jdbcType=VARCHAR},
230
+      </if>
231
+      <if test="record.fumigationStatus != null">
232
+        fumigation_status = #{record.fumigationStatus,jdbcType=VARCHAR},
233
+      </if>
234
+      <if test="record.rkStatus != null">
235
+        rk_status = #{record.rkStatus,jdbcType=VARCHAR},
236
+      </if>
237
+      <if test="record.ckStatus != null">
238
+        ck_status = #{record.ckStatus,jdbcType=VARCHAR},
239
+      </if>
240
+      <if test="record.nhlStatus != null">
241
+        nhl_status = #{record.nhlStatus,jdbcType=VARCHAR},
242
+      </if>
243
+      <if test="record.remark != null">
244
+        remark = #{record.remark,jdbcType=VARCHAR},
245
+      </if>
246
+    </set>
247
+    <if test="_parameter != null">
248
+      <include refid="Update_By_Example_Where_Clause" />
249
+    </if>
250
+  </update>
251
+  <update id="updateByExample" parameterType="map">
252
+    update storage_storehouse_business
253
+    set id = #{record.id,jdbcType=INTEGER},
254
+      org_id = #{record.orgId,jdbcType=INTEGER},
255
+      storehouse_id = #{record.storehouseId,jdbcType=INTEGER},
256
+      warehouse_id = #{record.warehouseId,jdbcType=INTEGER},
257
+      pz = #{record.pz,jdbcType=VARCHAR},
258
+      full_storehouse_status = #{record.fullStorehouseStatus,jdbcType=VARCHAR},
259
+      aeration_status = #{record.aerationStatus,jdbcType=VARCHAR},
260
+      fumigation_status = #{record.fumigationStatus,jdbcType=VARCHAR},
261
+      rk_status = #{record.rkStatus,jdbcType=VARCHAR},
262
+      ck_status = #{record.ckStatus,jdbcType=VARCHAR},
263
+      nhl_status = #{record.nhlStatus,jdbcType=VARCHAR},
264
+      remark = #{record.remark,jdbcType=VARCHAR}
265
+    <if test="_parameter != null">
266
+      <include refid="Update_By_Example_Where_Clause" />
267
+    </if>
268
+  </update>
269
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusiness">
270
+    update storage_storehouse_business
271
+    <set>
272
+      <if test="orgId != null">
273
+        org_id = #{orgId,jdbcType=INTEGER},
274
+      </if>
275
+      <if test="storehouseId != null">
276
+        storehouse_id = #{storehouseId,jdbcType=INTEGER},
277
+      </if>
278
+      <if test="warehouseId != null">
279
+        warehouse_id = #{warehouseId,jdbcType=INTEGER},
280
+      </if>
281
+      <if test="pz != null">
282
+        pz = #{pz,jdbcType=VARCHAR},
283
+      </if>
284
+      <if test="fullStorehouseStatus != null">
285
+        full_storehouse_status = #{fullStorehouseStatus,jdbcType=VARCHAR},
286
+      </if>
287
+      <if test="aerationStatus != null">
288
+        aeration_status = #{aerationStatus,jdbcType=VARCHAR},
289
+      </if>
290
+      <if test="fumigationStatus != null">
291
+        fumigation_status = #{fumigationStatus,jdbcType=VARCHAR},
292
+      </if>
293
+      <if test="rkStatus != null">
294
+        rk_status = #{rkStatus,jdbcType=VARCHAR},
295
+      </if>
296
+      <if test="ckStatus != null">
297
+        ck_status = #{ckStatus,jdbcType=VARCHAR},
298
+      </if>
299
+      <if test="nhlStatus != null">
300
+        nhl_status = #{nhlStatus,jdbcType=VARCHAR},
301
+      </if>
302
+      <if test="remark != null">
303
+        remark = #{remark,jdbcType=VARCHAR},
304
+      </if>
305
+    </set>
306
+    where id = #{id,jdbcType=INTEGER}
307
+  </update>
308
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageStorehouseBusiness">
309
+    update storage_storehouse_business
310
+    set org_id = #{orgId,jdbcType=INTEGER},
311
+      storehouse_id = #{storehouseId,jdbcType=INTEGER},
312
+      warehouse_id = #{warehouseId,jdbcType=INTEGER},
313
+      pz = #{pz,jdbcType=VARCHAR},
314
+      full_storehouse_status = #{fullStorehouseStatus,jdbcType=VARCHAR},
315
+      aeration_status = #{aerationStatus,jdbcType=VARCHAR},
316
+      fumigation_status = #{fumigationStatus,jdbcType=VARCHAR},
317
+      rk_status = #{rkStatus,jdbcType=VARCHAR},
318
+      ck_status = #{ckStatus,jdbcType=VARCHAR},
319
+      nhl_status = #{nhlStatus,jdbcType=VARCHAR},
320
+      remark = #{remark,jdbcType=VARCHAR}
321
+    where id = #{id,jdbcType=INTEGER}
322
+  </update>
323
+
324
+  <!--用于质量管理中下来出仓房名称-->
325
+  <resultMap id="storeBusinessMap" type="com.chinaitop.depot.storage.model.StorageStorehouseBusiness" >
326
+      <result column="storehouse_id" jdbcType="INTEGER" property="storehouseId" />
327
+      <result column="warehouse_id" jdbcType="INTEGER" property="warehouseId" />
328
+      <result column="storehouse_name" property="storehouseName" jdbcType="VARCHAR" />
329
+      <result column="warehouse_name" property="warehouseName" jdbcType="VARCHAR" />
330
+  </resultMap>
331
+
332
+  <select id="selectStorehouseData" resultMap="storeBusinessMap">
333
+      SELECT DISTINCT
334
+      business.storehouse_id,
335
+      store.storehouse_name
336
+      FROM
337
+      storage_storehouse_business business
338
+      INNER JOIN depot.basic_storehouse store ON business.storehouse_id = store.storehouse_id
339
+      WHERE
340
+      business.storehouse_id IS NOT NULL and business.full_storehouse_status='1'
341
+      ORDER BY store.storehouse_id
342
+  </select>
343
+
344
+  <select id="selectWarehouseData" resultMap="storeBusinessMap" parameterType="java.lang.Integer">
345
+        SELECT DISTINCT
346
+        business.warehouse_id,
347
+        ware.warehouse_name
348
+        FROM
349
+        storage_storehouse_business business
350
+        INNER JOIN depot.basic_warehouse ware ON business.warehouse_id = ware.warehouse_id
351
+        WHERE
352
+        business.storehouse_id=#{storehouse_id} and business.warehouse_id IS NOT NULL and business.full_storehouse_status='1'
353
+        ORDER BY
354
+        ware.warehouse_id DESC
355
+  </select>
356
+
357
+  <delete id="truncateStorehouseBusiness">
358
+       truncate table storage_storehouse_business
359
+  </delete>
360
+
361
+  <select id="saveStorehouseBusinessFromFcbgz" parameterType="java.util.Map">
362
+      INSERT INTO storage_storehouse_business(
363
+		  org_id,
364
+          storehouse_id,
365
+          warehouse_id,
366
+          pz,
367
+          full_storehouse_status,
368
+          aeration_status,
369
+          fumigation_status,
370
+          rk_status,
371
+          ck_status,
372
+          nhl_status,
373
+          remark
374
+          )
375
+          SELECT DISTINCT
376
+			  bs.org_id,
377
+              fcbgz.ch,
378
+              fcbgz.hwh,
379
+              fcbgz.pz,
380
+              1,
381
+              'OFF',
382
+              'OFF',
383
+              'OFF',
384
+              'OFF',
385
+              'OFF',
386
+              null
387
+          FROM lsreport_ts.data_kcgl_fcbgz_default fcbgz
388
+          INNER JOIN   basic_storehouse bs ON fcbgz.ch = bs.storehouse_id
389
+    <if test="byId == 1">
390
+      WHERE 1=1 AND NOT EXISTS(
391
+        SELECT 1 FROM storage_storehouse_business ssb WHERE ssb.storehouse_id = fcbgz.ch AND ssb.warehouse_id = fcbgz.hwh
392
+      )
393
+      AND bs.storehouse_id = #{cfId}
394
+    </if>
395
+  </select>
396
+
397
+  <select id="updateTaskStatusForCf" parameterType="java.util.Map">
398
+      ${SQL}
399
+  </select>
400
+</mapper>

+ 239 - 0
src/main/java/com/chinaitop/depot/storage/model/BusinessFile.java

@@ -0,0 +1,239 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+public class BusinessFile {
6
+    private Integer id;
7
+
8
+    private Integer bid;
9
+
10
+    private String type;
11
+
12
+    private String fileName;
13
+
14
+    private String originalFileName;
15
+
16
+    private String fileType;
17
+
18
+    private String source;
19
+
20
+    private String remarks;
21
+
22
+    private String filePath;
23
+
24
+    private Date createTime;
25
+
26
+    private Date updateTime;
27
+
28
+    private Integer creater;
29
+
30
+    private Integer orgId;
31
+
32
+    /**
33
+     * 主键id
34
+     * @return id 主键id
35
+     */
36
+    public Integer getId() {
37
+        return id;
38
+    }
39
+
40
+    /**
41
+     * 主键id
42
+     * @param id 主键id
43
+     */
44
+    public void setId(Integer id) {
45
+        this.id = id;
46
+    }
47
+
48
+    /**
49
+     * 数据id
50
+     * @return bid 数据id
51
+     */
52
+    public Integer getBid() {
53
+        return bid;
54
+    }
55
+
56
+    /**
57
+     * 数据id
58
+     * @param bid 数据id
59
+     */
60
+    public void setBid(Integer bid) {
61
+        this.bid = bid;
62
+    }
63
+
64
+    /**
65
+     * 业务类型
66
+     * @return type 业务类型
67
+     */
68
+    public String getType() {
69
+        return type;
70
+    }
71
+
72
+    /**
73
+     * 业务类型
74
+     * @param type 业务类型
75
+     */
76
+    public void setType(String type) {
77
+        this.type = type == null ? null : type.trim();
78
+    }
79
+
80
+    /**
81
+     * 文件名称
82
+     * @return file_name 文件名称
83
+     */
84
+    public String getFileName() {
85
+        return fileName;
86
+    }
87
+
88
+    /**
89
+     * 文件名称
90
+     * @param fileName 文件名称
91
+     */
92
+    public void setFileName(String fileName) {
93
+        this.fileName = fileName == null ? null : fileName.trim();
94
+    }
95
+
96
+    /**
97
+     * 文件原始名称
98
+     * @return original_file_name 文件原始名称
99
+     */
100
+    public String getOriginalFileName() {
101
+        return originalFileName;
102
+    }
103
+
104
+    /**
105
+     * 文件原始名称
106
+     * @param originalFileName 文件原始名称
107
+     */
108
+    public void setOriginalFileName(String originalFileName) {
109
+        this.originalFileName = originalFileName == null ? null : originalFileName.trim();
110
+    }
111
+
112
+    /**
113
+     * 文件类型
114
+     * @return file_type 文件类型
115
+     */
116
+    public String getFileType() {
117
+        return fileType;
118
+    }
119
+
120
+    /**
121
+     * 文件类型
122
+     * @param fileType 文件类型
123
+     */
124
+    public void setFileType(String fileType) {
125
+        this.fileType = fileType == null ? null : fileType.trim();
126
+    }
127
+
128
+    /**
129
+     * 来源
130
+     * @return source 来源
131
+     */
132
+    public String getSource() {
133
+        return source;
134
+    }
135
+
136
+    /**
137
+     * 来源
138
+     * @param source 来源
139
+     */
140
+    public void setSource(String source) {
141
+        this.source = source == null ? null : source.trim();
142
+    }
143
+
144
+    /**
145
+     * 备注
146
+     * @return remarks 备注
147
+     */
148
+    public String getRemarks() {
149
+        return remarks;
150
+    }
151
+
152
+    /**
153
+     * 备注
154
+     * @param remarks 备注
155
+     */
156
+    public void setRemarks(String remarks) {
157
+        this.remarks = remarks == null ? null : remarks.trim();
158
+    }
159
+
160
+    /**
161
+     * 文件上传路径
162
+     * @return file_path 文件上传路径
163
+     */
164
+    public String getFilePath() {
165
+        return filePath;
166
+    }
167
+
168
+    /**
169
+     * 文件上传路径
170
+     * @param filePath 文件上传路径
171
+     */
172
+    public void setFilePath(String filePath) {
173
+        this.filePath = filePath == null ? null : filePath.trim();
174
+    }
175
+
176
+    /**
177
+     * 
178
+     * @return create_time 
179
+     */
180
+    public Date getCreateTime() {
181
+        return createTime;
182
+    }
183
+
184
+    /**
185
+     * 
186
+     * @param createTime 
187
+     */
188
+    public void setCreateTime(Date createTime) {
189
+        this.createTime = createTime;
190
+    }
191
+
192
+    /**
193
+     * 
194
+     * @return update_time 
195
+     */
196
+    public Date getUpdateTime() {
197
+        return updateTime;
198
+    }
199
+
200
+    /**
201
+     * 
202
+     * @param updateTime 
203
+     */
204
+    public void setUpdateTime(Date updateTime) {
205
+        this.updateTime = updateTime;
206
+    }
207
+
208
+    /**
209
+     * 
210
+     * @return creater 
211
+     */
212
+    public Integer getCreater() {
213
+        return creater;
214
+    }
215
+
216
+    /**
217
+     * 
218
+     * @param creater 
219
+     */
220
+    public void setCreater(Integer creater) {
221
+        this.creater = creater;
222
+    }
223
+
224
+    /**
225
+     * 
226
+     * @return org_id 
227
+     */
228
+    public Integer getOrgId() {
229
+        return orgId;
230
+    }
231
+
232
+    /**
233
+     * 
234
+     * @param orgId 
235
+     */
236
+    public void setOrgId(Integer orgId) {
237
+        this.orgId = orgId;
238
+    }
239
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1069 - 0
src/main/java/com/chinaitop/depot/storage/model/BusinessFileExample.java


+ 404 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTask.java

@@ -0,0 +1,404 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+
8
+public class StorageChangeStoragehouseTask {
9
+    private Integer id;
10
+
11
+    private Integer orgId;
12
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
13
+    private Date createDate;
14
+
15
+    private String workNo;
16
+
17
+    private String businessNo;
18
+
19
+    private BigDecimal planPourOutSum;
20
+
21
+    private BigDecimal planPourInSum;
22
+
23
+    private Integer applyUnitId;
24
+
25
+    private String applyUnitName;
26
+
27
+    private String storageUnnitPerson;
28
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
29
+    private Date applyTime;
30
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
31
+    private Date planStartDate;
32
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
33
+    private Date planEndDate;
34
+
35
+    private String workTeam;
36
+
37
+    private String workGroup;
38
+
39
+    private String changeReason;
40
+
41
+    private String planType;
42
+
43
+    private Integer applyStatus;
44
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
45
+    private Date applyDate;
46
+
47
+    private String applyIeda;
48
+
49
+    private Integer isUpload;
50
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
51
+    private Date updatetime;
52
+
53
+    /**
54
+     * 主键
55
+     * @return id 主键
56
+     */
57
+    public Integer getId() {
58
+        return id;
59
+    }
60
+
61
+    /**
62
+     * 主键
63
+     * @param id 主键
64
+     */
65
+    public void setId(Integer id) {
66
+        this.id = id;
67
+    }
68
+
69
+    /**
70
+     * 单位ID
71
+     * @return org_id 单位ID
72
+     */
73
+    public Integer getOrgId() {
74
+        return orgId;
75
+    }
76
+
77
+    /**
78
+     * 单位ID
79
+     * @param orgId 单位ID
80
+     */
81
+    public void setOrgId(Integer orgId) {
82
+        this.orgId = orgId;
83
+    }
84
+
85
+    /**
86
+     * 创建时间
87
+     * @return create_date 创建时间
88
+     */
89
+    public Date getCreateDate() {
90
+        return createDate;
91
+    }
92
+
93
+    /**
94
+     * 创建时间
95
+     * @param createDate 创建时间
96
+     */
97
+    public void setCreateDate(Date createDate) {
98
+        this.createDate = createDate;
99
+    }
100
+
101
+    /**
102
+     * 作业单号
103
+     * @return work_no 作业单号
104
+     */
105
+    public String getWorkNo() {
106
+        return workNo;
107
+    }
108
+
109
+    /**
110
+     * 作业单号
111
+     * @param workNo 作业单号
112
+     */
113
+    public void setWorkNo(String workNo) {
114
+        this.workNo = workNo == null ? null : workNo.trim();
115
+    }
116
+
117
+    /**
118
+     * 倒仓业务单号
119
+     * @return business_no 倒仓业务单号
120
+     */
121
+    public String getBusinessNo() {
122
+        return businessNo;
123
+    }
124
+
125
+    /**
126
+     * 倒仓业务单号
127
+     * @param businessNo 倒仓业务单号
128
+     */
129
+    public void setBusinessNo(String businessNo) {
130
+        this.businessNo = businessNo == null ? null : businessNo.trim();
131
+    }
132
+
133
+    /**
134
+     * 计划倒出总数量
135
+     * @return plan_pour_out_sum 计划倒出总数量
136
+     */
137
+    public BigDecimal getPlanPourOutSum() {
138
+        return planPourOutSum;
139
+    }
140
+
141
+    /**
142
+     * 计划倒出总数量
143
+     * @param planPourOutSum 计划倒出总数量
144
+     */
145
+    public void setPlanPourOutSum(BigDecimal planPourOutSum) {
146
+        this.planPourOutSum = planPourOutSum;
147
+    }
148
+
149
+    /**
150
+     * 计划倒入总数量
151
+     * @return plan_pour_in_sum 计划倒入总数量
152
+     */
153
+    public BigDecimal getPlanPourInSum() {
154
+        return planPourInSum;
155
+    }
156
+
157
+    /**
158
+     * 计划倒入总数量
159
+     * @param planPourInSum 计划倒入总数量
160
+     */
161
+    public void setPlanPourInSum(BigDecimal planPourInSum) {
162
+        this.planPourInSum = planPourInSum;
163
+    }
164
+
165
+    /**
166
+     * 申请单位ID
167
+     * @return apply_unit_id 申请单位ID
168
+     */
169
+    public Integer getApplyUnitId() {
170
+        return applyUnitId;
171
+    }
172
+
173
+    /**
174
+     * 申请单位ID
175
+     * @param applyUnitId 申请单位ID
176
+     */
177
+    public void setApplyUnitId(Integer applyUnitId) {
178
+        this.applyUnitId = applyUnitId;
179
+    }
180
+
181
+    /**
182
+     * 申请单位名称
183
+     * @return apply_unit_name 申请单位名称
184
+     */
185
+    public String getApplyUnitName() {
186
+        return applyUnitName;
187
+    }
188
+
189
+    /**
190
+     * 申请单位名称
191
+     * @param applyUnitName 申请单位名称
192
+     */
193
+    public void setApplyUnitName(String applyUnitName) {
194
+        this.applyUnitName = applyUnitName == null ? null : applyUnitName.trim();
195
+    }
196
+
197
+    /**
198
+     * 承储企业负责人
199
+     * @return storage_unnit_person 承储企业负责人
200
+     */
201
+    public String getStorageUnnitPerson() {
202
+        return storageUnnitPerson;
203
+    }
204
+
205
+    /**
206
+     * 承储企业负责人
207
+     * @param storageUnnitPerson 承储企业负责人
208
+     */
209
+    public void setStorageUnnitPerson(String storageUnnitPerson) {
210
+        this.storageUnnitPerson = storageUnnitPerson == null ? null : storageUnnitPerson.trim();
211
+    }
212
+
213
+    /**
214
+     * 申请日期
215
+     * @return apply_time 申请日期
216
+     */
217
+    public Date getApplyTime() {
218
+        return applyTime;
219
+    }
220
+
221
+    /**
222
+     * 申请日期
223
+     * @param applyTime 申请日期
224
+     */
225
+    public void setApplyTime(Date applyTime) {
226
+        this.applyTime = applyTime;
227
+    }
228
+
229
+    /**
230
+     * 计划开始日期
231
+     * @return plan_start_date 计划开始日期
232
+     */
233
+    public Date getPlanStartDate() {
234
+        return planStartDate;
235
+    }
236
+
237
+    /**
238
+     * 计划开始日期
239
+     * @param planStartDate 计划开始日期
240
+     */
241
+    public void setPlanStartDate(Date planStartDate) {
242
+        this.planStartDate = planStartDate;
243
+    }
244
+
245
+    /**
246
+     * 计划结束日期
247
+     * @return plan_end_date 计划结束日期
248
+     */
249
+    public Date getPlanEndDate() {
250
+        return planEndDate;
251
+    }
252
+
253
+    /**
254
+     * 计划结束日期
255
+     * @param planEndDate 计划结束日期
256
+     */
257
+    public void setPlanEndDate(Date planEndDate) {
258
+        this.planEndDate = planEndDate;
259
+    }
260
+
261
+    /**
262
+     * 作业队
263
+     * @return work_team 作业队
264
+     */
265
+    public String getWorkTeam() {
266
+        return workTeam;
267
+    }
268
+
269
+    /**
270
+     * 作业队
271
+     * @param workTeam 作业队
272
+     */
273
+    public void setWorkTeam(String workTeam) {
274
+        this.workTeam = workTeam == null ? null : workTeam.trim();
275
+    }
276
+
277
+    /**
278
+     * 作业组
279
+     * @return work_group 作业组
280
+     */
281
+    public String getWorkGroup() {
282
+        return workGroup;
283
+    }
284
+
285
+    /**
286
+     * 作业组
287
+     * @param workGroup 作业组
288
+     */
289
+    public void setWorkGroup(String workGroup) {
290
+        this.workGroup = workGroup == null ? null : workGroup.trim();
291
+    }
292
+
293
+    /**
294
+     * 倒仓原因
295
+     * @return change_reason 倒仓原因
296
+     */
297
+    public String getChangeReason() {
298
+        return changeReason;
299
+    }
300
+
301
+    /**
302
+     * 倒仓原因
303
+     * @param changeReason 倒仓原因
304
+     */
305
+    public void setChangeReason(String changeReason) {
306
+        this.changeReason = changeReason == null ? null : changeReason.trim();
307
+    }
308
+
309
+    /**
310
+     * 计划类型
311
+     * @return plan_type 计划类型
312
+     */
313
+    public String getPlanType() {
314
+        return planType;
315
+    }
316
+
317
+    /**
318
+     * 计划类型
319
+     * @param planType 计划类型
320
+     */
321
+    public void setPlanType(String planType) {
322
+        this.planType = planType == null ? null : planType.trim();
323
+    }
324
+
325
+    /**
326
+     * 审核状态
327
+     * @return apply_status 审核状态
328
+     */
329
+    public Integer getApplyStatus() {
330
+        return applyStatus;
331
+    }
332
+
333
+    /**
334
+     * 审核状态
335
+     * @param applyStatus 审核状态
336
+     */
337
+    public void setApplyStatus(Integer applyStatus) {
338
+        this.applyStatus = applyStatus;
339
+    }
340
+
341
+    /**
342
+     * 审核时间
343
+     * @return apply_date 审核时间
344
+     */
345
+    public Date getApplyDate() {
346
+        return applyDate;
347
+    }
348
+
349
+    /**
350
+     * 审核时间
351
+     * @param applyDate 审核时间
352
+     */
353
+    public void setApplyDate(Date applyDate) {
354
+        this.applyDate = applyDate;
355
+    }
356
+
357
+    /**
358
+     * 审批意见
359
+     * @return apply_ieda 审批意见
360
+     */
361
+    public String getApplyIeda() {
362
+        return applyIeda;
363
+    }
364
+
365
+    /**
366
+     * 审批意见
367
+     * @param applyIeda 审批意见
368
+     */
369
+    public void setApplyIeda(String applyIeda) {
370
+        this.applyIeda = applyIeda == null ? null : applyIeda.trim();
371
+    }
372
+
373
+    /**
374
+     * 是否上传(0待上传,1审批中,2审批结束,3审批驳回)
375
+     * @return is_upload 是否上传(0待上传,1审批中,2审批结束,3审批驳回)
376
+     */
377
+    public Integer getIsUpload() {
378
+        return isUpload;
379
+    }
380
+
381
+    /**
382
+     * 是否上传(0待上传,1审批中,2审批结束,3审批驳回)
383
+     * @param isUpload 是否上传(0待上传,1审批中,2审批结束,3审批驳回)
384
+     */
385
+    public void setIsUpload(Integer isUpload) {
386
+        this.isUpload = isUpload;
387
+    }
388
+
389
+    /**
390
+     * 
391
+     * @return updatetime 
392
+     */
393
+    public Date getUpdatetime() {
394
+        return updatetime;
395
+    }
396
+
397
+    /**
398
+     * 
399
+     * @param updatetime 
400
+     */
401
+    public void setUpdatetime(Date updatetime) {
402
+        this.updatetime = updatetime;
403
+    }
404
+}

+ 314 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTaskDetail.java

@@ -0,0 +1,314 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+
8
+public class StorageChangeStoragehouseTaskDetail {
9
+    private Integer id;
10
+
11
+    private Integer org_id;
12
+
13
+    private String businessNo;
14
+
15
+    private Integer houseId;
16
+
17
+    private Integer wareId;
18
+
19
+    private Integer storehouseId;
20
+
21
+    private Integer warehouseId;
22
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
23
+    private Date rksj;
24
+
25
+    private Integer lspz;
26
+
27
+    private String lsxz;
28
+
29
+    private Integer keepingWay;
30
+
31
+    private Integer ccfs;
32
+
33
+    private Integer applyStatus;
34
+
35
+    private BigDecimal pourInNum;
36
+
37
+    private BigDecimal pourOutNum;
38
+
39
+    private BigDecimal qichuNum;
40
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
41
+    private Date updateTime;
42
+
43
+    /**
44
+     * ID
45
+     * @return id ID
46
+     */
47
+    public Integer getId() {
48
+        return id;
49
+    }
50
+
51
+    /**
52
+     * ID
53
+     * @param id ID
54
+     */
55
+    public void setId(Integer id) {
56
+        this.id = id;
57
+    }
58
+
59
+    /**
60
+     * 单位ID
61
+     * @return org_id 单位ID
62
+     */
63
+    public Integer getOrg_id() {
64
+        return org_id;
65
+    }
66
+
67
+    /**
68
+     * 单位ID
69
+     * @param org_id 单位ID
70
+     */
71
+    public void setOrg_id(Integer org_id) {
72
+        this.org_id = org_id;
73
+    }
74
+
75
+    /**
76
+     * 倒仓业务单号
77
+     * @return businessNo 倒仓业务单号
78
+     */
79
+    public String getBusinessNo() {
80
+        return businessNo;
81
+    }
82
+
83
+    /**
84
+     * 倒仓业务单号
85
+     * @param businessNo 倒仓业务单号
86
+     */
87
+    public void setBusinessNo(String businessNo) {
88
+        this.businessNo = businessNo == null ? null : businessNo.trim();
89
+    }
90
+
91
+    /**
92
+     * 导出货位ID
93
+     * @return houseId 导出货位ID
94
+     */
95
+    public Integer getHouseId() {
96
+        return houseId;
97
+    }
98
+
99
+    /**
100
+     * 导出货位ID
101
+     * @param houseId 导出货位ID
102
+     */
103
+    public void setHouseId(Integer houseId) {
104
+        this.houseId = houseId;
105
+    }
106
+
107
+    /**
108
+     * 导出仓房ID
109
+     * @return wareId 导出仓房ID
110
+     */
111
+    public Integer getWareId() {
112
+        return wareId;
113
+    }
114
+
115
+    /**
116
+     * 导出仓房ID
117
+     * @param wareId 导出仓房ID
118
+     */
119
+    public void setWareId(Integer wareId) {
120
+        this.wareId = wareId;
121
+    }
122
+
123
+    /**
124
+     * 导入货位ID
125
+     * @return storehouseId 导入货位ID
126
+     */
127
+    public Integer getStorehouseId() {
128
+        return storehouseId;
129
+    }
130
+
131
+    /**
132
+     * 导入货位ID
133
+     * @param storehouseId 导入货位ID
134
+     */
135
+    public void setStorehouseId(Integer storehouseId) {
136
+        this.storehouseId = storehouseId;
137
+    }
138
+
139
+    /**
140
+     * 导入仓房ID
141
+     * @return warehouseId 导入仓房ID
142
+     */
143
+    public Integer getWarehouseId() {
144
+        return warehouseId;
145
+    }
146
+
147
+    /**
148
+     * 导入仓房ID
149
+     * @param warehouseId 导入仓房ID
150
+     */
151
+    public void setWarehouseId(Integer warehouseId) {
152
+        this.warehouseId = warehouseId;
153
+    }
154
+
155
+    /**
156
+     * 入仓时间
157
+     * @return rksj 入仓时间
158
+     */
159
+    public Date getRksj() {
160
+        return rksj;
161
+    }
162
+
163
+    /**
164
+     * 入仓时间
165
+     * @param rksj 入仓时间
166
+     */
167
+    public void setRksj(Date rksj) {
168
+        this.rksj = rksj;
169
+    }
170
+
171
+    /**
172
+     * 粮食品种
173
+     * @return lspz 粮食品种
174
+     */
175
+    public Integer getLspz() {
176
+        return lspz;
177
+    }
178
+
179
+    /**
180
+     * 粮食品种
181
+     * @param lspz 粮食品种
182
+     */
183
+    public void setLspz(Integer lspz) {
184
+        this.lspz = lspz;
185
+    }
186
+
187
+    /**
188
+     * 粮食性质
189
+     * @return lsxz 粮食性质
190
+     */
191
+    public String getLsxz() {
192
+        return lsxz;
193
+    }
194
+
195
+    /**
196
+     * 粮食性质
197
+     * @param lsxz 粮食性质
198
+     */
199
+    public void setLsxz(String lsxz) {
200
+        this.lsxz = lsxz == null ? null : lsxz.trim();
201
+    }
202
+
203
+    /**
204
+     * 存储方式
205
+     * @return keepingWay 存储方式
206
+     */
207
+    public Integer getKeepingWay() {
208
+        return keepingWay;
209
+    }
210
+
211
+    /**
212
+     * 存储方式
213
+     * @param keepingWay 存储方式
214
+     */
215
+    public void setKeepingWay(Integer keepingWay) {
216
+        this.keepingWay = keepingWay;
217
+    }
218
+
219
+    /**
220
+     * 存储方式
221
+     * @return ccfs 存储方式
222
+     */
223
+    public Integer getCcfs() {
224
+        return ccfs;
225
+    }
226
+
227
+    /**
228
+     * 存储方式
229
+     * @param ccfs 存储方式
230
+     */
231
+    public void setCcfs(Integer ccfs) {
232
+        this.ccfs = ccfs;
233
+    }
234
+
235
+    /**
236
+     * 审核状态
237
+     * @return applyStatus 审核状态
238
+     */
239
+    public Integer getApplyStatus() {
240
+        return applyStatus;
241
+    }
242
+
243
+    /**
244
+     * 审核状态
245
+     * @param applyStatus 审核状态
246
+     */
247
+    public void setApplyStatus(Integer applyStatus) {
248
+        this.applyStatus = applyStatus;
249
+    }
250
+
251
+    /**
252
+     * 计划倒入数量
253
+     * @return pourInNum 计划倒入数量
254
+     */
255
+    public BigDecimal getPourInNum() {
256
+        return pourInNum;
257
+    }
258
+
259
+    /**
260
+     * 计划倒入数量
261
+     * @param pourInNum 计划倒入数量
262
+     */
263
+    public void setPourInNum(BigDecimal pourInNum) {
264
+        this.pourInNum = pourInNum;
265
+    }
266
+
267
+    /**
268
+     * 计划倒出数量
269
+     * @return pourOutNum 计划倒出数量
270
+     */
271
+    public BigDecimal getPourOutNum() {
272
+        return pourOutNum;
273
+    }
274
+
275
+    /**
276
+     * 计划倒出数量
277
+     * @param pourOutNum 计划倒出数量
278
+     */
279
+    public void setPourOutNum(BigDecimal pourOutNum) {
280
+        this.pourOutNum = pourOutNum;
281
+    }
282
+
283
+    /**
284
+     * 期初数量
285
+     * @return qichuNum 期初数量
286
+     */
287
+    public BigDecimal getQichuNum() {
288
+        return qichuNum;
289
+    }
290
+
291
+    /**
292
+     * 期初数量
293
+     * @param qichuNum 期初数量
294
+     */
295
+    public void setQichuNum(BigDecimal qichuNum) {
296
+        this.qichuNum = qichuNum;
297
+    }
298
+
299
+    /**
300
+     * 
301
+     * @return updateTime 
302
+     */
303
+    public Date getUpdateTime() {
304
+        return updateTime;
305
+    }
306
+
307
+    /**
308
+     * 
309
+     * @param updateTime 
310
+     */
311
+    public void setUpdateTime(Date updateTime) {
312
+        this.updateTime = updateTime;
313
+    }
314
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1260 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTaskDetailExample.java


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1630 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseTaskExample.java


+ 296 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseWorkTask.java

@@ -0,0 +1,296 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+import com.fasterxml.jackson.annotation.JsonFormat;
7
+
8
+public class StorageChangeStoragehouseWorkTask {
9
+    private Integer id;
10
+
11
+    private Integer org_id;
12
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
13
+    private Date createDate;
14
+
15
+    private String workNo;
16
+
17
+    private Integer houseId;
18
+
19
+    private Integer wareId;
20
+
21
+    private Integer storehouseId;
22
+
23
+    private Integer warehouseId;
24
+
25
+    private Integer lspz;
26
+
27
+    private BigDecimal qichuNum;
28
+
29
+    private BigDecimal pourInNum;
30
+
31
+    private BigDecimal pourOutNum;
32
+
33
+    private BigDecimal surplusNum;
34
+
35
+    private Integer changIndex;
36
+
37
+    private BigDecimal beginNum;
38
+
39
+    private BigDecimal resultNum;
40
+
41
+    /**
42
+     * 主键
43
+     * @return id 主键
44
+     */
45
+    public Integer getId() {
46
+        return id;
47
+    }
48
+
49
+    /**
50
+     * 主键
51
+     * @param id 主键
52
+     */
53
+    public void setId(Integer id) {
54
+        this.id = id;
55
+    }
56
+
57
+    /**
58
+     * 单位ID
59
+     * @return org_id 单位ID
60
+     */
61
+    public Integer getOrg_id() {
62
+        return org_id;
63
+    }
64
+
65
+    /**
66
+     * 单位ID
67
+     * @param org_id 单位ID
68
+     */
69
+    public void setOrg_id(Integer org_id) {
70
+        this.org_id = org_id;
71
+    }
72
+
73
+    /**
74
+     * 创建时间
75
+     * @return createDate 创建时间
76
+     */
77
+    public Date getCreateDate() {
78
+        return createDate;
79
+    }
80
+
81
+    /**
82
+     * 创建时间
83
+     * @param createDate 创建时间
84
+     */
85
+    public void setCreateDate(Date createDate) {
86
+        this.createDate = createDate;
87
+    }
88
+
89
+    /**
90
+     * 作业单号
91
+     * @return workNo 作业单号
92
+     */
93
+    public String getWorkNo() {
94
+        return workNo;
95
+    }
96
+
97
+    /**
98
+     * 作业单号
99
+     * @param workNo 作业单号
100
+     */
101
+    public void setWorkNo(String workNo) {
102
+        this.workNo = workNo == null ? null : workNo.trim();
103
+    }
104
+
105
+    /**
106
+     * 倒出仓房ID
107
+     * @return houseId 倒出仓房ID
108
+     */
109
+    public Integer getHouseId() {
110
+        return houseId;
111
+    }
112
+
113
+    /**
114
+     * 倒出仓房ID
115
+     * @param houseId 倒出仓房ID
116
+     */
117
+    public void setHouseId(Integer houseId) {
118
+        this.houseId = houseId;
119
+    }
120
+
121
+    /**
122
+     * 倒出货位ID
123
+     * @return wareId 倒出货位ID
124
+     */
125
+    public Integer getWareId() {
126
+        return wareId;
127
+    }
128
+
129
+    /**
130
+     * 倒出货位ID
131
+     * @param wareId 倒出货位ID
132
+     */
133
+    public void setWareId(Integer wareId) {
134
+        this.wareId = wareId;
135
+    }
136
+
137
+    /**
138
+     * 导入仓房ID
139
+     * @return storehouseId 导入仓房ID
140
+     */
141
+    public Integer getStorehouseId() {
142
+        return storehouseId;
143
+    }
144
+
145
+    /**
146
+     * 导入仓房ID
147
+     * @param storehouseId 导入仓房ID
148
+     */
149
+    public void setStorehouseId(Integer storehouseId) {
150
+        this.storehouseId = storehouseId;
151
+    }
152
+
153
+    /**
154
+     * 倒入货位ID
155
+     * @return warehouseId 倒入货位ID
156
+     */
157
+    public Integer getWarehouseId() {
158
+        return warehouseId;
159
+    }
160
+
161
+    /**
162
+     * 倒入货位ID
163
+     * @param warehouseId 倒入货位ID
164
+     */
165
+    public void setWarehouseId(Integer warehouseId) {
166
+        this.warehouseId = warehouseId;
167
+    }
168
+
169
+    /**
170
+     * 粮油品种
171
+     * @return lspz 粮油品种
172
+     */
173
+    public Integer getLspz() {
174
+        return lspz;
175
+    }
176
+
177
+    /**
178
+     * 粮油品种
179
+     * @param lspz 粮油品种
180
+     */
181
+    public void setLspz(Integer lspz) {
182
+        this.lspz = lspz;
183
+    }
184
+
185
+    /**
186
+     * 倒出期初数量
187
+     * @return qichuNum 倒出期初数量
188
+     */
189
+    public BigDecimal getQichuNum() {
190
+        return qichuNum;
191
+    }
192
+
193
+    /**
194
+     * 倒出期初数量
195
+     * @param qichuNum 倒出期初数量
196
+     */
197
+    public void setQichuNum(BigDecimal qichuNum) {
198
+        this.qichuNum = qichuNum;
199
+    }
200
+
201
+    /**
202
+     * 倒出数量
203
+     * @return pourInNum 倒出数量
204
+     */
205
+    public BigDecimal getPourInNum() {
206
+        return pourInNum;
207
+    }
208
+
209
+    /**
210
+     * 倒出数量
211
+     * @param pourInNum 倒出数量
212
+     */
213
+    public void setPourInNum(BigDecimal pourInNum) {
214
+        this.pourInNum = pourInNum;
215
+    }
216
+
217
+    /**
218
+     * 倒入数量
219
+     * @return pourOutNum 倒入数量
220
+     */
221
+    public BigDecimal getPourOutNum() {
222
+        return pourOutNum;
223
+    }
224
+
225
+    /**
226
+     * 倒入数量
227
+     * @param pourOutNum 倒入数量
228
+     */
229
+    public void setPourOutNum(BigDecimal pourOutNum) {
230
+        this.pourOutNum = pourOutNum;
231
+    }
232
+
233
+    /**
234
+     * 倒出结余数量
235
+     * @return surplusNum 倒出结余数量
236
+     */
237
+    public BigDecimal getSurplusNum() {
238
+        return surplusNum;
239
+    }
240
+
241
+    /**
242
+     * 倒出结余数量
243
+     * @param surplusNum 倒出结余数量
244
+     */
245
+    public void setSurplusNum(BigDecimal surplusNum) {
246
+        this.surplusNum = surplusNum;
247
+    }
248
+
249
+    /**
250
+     * 数据值下标
251
+     * @return changIndex 数据值下标
252
+     */
253
+    public Integer getChangIndex() {
254
+        return changIndex;
255
+    }
256
+
257
+    /**
258
+     * 数据值下标
259
+     * @param changIndex 数据值下标
260
+     */
261
+    public void setChangIndex(Integer changIndex) {
262
+        this.changIndex = changIndex;
263
+    }
264
+
265
+    /**
266
+     * 倒入期初数量
267
+     * @return beginNum 倒入期初数量
268
+     */
269
+    public BigDecimal getBeginNum() {
270
+        return beginNum;
271
+    }
272
+
273
+    /**
274
+     * 倒入期初数量
275
+     * @param beginNum 倒入期初数量
276
+     */
277
+    public void setBeginNum(BigDecimal beginNum) {
278
+        this.beginNum = beginNum;
279
+    }
280
+
281
+    /**
282
+     * 倒入结余数量
283
+     * @return resultNum 倒入结余数量
284
+     */
285
+    public BigDecimal getResultNum() {
286
+        return resultNum;
287
+    }
288
+
289
+    /**
290
+     * 倒入结余数量
291
+     * @param resultNum 倒入结余数量
292
+     */
293
+    public void setResultNum(BigDecimal resultNum) {
294
+        this.resultNum = resultNum;
295
+    }
296
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1190 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageChangeStoragehouseWorkTaskExample.java


+ 330 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageDump.java

@@ -0,0 +1,330 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+public class StorageDump {
7
+    private Integer id;
8
+
9
+    private Integer ysId;
10
+
11
+    private Integer orgId;
12
+
13
+    private Integer houseId;
14
+
15
+    private Integer wareId;
16
+
17
+    private Integer lspz;
18
+
19
+    private Integer yLsxz;
20
+
21
+    private Integer xLsxz;
22
+
23
+    private Integer lsdj;
24
+
25
+    private BigDecimal clsl;
26
+
27
+    private String zjjg;
28
+
29
+    private String ysStatus;
30
+
31
+    private Date businessCreateTime;
32
+
33
+    private Date createTime;
34
+
35
+    private String createPerson;
36
+
37
+    private Integer isUpload;
38
+
39
+    private Date uploadTime;
40
+
41
+    private Date updatetime;
42
+
43
+    /**
44
+     * 主键ID
45
+     * @return id 主键ID
46
+     */
47
+    public Integer getId() {
48
+        return id;
49
+    }
50
+
51
+    /**
52
+     * 主键ID
53
+     * @param id 主键ID
54
+     */
55
+    public void setId(Integer id) {
56
+        this.id = id;
57
+    }
58
+
59
+    /**
60
+     * 验收数据ID
61
+     * @return ys_id 验收数据ID
62
+     */
63
+    public Integer getYsId() {
64
+        return ysId;
65
+    }
66
+
67
+    /**
68
+     * 验收数据ID
69
+     * @param ysId 验收数据ID
70
+     */
71
+    public void setYsId(Integer ysId) {
72
+        this.ysId = ysId;
73
+    }
74
+
75
+    /**
76
+     * 单位ID
77
+     * @return org_id 单位ID
78
+     */
79
+    public Integer getOrgId() {
80
+        return orgId;
81
+    }
82
+
83
+    /**
84
+     * 单位ID
85
+     * @param orgId 单位ID
86
+     */
87
+    public void setOrgId(Integer orgId) {
88
+        this.orgId = orgId;
89
+    }
90
+
91
+    /**
92
+     * 仓房ID
93
+     * @return house_id 仓房ID
94
+     */
95
+    public Integer getHouseId() {
96
+        return houseId;
97
+    }
98
+
99
+    /**
100
+     * 仓房ID
101
+     * @param houseId 仓房ID
102
+     */
103
+    public void setHouseId(Integer houseId) {
104
+        this.houseId = houseId;
105
+    }
106
+
107
+    /**
108
+     * 货位ID
109
+     * @return ware_id 货位ID
110
+     */
111
+    public Integer getWareId() {
112
+        return wareId;
113
+    }
114
+
115
+    /**
116
+     * 货位ID
117
+     * @param wareId 货位ID
118
+     */
119
+    public void setWareId(Integer wareId) {
120
+        this.wareId = wareId;
121
+    }
122
+
123
+    /**
124
+     * 粮食品种
125
+     * @return lspz 粮食品种
126
+     */
127
+    public Integer getLspz() {
128
+        return lspz;
129
+    }
130
+
131
+    /**
132
+     * 粮食品种
133
+     * @param lspz 粮食品种
134
+     */
135
+    public void setLspz(Integer lspz) {
136
+        this.lspz = lspz;
137
+    }
138
+
139
+    /**
140
+     * 原粮食性质
141
+     * @return y_lsxz 原粮食性质
142
+     */
143
+    public Integer getyLsxz() {
144
+        return yLsxz;
145
+    }
146
+
147
+    /**
148
+     * 原粮食性质
149
+     * @param yLsxz 原粮食性质
150
+     */
151
+    public void setyLsxz(Integer yLsxz) {
152
+        this.yLsxz = yLsxz;
153
+    }
154
+
155
+    /**
156
+     * 新粮食性质
157
+     * @return x_lsxz 新粮食性质
158
+     */
159
+    public Integer getxLsxz() {
160
+        return xLsxz;
161
+    }
162
+
163
+    /**
164
+     * 新粮食性质
165
+     * @param xLsxz 新粮食性质
166
+     */
167
+    public void setxLsxz(Integer xLsxz) {
168
+        this.xLsxz = xLsxz;
169
+    }
170
+
171
+    /**
172
+     * 粮食等级
173
+     * @return lsdj 粮食等级
174
+     */
175
+    public Integer getLsdj() {
176
+        return lsdj;
177
+    }
178
+
179
+    /**
180
+     * 粮食等级
181
+     * @param lsdj 粮食等级
182
+     */
183
+    public void setLsdj(Integer lsdj) {
184
+        this.lsdj = lsdj;
185
+    }
186
+
187
+    /**
188
+     * 储粮数量(单位:公斤)
189
+     * @return clsl 储粮数量(单位:公斤)
190
+     */
191
+    public BigDecimal getClsl() {
192
+        return clsl;
193
+    }
194
+
195
+    /**
196
+     * 储粮数量(单位:公斤)
197
+     * @param clsl 储粮数量(单位:公斤)
198
+     */
199
+    public void setClsl(BigDecimal clsl) {
200
+        this.clsl = clsl;
201
+    }
202
+
203
+    /**
204
+     * 质检结果
205
+     * @return zjjg 质检结果
206
+     */
207
+    public String getZjjg() {
208
+        return zjjg;
209
+    }
210
+
211
+    /**
212
+     * 质检结果
213
+     * @param zjjg 质检结果
214
+     */
215
+    public void setZjjg(String zjjg) {
216
+        this.zjjg = zjjg == null ? null : zjjg.trim();
217
+    }
218
+
219
+    /**
220
+     * 验收状态
221
+     * @return ys_status 验收状态
222
+     */
223
+    public String getYsStatus() {
224
+        return ysStatus;
225
+    }
226
+
227
+    /**
228
+     * 验收状态
229
+     * @param ysStatus 验收状态
230
+     */
231
+    public void setYsStatus(String ysStatus) {
232
+        this.ysStatus = ysStatus == null ? null : ysStatus.trim();
233
+    }
234
+
235
+    /**
236
+     * 业务产生时间
237
+     * @return business_create_time 业务产生时间
238
+     */
239
+    public Date getBusinessCreateTime() {
240
+        return businessCreateTime;
241
+    }
242
+
243
+    /**
244
+     * 业务产生时间
245
+     * @param businessCreateTime 业务产生时间
246
+     */
247
+    public void setBusinessCreateTime(Date businessCreateTime) {
248
+        this.businessCreateTime = businessCreateTime;
249
+    }
250
+
251
+    /**
252
+     * 创建时间
253
+     * @return create_time 创建时间
254
+     */
255
+    public Date getCreateTime() {
256
+        return createTime;
257
+    }
258
+
259
+    /**
260
+     * 创建时间
261
+     * @param createTime 创建时间
262
+     */
263
+    public void setCreateTime(Date createTime) {
264
+        this.createTime = createTime;
265
+    }
266
+
267
+    /**
268
+     * 创建人
269
+     * @return create_person 创建人
270
+     */
271
+    public String getCreatePerson() {
272
+        return createPerson;
273
+    }
274
+
275
+    /**
276
+     * 创建人
277
+     * @param createPerson 创建人
278
+     */
279
+    public void setCreatePerson(String createPerson) {
280
+        this.createPerson = createPerson == null ? null : createPerson.trim();
281
+    }
282
+
283
+    /**
284
+     * 上传状态(1上传成功,0需上传修改,null未上传)
285
+     * @return is_upload 上传状态(1上传成功,0需上传修改,null未上传)
286
+     */
287
+    public Integer getIsUpload() {
288
+        return isUpload;
289
+    }
290
+
291
+    /**
292
+     * 上传状态(1上传成功,0需上传修改,null未上传)
293
+     * @param isUpload 上传状态(1上传成功,0需上传修改,null未上传)
294
+     */
295
+    public void setIsUpload(Integer isUpload) {
296
+        this.isUpload = isUpload;
297
+    }
298
+
299
+    /**
300
+     * 上传时间
301
+     * @return upload_time 上传时间
302
+     */
303
+    public Date getUploadTime() {
304
+        return uploadTime;
305
+    }
306
+
307
+    /**
308
+     * 上传时间
309
+     * @param uploadTime 上传时间
310
+     */
311
+    public void setUploadTime(Date uploadTime) {
312
+        this.uploadTime = uploadTime;
313
+    }
314
+
315
+    /**
316
+     * 
317
+     * @return updatetime 
318
+     */
319
+    public Date getUpdatetime() {
320
+        return updatetime;
321
+    }
322
+
323
+    /**
324
+     * 
325
+     * @param updatetime 
326
+     */
327
+    public void setUpdatetime(Date updatetime) {
328
+        this.updatetime = updatetime;
329
+    }
330
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1330 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageDumpExample.java


+ 111 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoCheck.java

@@ -0,0 +1,111 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+public class StorageFoodbasicInfoCheck {
4
+    private Integer id;
5
+
6
+    private Integer houseId;
7
+
8
+    private Integer warehouseId;
9
+
10
+    private Integer foodbasicinfoId;
11
+
12
+    private Integer qualitycheckId;
13
+
14
+    private Integer orgId;
15
+
16
+    /**
17
+     * 粮食质量检测记录
18
+     * @return id 粮食质量检测记录
19
+     */
20
+    public Integer getId() {
21
+        return id;
22
+    }
23
+
24
+    /**
25
+     * 粮食质量检测记录
26
+     * @param id 粮食质量检测记录
27
+     */
28
+    public void setId(Integer id) {
29
+        this.id = id;
30
+    }
31
+
32
+    /**
33
+     * 仓房ID
34
+     * @return house_id 仓房ID
35
+     */
36
+    public Integer getHouseId() {
37
+        return houseId;
38
+    }
39
+
40
+    /**
41
+     * 仓房ID
42
+     * @param houseId 仓房ID
43
+     */
44
+    public void setHouseId(Integer houseId) {
45
+        this.houseId = houseId;
46
+    }
47
+
48
+    /**
49
+     * 货位Id
50
+     * @return warehouse_id 货位Id
51
+     */
52
+    public Integer getWarehouseId() {
53
+        return warehouseId;
54
+    }
55
+
56
+    /**
57
+     * 货位Id
58
+     * @param warehouseId 货位Id
59
+     */
60
+    public void setWarehouseId(Integer warehouseId) {
61
+        this.warehouseId = warehouseId;
62
+    }
63
+
64
+    /**
65
+     * 粮食基本信息(粮情专卡)id
66
+     * @return foodbasicinfo_id 粮食基本信息(粮情专卡)id
67
+     */
68
+    public Integer getFoodbasicinfoId() {
69
+        return foodbasicinfoId;
70
+    }
71
+
72
+    /**
73
+     * 粮食基本信息(粮情专卡)id
74
+     * @param foodbasicinfoId 粮食基本信息(粮情专卡)id
75
+     */
76
+    public void setFoodbasicinfoId(Integer foodbasicinfoId) {
77
+        this.foodbasicinfoId = foodbasicinfoId;
78
+    }
79
+
80
+    /**
81
+     * 质量管理id
82
+     * @return qualitycheck_id 质量管理id
83
+     */
84
+    public Integer getQualitycheckId() {
85
+        return qualitycheckId;
86
+    }
87
+
88
+    /**
89
+     * 质量管理id
90
+     * @param qualitycheckId 质量管理id
91
+     */
92
+    public void setQualitycheckId(Integer qualitycheckId) {
93
+        this.qualitycheckId = qualitycheckId;
94
+    }
95
+
96
+    /**
97
+     * 组织机构id
98
+     * @return org_id 组织机构id
99
+     */
100
+    public Integer getOrgId() {
101
+        return orgId;
102
+    }
103
+
104
+    /**
105
+     * 组织机构id
106
+     * @param orgId 组织机构id
107
+     */
108
+    public void setOrgId(Integer orgId) {
109
+        this.orgId = orgId;
110
+    }
111
+}

+ 578 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoCheckExample.java

@@ -0,0 +1,578 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+public class StorageFoodbasicInfoCheckExample {
7
+    /**
8
+     * storage_foodbasicinfochecks
9
+     */
10
+    protected String orderByClause;
11
+
12
+    /**
13
+     * storage_foodbasicinfochecks
14
+     */
15
+    protected boolean distinct;
16
+
17
+    /**
18
+     * storage_foodbasicinfochecks
19
+     */
20
+    protected List<Criteria> oredCriteria;
21
+
22
+    public StorageFoodbasicInfoCheckExample() {
23
+        oredCriteria = new ArrayList<Criteria>();
24
+    }
25
+
26
+    public void setOrderByClause(String orderByClause) {
27
+        this.orderByClause = orderByClause;
28
+    }
29
+
30
+    public String getOrderByClause() {
31
+        return orderByClause;
32
+    }
33
+
34
+    public void setDistinct(boolean distinct) {
35
+        this.distinct = distinct;
36
+    }
37
+
38
+    public boolean isDistinct() {
39
+        return distinct;
40
+    }
41
+
42
+    public List<Criteria> getOredCriteria() {
43
+        return oredCriteria;
44
+    }
45
+
46
+    public void or(Criteria criteria) {
47
+        oredCriteria.add(criteria);
48
+    }
49
+
50
+    public Criteria or() {
51
+        Criteria criteria = createCriteriaInternal();
52
+        oredCriteria.add(criteria);
53
+        return criteria;
54
+    }
55
+
56
+    public Criteria createCriteria() {
57
+        Criteria criteria = createCriteriaInternal();
58
+        if (oredCriteria.size() == 0) {
59
+            oredCriteria.add(criteria);
60
+        }
61
+        return criteria;
62
+    }
63
+
64
+    protected Criteria createCriteriaInternal() {
65
+        Criteria criteria = new Criteria();
66
+        return criteria;
67
+    }
68
+
69
+    public void clear() {
70
+        oredCriteria.clear();
71
+        orderByClause = null;
72
+        distinct = false;
73
+    }
74
+
75
+    /**
76
+     * storage_foodbasicinfochecks 2018-04-20
77
+     */
78
+    protected abstract static class GeneratedCriteria {
79
+        protected List<Criterion> criteria;
80
+
81
+        protected GeneratedCriteria() {
82
+            super();
83
+            criteria = new ArrayList<Criterion>();
84
+        }
85
+
86
+        public boolean isValid() {
87
+            return criteria.size() > 0;
88
+        }
89
+
90
+        public List<Criterion> getAllCriteria() {
91
+            return criteria;
92
+        }
93
+
94
+        public List<Criterion> getCriteria() {
95
+            return criteria;
96
+        }
97
+
98
+        protected void addCriterion(String condition) {
99
+            if (condition == null) {
100
+                throw new RuntimeException("Value for condition cannot be null");
101
+            }
102
+            criteria.add(new Criterion(condition));
103
+        }
104
+
105
+        protected void addCriterion(String condition, Object value, String property) {
106
+            if (value == null) {
107
+                throw new RuntimeException("Value for " + property + " cannot be null");
108
+            }
109
+            criteria.add(new Criterion(condition, value));
110
+        }
111
+
112
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
113
+            if (value1 == null || value2 == null) {
114
+                throw new RuntimeException("Between values for " + property + " cannot be null");
115
+            }
116
+            criteria.add(new Criterion(condition, value1, value2));
117
+        }
118
+
119
+        public Criteria andIdIsNull() {
120
+            addCriterion("id is null");
121
+            return (Criteria) this;
122
+        }
123
+
124
+        public Criteria andIdIsNotNull() {
125
+            addCriterion("id is not null");
126
+            return (Criteria) this;
127
+        }
128
+
129
+        public Criteria andIdEqualTo(Integer value) {
130
+            addCriterion("id =", value, "id");
131
+            return (Criteria) this;
132
+        }
133
+
134
+        public Criteria andIdNotEqualTo(Integer value) {
135
+            addCriterion("id <>", value, "id");
136
+            return (Criteria) this;
137
+        }
138
+
139
+        public Criteria andIdGreaterThan(Integer value) {
140
+            addCriterion("id >", value, "id");
141
+            return (Criteria) this;
142
+        }
143
+
144
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
145
+            addCriterion("id >=", value, "id");
146
+            return (Criteria) this;
147
+        }
148
+
149
+        public Criteria andIdLessThan(Integer value) {
150
+            addCriterion("id <", value, "id");
151
+            return (Criteria) this;
152
+        }
153
+
154
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
155
+            addCriterion("id <=", value, "id");
156
+            return (Criteria) this;
157
+        }
158
+
159
+        public Criteria andIdIn(List<Integer> values) {
160
+            addCriterion("id in", values, "id");
161
+            return (Criteria) this;
162
+        }
163
+
164
+        public Criteria andIdNotIn(List<Integer> values) {
165
+            addCriterion("id not in", values, "id");
166
+            return (Criteria) this;
167
+        }
168
+
169
+        public Criteria andIdBetween(Integer value1, Integer value2) {
170
+            addCriterion("id between", value1, value2, "id");
171
+            return (Criteria) this;
172
+        }
173
+
174
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
175
+            addCriterion("id not between", value1, value2, "id");
176
+            return (Criteria) this;
177
+        }
178
+
179
+        public Criteria andHouseIdIsNull() {
180
+            addCriterion("house_id is null");
181
+            return (Criteria) this;
182
+        }
183
+
184
+        public Criteria andHouseIdIsNotNull() {
185
+            addCriterion("house_id is not null");
186
+            return (Criteria) this;
187
+        }
188
+
189
+        public Criteria andHouseIdEqualTo(Integer value) {
190
+            addCriterion("house_id =", value, "houseId");
191
+            return (Criteria) this;
192
+        }
193
+
194
+        public Criteria andHouseIdNotEqualTo(Integer value) {
195
+            addCriterion("house_id <>", value, "houseId");
196
+            return (Criteria) this;
197
+        }
198
+
199
+        public Criteria andHouseIdGreaterThan(Integer value) {
200
+            addCriterion("house_id >", value, "houseId");
201
+            return (Criteria) this;
202
+        }
203
+
204
+        public Criteria andHouseIdGreaterThanOrEqualTo(Integer value) {
205
+            addCriterion("house_id >=", value, "houseId");
206
+            return (Criteria) this;
207
+        }
208
+
209
+        public Criteria andHouseIdLessThan(Integer value) {
210
+            addCriterion("house_id <", value, "houseId");
211
+            return (Criteria) this;
212
+        }
213
+
214
+        public Criteria andHouseIdLessThanOrEqualTo(Integer value) {
215
+            addCriterion("house_id <=", value, "houseId");
216
+            return (Criteria) this;
217
+        }
218
+
219
+        public Criteria andHouseIdIn(List<Integer> values) {
220
+            addCriterion("house_id in", values, "houseId");
221
+            return (Criteria) this;
222
+        }
223
+
224
+        public Criteria andHouseIdNotIn(List<Integer> values) {
225
+            addCriterion("house_id not in", values, "houseId");
226
+            return (Criteria) this;
227
+        }
228
+
229
+        public Criteria andHouseIdBetween(Integer value1, Integer value2) {
230
+            addCriterion("house_id between", value1, value2, "houseId");
231
+            return (Criteria) this;
232
+        }
233
+
234
+        public Criteria andHouseIdNotBetween(Integer value1, Integer value2) {
235
+            addCriterion("house_id not between", value1, value2, "houseId");
236
+            return (Criteria) this;
237
+        }
238
+
239
+        public Criteria andWarehouseIdIsNull() {
240
+            addCriterion("warehouse_id is null");
241
+            return (Criteria) this;
242
+        }
243
+
244
+        public Criteria andWarehouseIdIsNotNull() {
245
+            addCriterion("warehouse_id is not null");
246
+            return (Criteria) this;
247
+        }
248
+
249
+        public Criteria andWarehouseIdEqualTo(Integer value) {
250
+            addCriterion("warehouse_id =", value, "warehouseId");
251
+            return (Criteria) this;
252
+        }
253
+
254
+        public Criteria andWarehouseIdNotEqualTo(Integer value) {
255
+            addCriterion("warehouse_id <>", value, "warehouseId");
256
+            return (Criteria) this;
257
+        }
258
+
259
+        public Criteria andWarehouseIdGreaterThan(Integer value) {
260
+            addCriterion("warehouse_id >", value, "warehouseId");
261
+            return (Criteria) this;
262
+        }
263
+
264
+        public Criteria andWarehouseIdGreaterThanOrEqualTo(Integer value) {
265
+            addCriterion("warehouse_id >=", value, "warehouseId");
266
+            return (Criteria) this;
267
+        }
268
+
269
+        public Criteria andWarehouseIdLessThan(Integer value) {
270
+            addCriterion("warehouse_id <", value, "warehouseId");
271
+            return (Criteria) this;
272
+        }
273
+
274
+        public Criteria andWarehouseIdLessThanOrEqualTo(Integer value) {
275
+            addCriterion("warehouse_id <=", value, "warehouseId");
276
+            return (Criteria) this;
277
+        }
278
+
279
+        public Criteria andWarehouseIdIn(List<Integer> values) {
280
+            addCriterion("warehouse_id in", values, "warehouseId");
281
+            return (Criteria) this;
282
+        }
283
+
284
+        public Criteria andWarehouseIdNotIn(List<Integer> values) {
285
+            addCriterion("warehouse_id not in", values, "warehouseId");
286
+            return (Criteria) this;
287
+        }
288
+
289
+        public Criteria andWarehouseIdBetween(Integer value1, Integer value2) {
290
+            addCriterion("warehouse_id between", value1, value2, "warehouseId");
291
+            return (Criteria) this;
292
+        }
293
+
294
+        public Criteria andWarehouseIdNotBetween(Integer value1, Integer value2) {
295
+            addCriterion("warehouse_id not between", value1, value2, "warehouseId");
296
+            return (Criteria) this;
297
+        }
298
+
299
+        public Criteria andFoodbasicinfoIdIsNull() {
300
+            addCriterion("foodbasicinfo_id is null");
301
+            return (Criteria) this;
302
+        }
303
+
304
+        public Criteria andFoodbasicinfoIdIsNotNull() {
305
+            addCriterion("foodbasicinfo_id is not null");
306
+            return (Criteria) this;
307
+        }
308
+
309
+        public Criteria andFoodbasicinfoIdEqualTo(Integer value) {
310
+            addCriterion("foodbasicinfo_id =", value, "foodbasicinfoId");
311
+            return (Criteria) this;
312
+        }
313
+
314
+        public Criteria andFoodbasicinfoIdNotEqualTo(Integer value) {
315
+            addCriterion("foodbasicinfo_id <>", value, "foodbasicinfoId");
316
+            return (Criteria) this;
317
+        }
318
+
319
+        public Criteria andFoodbasicinfoIdGreaterThan(Integer value) {
320
+            addCriterion("foodbasicinfo_id >", value, "foodbasicinfoId");
321
+            return (Criteria) this;
322
+        }
323
+
324
+        public Criteria andFoodbasicinfoIdGreaterThanOrEqualTo(Integer value) {
325
+            addCriterion("foodbasicinfo_id >=", value, "foodbasicinfoId");
326
+            return (Criteria) this;
327
+        }
328
+
329
+        public Criteria andFoodbasicinfoIdLessThan(Integer value) {
330
+            addCriterion("foodbasicinfo_id <", value, "foodbasicinfoId");
331
+            return (Criteria) this;
332
+        }
333
+
334
+        public Criteria andFoodbasicinfoIdLessThanOrEqualTo(Integer value) {
335
+            addCriterion("foodbasicinfo_id <=", value, "foodbasicinfoId");
336
+            return (Criteria) this;
337
+        }
338
+
339
+        public Criteria andFoodbasicinfoIdIn(List<Integer> values) {
340
+            addCriterion("foodbasicinfo_id in", values, "foodbasicinfoId");
341
+            return (Criteria) this;
342
+        }
343
+
344
+        public Criteria andFoodbasicinfoIdNotIn(List<Integer> values) {
345
+            addCriterion("foodbasicinfo_id not in", values, "foodbasicinfoId");
346
+            return (Criteria) this;
347
+        }
348
+
349
+        public Criteria andFoodbasicinfoIdBetween(Integer value1, Integer value2) {
350
+            addCriterion("foodbasicinfo_id between", value1, value2, "foodbasicinfoId");
351
+            return (Criteria) this;
352
+        }
353
+
354
+        public Criteria andFoodbasicinfoIdNotBetween(Integer value1, Integer value2) {
355
+            addCriterion("foodbasicinfo_id not between", value1, value2, "foodbasicinfoId");
356
+            return (Criteria) this;
357
+        }
358
+
359
+        public Criteria andQualitycheckIdIsNull() {
360
+            addCriterion("qualitycheck_id is null");
361
+            return (Criteria) this;
362
+        }
363
+
364
+        public Criteria andQualitycheckIdIsNotNull() {
365
+            addCriterion("qualitycheck_id is not null");
366
+            return (Criteria) this;
367
+        }
368
+
369
+        public Criteria andQualitycheckIdEqualTo(Integer value) {
370
+            addCriterion("qualitycheck_id =", value, "qualitycheckId");
371
+            return (Criteria) this;
372
+        }
373
+
374
+        public Criteria andQualitycheckIdNotEqualTo(Integer value) {
375
+            addCriterion("qualitycheck_id <>", value, "qualitycheckId");
376
+            return (Criteria) this;
377
+        }
378
+
379
+        public Criteria andQualitycheckIdGreaterThan(Integer value) {
380
+            addCriterion("qualitycheck_id >", value, "qualitycheckId");
381
+            return (Criteria) this;
382
+        }
383
+
384
+        public Criteria andQualitycheckIdGreaterThanOrEqualTo(Integer value) {
385
+            addCriterion("qualitycheck_id >=", value, "qualitycheckId");
386
+            return (Criteria) this;
387
+        }
388
+
389
+        public Criteria andQualitycheckIdLessThan(Integer value) {
390
+            addCriterion("qualitycheck_id <", value, "qualitycheckId");
391
+            return (Criteria) this;
392
+        }
393
+
394
+        public Criteria andQualitycheckIdLessThanOrEqualTo(Integer value) {
395
+            addCriterion("qualitycheck_id <=", value, "qualitycheckId");
396
+            return (Criteria) this;
397
+        }
398
+
399
+        public Criteria andQualitycheckIdIn(List<Integer> values) {
400
+            addCriterion("qualitycheck_id in", values, "qualitycheckId");
401
+            return (Criteria) this;
402
+        }
403
+
404
+        public Criteria andQualitycheckIdNotIn(List<Integer> values) {
405
+            addCriterion("qualitycheck_id not in", values, "qualitycheckId");
406
+            return (Criteria) this;
407
+        }
408
+
409
+        public Criteria andQualitycheckIdBetween(Integer value1, Integer value2) {
410
+            addCriterion("qualitycheck_id between", value1, value2, "qualitycheckId");
411
+            return (Criteria) this;
412
+        }
413
+
414
+        public Criteria andQualitycheckIdNotBetween(Integer value1, Integer value2) {
415
+            addCriterion("qualitycheck_id not between", value1, value2, "qualitycheckId");
416
+            return (Criteria) this;
417
+        }
418
+
419
+        public Criteria andOrgIdIsNull() {
420
+            addCriterion("org_id is null");
421
+            return (Criteria) this;
422
+        }
423
+
424
+        public Criteria andOrgIdIsNotNull() {
425
+            addCriterion("org_id is not null");
426
+            return (Criteria) this;
427
+        }
428
+
429
+        public Criteria andOrgIdEqualTo(Integer value) {
430
+            addCriterion("org_id =", value, "orgId");
431
+            return (Criteria) this;
432
+        }
433
+
434
+        public Criteria andOrgIdNotEqualTo(Integer value) {
435
+            addCriterion("org_id <>", value, "orgId");
436
+            return (Criteria) this;
437
+        }
438
+
439
+        public Criteria andOrgIdGreaterThan(Integer value) {
440
+            addCriterion("org_id >", value, "orgId");
441
+            return (Criteria) this;
442
+        }
443
+
444
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
445
+            addCriterion("org_id >=", value, "orgId");
446
+            return (Criteria) this;
447
+        }
448
+
449
+        public Criteria andOrgIdLessThan(Integer value) {
450
+            addCriterion("org_id <", value, "orgId");
451
+            return (Criteria) this;
452
+        }
453
+
454
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
455
+            addCriterion("org_id <=", value, "orgId");
456
+            return (Criteria) this;
457
+        }
458
+
459
+        public Criteria andOrgIdIn(List<Integer> values) {
460
+            addCriterion("org_id in", values, "orgId");
461
+            return (Criteria) this;
462
+        }
463
+
464
+        public Criteria andOrgIdNotIn(List<Integer> values) {
465
+            addCriterion("org_id not in", values, "orgId");
466
+            return (Criteria) this;
467
+        }
468
+
469
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
470
+            addCriterion("org_id between", value1, value2, "orgId");
471
+            return (Criteria) this;
472
+        }
473
+
474
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
475
+            addCriterion("org_id not between", value1, value2, "orgId");
476
+            return (Criteria) this;
477
+        }
478
+    }
479
+
480
+    /**
481
+     * storage_foodbasicinfochecks
482
+     */
483
+    public static class Criteria extends GeneratedCriteria {
484
+
485
+        protected Criteria() {
486
+            super();
487
+        }
488
+    }
489
+
490
+    /**
491
+     * storage_foodbasicinfochecks 2018-04-20
492
+     */
493
+    public static class Criterion {
494
+        private String condition;
495
+
496
+        private Object value;
497
+
498
+        private Object secondValue;
499
+
500
+        private boolean noValue;
501
+
502
+        private boolean singleValue;
503
+
504
+        private boolean betweenValue;
505
+
506
+        private boolean listValue;
507
+
508
+        private String typeHandler;
509
+
510
+        public String getCondition() {
511
+            return condition;
512
+        }
513
+
514
+        public Object getValue() {
515
+            return value;
516
+        }
517
+
518
+        public Object getSecondValue() {
519
+            return secondValue;
520
+        }
521
+
522
+        public boolean isNoValue() {
523
+            return noValue;
524
+        }
525
+
526
+        public boolean isSingleValue() {
527
+            return singleValue;
528
+        }
529
+
530
+        public boolean isBetweenValue() {
531
+            return betweenValue;
532
+        }
533
+
534
+        public boolean isListValue() {
535
+            return listValue;
536
+        }
537
+
538
+        public String getTypeHandler() {
539
+            return typeHandler;
540
+        }
541
+
542
+        protected Criterion(String condition) {
543
+            super();
544
+            this.condition = condition;
545
+            this.typeHandler = null;
546
+            this.noValue = true;
547
+        }
548
+
549
+        protected Criterion(String condition, Object value, String typeHandler) {
550
+            super();
551
+            this.condition = condition;
552
+            this.value = value;
553
+            this.typeHandler = typeHandler;
554
+            if (value instanceof List<?>) {
555
+                this.listValue = true;
556
+            } else {
557
+                this.singleValue = true;
558
+            }
559
+        }
560
+
561
+        protected Criterion(String condition, Object value) {
562
+            this(condition, value, null);
563
+        }
564
+
565
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
566
+            super();
567
+            this.condition = condition;
568
+            this.value = value;
569
+            this.secondValue = secondValue;
570
+            this.typeHandler = typeHandler;
571
+            this.betweenValue = true;
572
+        }
573
+
574
+        protected Criterion(String condition, Object value, Object secondValue) {
575
+            this(condition, value, secondValue, null);
576
+        }
577
+    }
578
+}

+ 225 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoLocation.java

@@ -0,0 +1,225 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+public class StorageFoodbasicInfoLocation {
6
+    private Integer id;
7
+
8
+    private Integer foodbasicinfoId;
9
+
10
+    private Integer houseId;
11
+
12
+    private Integer newHouseId;
13
+
14
+    private Integer warehouseId;
15
+
16
+    private Integer newWarehouseId;
17
+
18
+    private String warehouseCode;
19
+
20
+    private String newWarehouseCode;
21
+
22
+    private Date changeTime;
23
+
24
+    private String remarks;
25
+
26
+    private Integer orgId;
27
+    
28
+    //业务字段
29
+    private String newWarehouseName;
30
+    
31
+    private String warehouseName;
32
+
33
+
34
+	/**
35
+     * 粮食基本信息货位变更记录
36
+     * @return id 粮食基本信息货位变更记录
37
+     */
38
+    public Integer getId() {
39
+        return id;
40
+    }
41
+
42
+    /**
43
+     * 粮食基本信息货位变更记录
44
+     * @param id 粮食基本信息货位变更记录
45
+     */
46
+    public void setId(Integer id) {
47
+        this.id = id;
48
+    }
49
+
50
+    /**
51
+     * 粮食基本信息(粮情专卡)id
52
+     * @return foodbasicinfo_id 粮食基本信息(粮情专卡)id
53
+     */
54
+    public Integer getFoodbasicinfoId() {
55
+        return foodbasicinfoId;
56
+    }
57
+
58
+    /**
59
+     * 粮食基本信息(粮情专卡)id
60
+     * @param foodbasicinfoId 粮食基本信息(粮情专卡)id
61
+     */
62
+    public void setFoodbasicinfoId(Integer foodbasicinfoId) {
63
+        this.foodbasicinfoId = foodbasicinfoId;
64
+    }
65
+
66
+    /**
67
+     * 仓房id
68
+     * @return house_id 仓房id
69
+     */
70
+    public Integer getHouseId() {
71
+        return houseId;
72
+    }
73
+
74
+    /**
75
+     * 仓房id
76
+     * @param houseId 仓房id
77
+     */
78
+    public void setHouseId(Integer houseId) {
79
+        this.houseId = houseId;
80
+    }
81
+
82
+    /**
83
+     * 新仓号Id
84
+     * @return new_house_id 新仓号Id
85
+     */
86
+    public Integer getNewHouseId() {
87
+        return newHouseId;
88
+    }
89
+
90
+    /**
91
+     * 新仓号Id
92
+     * @param newHouseId 新仓号Id
93
+     */
94
+    public void setNewHouseId(Integer newHouseId) {
95
+        this.newHouseId = newHouseId;
96
+    }
97
+
98
+    /**
99
+     * 原货位号
100
+     * @return warehouse_id 原货位号
101
+     */
102
+    public Integer getWarehouseId() {
103
+        return warehouseId;
104
+    }
105
+
106
+    /**
107
+     * 原货位号
108
+     * @param warehouseId 原货位号
109
+     */
110
+    public void setWarehouseId(Integer warehouseId) {
111
+        this.warehouseId = warehouseId;
112
+    }
113
+
114
+    /**
115
+     * 新货位号
116
+     * @return new_warehouse_id 新货位号
117
+     */
118
+    public Integer getNewWarehouseId() {
119
+        return newWarehouseId;
120
+    }
121
+
122
+    /**
123
+     * 新货位号
124
+     * @param newWarehouseId 新货位号
125
+     */
126
+    public void setNewWarehouseId(Integer newWarehouseId) {
127
+        this.newWarehouseId = newWarehouseId;
128
+    }
129
+
130
+    /**
131
+     * 老货位编号
132
+     * @return warehouse_code 老货位编号
133
+     */
134
+    public String getWarehouseCode() {
135
+        return warehouseCode;
136
+    }
137
+
138
+    /**
139
+     * 老货位编号
140
+     * @param warehouseCode 老货位编号
141
+     */
142
+    public void setWarehouseCode(String warehouseCode) {
143
+        this.warehouseCode = warehouseCode == null ? null : warehouseCode.trim();
144
+    }
145
+
146
+    /**
147
+     * 新货位编号
148
+     * @return new_warehouse_code 新货位编号
149
+     */
150
+    public String getNewWarehouseCode() {
151
+        return newWarehouseCode;
152
+    }
153
+
154
+    /**
155
+     * 新货位编号
156
+     * @param newWarehouseCode 新货位编号
157
+     */
158
+    public void setNewWarehouseCode(String newWarehouseCode) {
159
+        this.newWarehouseCode = newWarehouseCode == null ? null : newWarehouseCode.trim();
160
+    }
161
+
162
+    /**
163
+     * 变更时间
164
+     * @return change_time 变更时间
165
+     */
166
+    public Date getChangeTime() {
167
+        return changeTime;
168
+    }
169
+
170
+    /**
171
+     * 变更时间
172
+     * @param changeTime 变更时间
173
+     */
174
+    public void setChangeTime(Date changeTime) {
175
+        this.changeTime = changeTime;
176
+    }
177
+
178
+    /**
179
+     * 备注
180
+     * @return remarks 备注
181
+     */
182
+    public String getRemarks() {
183
+        return remarks;
184
+    }
185
+
186
+    /**
187
+     * 备注
188
+     * @param remarks 备注
189
+     */
190
+    public void setRemarks(String remarks) {
191
+        this.remarks = remarks == null ? null : remarks.trim();
192
+    }
193
+
194
+    /**
195
+     * 组织结构id
196
+     * @return org_id 组织结构id
197
+     */
198
+    public Integer getOrgId() {
199
+        return orgId;
200
+    }
201
+
202
+    /**
203
+     * 组织结构id
204
+     * @param orgId 组织结构id
205
+     */
206
+    public void setOrgId(Integer orgId) {
207
+        this.orgId = orgId;
208
+    }
209
+
210
+    public String getNewWarehouseName() {
211
+        return newWarehouseName;
212
+    }
213
+
214
+    public void setNewWarehouseName(String newWarehouseName) {
215
+        this.newWarehouseName = newWarehouseName;
216
+    }
217
+
218
+    public String getWarehouseName() {
219
+        return warehouseName;
220
+    }
221
+
222
+    public void setWarehouseName(String warehouseName) {
223
+        this.warehouseName = warehouseName;
224
+    }
225
+}

+ 909 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicInfoLocationExample.java

@@ -0,0 +1,909 @@
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 StorageFoodbasicInfoLocationExample {
8
+    /**
9
+     * storage_foodbasicinfolocation
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * storage_foodbasicinfolocation
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * storage_foodbasicinfolocation
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public StorageFoodbasicInfoLocationExample() {
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_foodbasicinfolocation 2018-04-17
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(Integer value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(Integer value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(Integer value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(Integer value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdIn(List<Integer> values) {
161
+            addCriterion("id in", values, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotIn(List<Integer> values) {
166
+            addCriterion("id not in", values, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdBetween(Integer value1, Integer value2) {
171
+            addCriterion("id between", value1, value2, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
176
+            addCriterion("id not between", value1, value2, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andFoodbasicinfoIdIsNull() {
181
+            addCriterion("foodbasicinfo_id is null");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andFoodbasicinfoIdIsNotNull() {
186
+            addCriterion("foodbasicinfo_id is not null");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andFoodbasicinfoIdEqualTo(Integer value) {
191
+            addCriterion("foodbasicinfo_id =", value, "foodbasicinfoId");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andFoodbasicinfoIdNotEqualTo(Integer value) {
196
+            addCriterion("foodbasicinfo_id <>", value, "foodbasicinfoId");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andFoodbasicinfoIdGreaterThan(Integer value) {
201
+            addCriterion("foodbasicinfo_id >", value, "foodbasicinfoId");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andFoodbasicinfoIdGreaterThanOrEqualTo(Integer value) {
206
+            addCriterion("foodbasicinfo_id >=", value, "foodbasicinfoId");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andFoodbasicinfoIdLessThan(Integer value) {
211
+            addCriterion("foodbasicinfo_id <", value, "foodbasicinfoId");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andFoodbasicinfoIdLessThanOrEqualTo(Integer value) {
216
+            addCriterion("foodbasicinfo_id <=", value, "foodbasicinfoId");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andFoodbasicinfoIdIn(List<Integer> values) {
221
+            addCriterion("foodbasicinfo_id in", values, "foodbasicinfoId");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andFoodbasicinfoIdNotIn(List<Integer> values) {
226
+            addCriterion("foodbasicinfo_id not in", values, "foodbasicinfoId");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andFoodbasicinfoIdBetween(Integer value1, Integer value2) {
231
+            addCriterion("foodbasicinfo_id between", value1, value2, "foodbasicinfoId");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andFoodbasicinfoIdNotBetween(Integer value1, Integer value2) {
236
+            addCriterion("foodbasicinfo_id not between", value1, value2, "foodbasicinfoId");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andHouseIdIsNull() {
241
+            addCriterion("house_id is null");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andHouseIdIsNotNull() {
246
+            addCriterion("house_id is not null");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andHouseIdEqualTo(Integer value) {
251
+            addCriterion("house_id =", value, "houseId");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andHouseIdNotEqualTo(Integer value) {
256
+            addCriterion("house_id <>", value, "houseId");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andHouseIdGreaterThan(Integer value) {
261
+            addCriterion("house_id >", value, "houseId");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andHouseIdGreaterThanOrEqualTo(Integer value) {
266
+            addCriterion("house_id >=", value, "houseId");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andHouseIdLessThan(Integer value) {
271
+            addCriterion("house_id <", value, "houseId");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andHouseIdLessThanOrEqualTo(Integer value) {
276
+            addCriterion("house_id <=", value, "houseId");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andHouseIdIn(List<Integer> values) {
281
+            addCriterion("house_id in", values, "houseId");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andHouseIdNotIn(List<Integer> values) {
286
+            addCriterion("house_id not in", values, "houseId");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andHouseIdBetween(Integer value1, Integer value2) {
291
+            addCriterion("house_id between", value1, value2, "houseId");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andHouseIdNotBetween(Integer value1, Integer value2) {
296
+            addCriterion("house_id not between", value1, value2, "houseId");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andNewHouseIdIsNull() {
301
+            addCriterion("new_house_id is null");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andNewHouseIdIsNotNull() {
306
+            addCriterion("new_house_id is not null");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andNewHouseIdEqualTo(Integer value) {
311
+            addCriterion("new_house_id =", value, "newHouseId");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andNewHouseIdNotEqualTo(Integer value) {
316
+            addCriterion("new_house_id <>", value, "newHouseId");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andNewHouseIdGreaterThan(Integer value) {
321
+            addCriterion("new_house_id >", value, "newHouseId");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andNewHouseIdGreaterThanOrEqualTo(Integer value) {
326
+            addCriterion("new_house_id >=", value, "newHouseId");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andNewHouseIdLessThan(Integer value) {
331
+            addCriterion("new_house_id <", value, "newHouseId");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andNewHouseIdLessThanOrEqualTo(Integer value) {
336
+            addCriterion("new_house_id <=", value, "newHouseId");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andNewHouseIdIn(List<Integer> values) {
341
+            addCriterion("new_house_id in", values, "newHouseId");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andNewHouseIdNotIn(List<Integer> values) {
346
+            addCriterion("new_house_id not in", values, "newHouseId");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andNewHouseIdBetween(Integer value1, Integer value2) {
351
+            addCriterion("new_house_id between", value1, value2, "newHouseId");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andNewHouseIdNotBetween(Integer value1, Integer value2) {
356
+            addCriterion("new_house_id not between", value1, value2, "newHouseId");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andWarehouseIdIsNull() {
361
+            addCriterion("warehouse_id is null");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andWarehouseIdIsNotNull() {
366
+            addCriterion("warehouse_id is not null");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andWarehouseIdEqualTo(Integer value) {
371
+            addCriterion("warehouse_id =", value, "warehouseId");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andWarehouseIdNotEqualTo(Integer value) {
376
+            addCriterion("warehouse_id <>", value, "warehouseId");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andWarehouseIdGreaterThan(Integer value) {
381
+            addCriterion("warehouse_id >", value, "warehouseId");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andWarehouseIdGreaterThanOrEqualTo(Integer value) {
386
+            addCriterion("warehouse_id >=", value, "warehouseId");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andWarehouseIdLessThan(Integer value) {
391
+            addCriterion("warehouse_id <", value, "warehouseId");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andWarehouseIdLessThanOrEqualTo(Integer value) {
396
+            addCriterion("warehouse_id <=", value, "warehouseId");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andWarehouseIdIn(List<Integer> values) {
401
+            addCriterion("warehouse_id in", values, "warehouseId");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andWarehouseIdNotIn(List<Integer> values) {
406
+            addCriterion("warehouse_id not in", values, "warehouseId");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andWarehouseIdBetween(Integer value1, Integer value2) {
411
+            addCriterion("warehouse_id between", value1, value2, "warehouseId");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andWarehouseIdNotBetween(Integer value1, Integer value2) {
416
+            addCriterion("warehouse_id not between", value1, value2, "warehouseId");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andNewWarehouseIdIsNull() {
421
+            addCriterion("new_warehouse_id is null");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andNewWarehouseIdIsNotNull() {
426
+            addCriterion("new_warehouse_id is not null");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andNewWarehouseIdEqualTo(Integer value) {
431
+            addCriterion("new_warehouse_id =", value, "newWarehouseId");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andNewWarehouseIdNotEqualTo(Integer value) {
436
+            addCriterion("new_warehouse_id <>", value, "newWarehouseId");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andNewWarehouseIdGreaterThan(Integer value) {
441
+            addCriterion("new_warehouse_id >", value, "newWarehouseId");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andNewWarehouseIdGreaterThanOrEqualTo(Integer value) {
446
+            addCriterion("new_warehouse_id >=", value, "newWarehouseId");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andNewWarehouseIdLessThan(Integer value) {
451
+            addCriterion("new_warehouse_id <", value, "newWarehouseId");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andNewWarehouseIdLessThanOrEqualTo(Integer value) {
456
+            addCriterion("new_warehouse_id <=", value, "newWarehouseId");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andNewWarehouseIdIn(List<Integer> values) {
461
+            addCriterion("new_warehouse_id in", values, "newWarehouseId");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andNewWarehouseIdNotIn(List<Integer> values) {
466
+            addCriterion("new_warehouse_id not in", values, "newWarehouseId");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andNewWarehouseIdBetween(Integer value1, Integer value2) {
471
+            addCriterion("new_warehouse_id between", value1, value2, "newWarehouseId");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andNewWarehouseIdNotBetween(Integer value1, Integer value2) {
476
+            addCriterion("new_warehouse_id not between", value1, value2, "newWarehouseId");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andWarehouseCodeIsNull() {
481
+            addCriterion("warehouse_code is null");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andWarehouseCodeIsNotNull() {
486
+            addCriterion("warehouse_code is not null");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andWarehouseCodeEqualTo(String value) {
491
+            addCriterion("warehouse_code =", value, "warehouseCode");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andWarehouseCodeNotEqualTo(String value) {
496
+            addCriterion("warehouse_code <>", value, "warehouseCode");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andWarehouseCodeGreaterThan(String value) {
501
+            addCriterion("warehouse_code >", value, "warehouseCode");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andWarehouseCodeGreaterThanOrEqualTo(String value) {
506
+            addCriterion("warehouse_code >=", value, "warehouseCode");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andWarehouseCodeLessThan(String value) {
511
+            addCriterion("warehouse_code <", value, "warehouseCode");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andWarehouseCodeLessThanOrEqualTo(String value) {
516
+            addCriterion("warehouse_code <=", value, "warehouseCode");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andWarehouseCodeLike(String value) {
521
+            addCriterion("warehouse_code like", value, "warehouseCode");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andWarehouseCodeNotLike(String value) {
526
+            addCriterion("warehouse_code not like", value, "warehouseCode");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andWarehouseCodeIn(List<String> values) {
531
+            addCriterion("warehouse_code in", values, "warehouseCode");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andWarehouseCodeNotIn(List<String> values) {
536
+            addCriterion("warehouse_code not in", values, "warehouseCode");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andWarehouseCodeBetween(String value1, String value2) {
541
+            addCriterion("warehouse_code between", value1, value2, "warehouseCode");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andWarehouseCodeNotBetween(String value1, String value2) {
546
+            addCriterion("warehouse_code not between", value1, value2, "warehouseCode");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andNewWarehouseCodeIsNull() {
551
+            addCriterion("new_warehouse_code is null");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andNewWarehouseCodeIsNotNull() {
556
+            addCriterion("new_warehouse_code is not null");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andNewWarehouseCodeEqualTo(String value) {
561
+            addCriterion("new_warehouse_code =", value, "newWarehouseCode");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andNewWarehouseCodeNotEqualTo(String value) {
566
+            addCriterion("new_warehouse_code <>", value, "newWarehouseCode");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andNewWarehouseCodeGreaterThan(String value) {
571
+            addCriterion("new_warehouse_code >", value, "newWarehouseCode");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andNewWarehouseCodeGreaterThanOrEqualTo(String value) {
576
+            addCriterion("new_warehouse_code >=", value, "newWarehouseCode");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andNewWarehouseCodeLessThan(String value) {
581
+            addCriterion("new_warehouse_code <", value, "newWarehouseCode");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andNewWarehouseCodeLessThanOrEqualTo(String value) {
586
+            addCriterion("new_warehouse_code <=", value, "newWarehouseCode");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andNewWarehouseCodeLike(String value) {
591
+            addCriterion("new_warehouse_code like", value, "newWarehouseCode");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andNewWarehouseCodeNotLike(String value) {
596
+            addCriterion("new_warehouse_code not like", value, "newWarehouseCode");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andNewWarehouseCodeIn(List<String> values) {
601
+            addCriterion("new_warehouse_code in", values, "newWarehouseCode");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andNewWarehouseCodeNotIn(List<String> values) {
606
+            addCriterion("new_warehouse_code not in", values, "newWarehouseCode");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andNewWarehouseCodeBetween(String value1, String value2) {
611
+            addCriterion("new_warehouse_code between", value1, value2, "newWarehouseCode");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andNewWarehouseCodeNotBetween(String value1, String value2) {
616
+            addCriterion("new_warehouse_code not between", value1, value2, "newWarehouseCode");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andChangeTimeIsNull() {
621
+            addCriterion("change_time is null");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andChangeTimeIsNotNull() {
626
+            addCriterion("change_time is not null");
627
+            return (Criteria) this;
628
+        }
629
+
630
+        public Criteria andChangeTimeEqualTo(Date value) {
631
+            addCriterion("change_time =", value, "changeTime");
632
+            return (Criteria) this;
633
+        }
634
+
635
+        public Criteria andChangeTimeNotEqualTo(Date value) {
636
+            addCriterion("change_time <>", value, "changeTime");
637
+            return (Criteria) this;
638
+        }
639
+
640
+        public Criteria andChangeTimeGreaterThan(Date value) {
641
+            addCriterion("change_time >", value, "changeTime");
642
+            return (Criteria) this;
643
+        }
644
+
645
+        public Criteria andChangeTimeGreaterThanOrEqualTo(Date value) {
646
+            addCriterion("change_time >=", value, "changeTime");
647
+            return (Criteria) this;
648
+        }
649
+
650
+        public Criteria andChangeTimeLessThan(Date value) {
651
+            addCriterion("change_time <", value, "changeTime");
652
+            return (Criteria) this;
653
+        }
654
+
655
+        public Criteria andChangeTimeLessThanOrEqualTo(Date value) {
656
+            addCriterion("change_time <=", value, "changeTime");
657
+            return (Criteria) this;
658
+        }
659
+
660
+        public Criteria andChangeTimeIn(List<Date> values) {
661
+            addCriterion("change_time in", values, "changeTime");
662
+            return (Criteria) this;
663
+        }
664
+
665
+        public Criteria andChangeTimeNotIn(List<Date> values) {
666
+            addCriterion("change_time not in", values, "changeTime");
667
+            return (Criteria) this;
668
+        }
669
+
670
+        public Criteria andChangeTimeBetween(Date value1, Date value2) {
671
+            addCriterion("change_time between", value1, value2, "changeTime");
672
+            return (Criteria) this;
673
+        }
674
+
675
+        public Criteria andChangeTimeNotBetween(Date value1, Date value2) {
676
+            addCriterion("change_time not between", value1, value2, "changeTime");
677
+            return (Criteria) this;
678
+        }
679
+
680
+        public Criteria andRemarksIsNull() {
681
+            addCriterion("remarks is null");
682
+            return (Criteria) this;
683
+        }
684
+
685
+        public Criteria andRemarksIsNotNull() {
686
+            addCriterion("remarks is not null");
687
+            return (Criteria) this;
688
+        }
689
+
690
+        public Criteria andRemarksEqualTo(String value) {
691
+            addCriterion("remarks =", value, "remarks");
692
+            return (Criteria) this;
693
+        }
694
+
695
+        public Criteria andRemarksNotEqualTo(String value) {
696
+            addCriterion("remarks <>", value, "remarks");
697
+            return (Criteria) this;
698
+        }
699
+
700
+        public Criteria andRemarksGreaterThan(String value) {
701
+            addCriterion("remarks >", value, "remarks");
702
+            return (Criteria) this;
703
+        }
704
+
705
+        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
706
+            addCriterion("remarks >=", value, "remarks");
707
+            return (Criteria) this;
708
+        }
709
+
710
+        public Criteria andRemarksLessThan(String value) {
711
+            addCriterion("remarks <", value, "remarks");
712
+            return (Criteria) this;
713
+        }
714
+
715
+        public Criteria andRemarksLessThanOrEqualTo(String value) {
716
+            addCriterion("remarks <=", value, "remarks");
717
+            return (Criteria) this;
718
+        }
719
+
720
+        public Criteria andRemarksLike(String value) {
721
+            addCriterion("remarks like", value, "remarks");
722
+            return (Criteria) this;
723
+        }
724
+
725
+        public Criteria andRemarksNotLike(String value) {
726
+            addCriterion("remarks not like", value, "remarks");
727
+            return (Criteria) this;
728
+        }
729
+
730
+        public Criteria andRemarksIn(List<String> values) {
731
+            addCriterion("remarks in", values, "remarks");
732
+            return (Criteria) this;
733
+        }
734
+
735
+        public Criteria andRemarksNotIn(List<String> values) {
736
+            addCriterion("remarks not in", values, "remarks");
737
+            return (Criteria) this;
738
+        }
739
+
740
+        public Criteria andRemarksBetween(String value1, String value2) {
741
+            addCriterion("remarks between", value1, value2, "remarks");
742
+            return (Criteria) this;
743
+        }
744
+
745
+        public Criteria andRemarksNotBetween(String value1, String value2) {
746
+            addCriterion("remarks not between", value1, value2, "remarks");
747
+            return (Criteria) this;
748
+        }
749
+
750
+        public Criteria andOrgIdIsNull() {
751
+            addCriterion("org_id is null");
752
+            return (Criteria) this;
753
+        }
754
+
755
+        public Criteria andOrgIdIsNotNull() {
756
+            addCriterion("org_id is not null");
757
+            return (Criteria) this;
758
+        }
759
+
760
+        public Criteria andOrgIdEqualTo(Integer value) {
761
+            addCriterion("org_id =", value, "orgId");
762
+            return (Criteria) this;
763
+        }
764
+
765
+        public Criteria andOrgIdNotEqualTo(Integer value) {
766
+            addCriterion("org_id <>", value, "orgId");
767
+            return (Criteria) this;
768
+        }
769
+
770
+        public Criteria andOrgIdGreaterThan(Integer value) {
771
+            addCriterion("org_id >", value, "orgId");
772
+            return (Criteria) this;
773
+        }
774
+
775
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
776
+            addCriterion("org_id >=", value, "orgId");
777
+            return (Criteria) this;
778
+        }
779
+
780
+        public Criteria andOrgIdLessThan(Integer value) {
781
+            addCriterion("org_id <", value, "orgId");
782
+            return (Criteria) this;
783
+        }
784
+
785
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
786
+            addCriterion("org_id <=", value, "orgId");
787
+            return (Criteria) this;
788
+        }
789
+
790
+        public Criteria andOrgIdIn(List<Integer> values) {
791
+            addCriterion("org_id in", values, "orgId");
792
+            return (Criteria) this;
793
+        }
794
+
795
+        public Criteria andOrgIdNotIn(List<Integer> values) {
796
+            addCriterion("org_id not in", values, "orgId");
797
+            return (Criteria) this;
798
+        }
799
+
800
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
801
+            addCriterion("org_id between", value1, value2, "orgId");
802
+            return (Criteria) this;
803
+        }
804
+
805
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
806
+            addCriterion("org_id not between", value1, value2, "orgId");
807
+            return (Criteria) this;
808
+        }
809
+    }
810
+
811
+    /**
812
+     * storage_foodbasicinfolocation
813
+     */
814
+    public static class Criteria extends GeneratedCriteria {
815
+
816
+        protected Criteria() {
817
+            super();
818
+        }
819
+    }
820
+
821
+    /**
822
+     * storage_foodbasicinfolocation 2018-04-17
823
+     */
824
+    public static class Criterion {
825
+        private String condition;
826
+
827
+        private Object value;
828
+
829
+        private Object secondValue;
830
+
831
+        private boolean noValue;
832
+
833
+        private boolean singleValue;
834
+
835
+        private boolean betweenValue;
836
+
837
+        private boolean listValue;
838
+
839
+        private String typeHandler;
840
+
841
+        public String getCondition() {
842
+            return condition;
843
+        }
844
+
845
+        public Object getValue() {
846
+            return value;
847
+        }
848
+
849
+        public Object getSecondValue() {
850
+            return secondValue;
851
+        }
852
+
853
+        public boolean isNoValue() {
854
+            return noValue;
855
+        }
856
+
857
+        public boolean isSingleValue() {
858
+            return singleValue;
859
+        }
860
+
861
+        public boolean isBetweenValue() {
862
+            return betweenValue;
863
+        }
864
+
865
+        public boolean isListValue() {
866
+            return listValue;
867
+        }
868
+
869
+        public String getTypeHandler() {
870
+            return typeHandler;
871
+        }
872
+
873
+        protected Criterion(String condition) {
874
+            super();
875
+            this.condition = condition;
876
+            this.typeHandler = null;
877
+            this.noValue = true;
878
+        }
879
+
880
+        protected Criterion(String condition, Object value, String typeHandler) {
881
+            super();
882
+            this.condition = condition;
883
+            this.value = value;
884
+            this.typeHandler = typeHandler;
885
+            if (value instanceof List<?>) {
886
+                this.listValue = true;
887
+            } else {
888
+                this.singleValue = true;
889
+            }
890
+        }
891
+
892
+        protected Criterion(String condition, Object value) {
893
+            this(condition, value, null);
894
+        }
895
+
896
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
897
+            super();
898
+            this.condition = condition;
899
+            this.value = value;
900
+            this.secondValue = secondValue;
901
+            this.typeHandler = typeHandler;
902
+            this.betweenValue = true;
903
+        }
904
+
905
+        protected Criterion(String condition, Object value, Object secondValue) {
906
+            this(condition, value, secondValue, null);
907
+        }
908
+    }
909
+}

+ 902 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicinfo.java

@@ -0,0 +1,902 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.math.BigDecimal;
4
+import java.util.Date;
5
+
6
+public class StorageFoodbasicinfo {
7
+    private Integer id;
8
+
9
+    private Integer houseId;
10
+
11
+    private Integer warehouseId;
12
+
13
+    private String recordUnite;
14
+
15
+    private String keepUnite;
16
+
17
+    private String locationNum;
18
+
19
+    private String quality;
20
+
21
+    private Integer subType;
22
+
23
+    private Integer subTypeDetailed;
24
+
25
+    private String htype;
26
+
27
+    private Double number;
28
+
29
+    private Double standNumber;
30
+
31
+    private Date inputYear;
32
+
33
+    private Integer growYear;
34
+
35
+    private String keepMethod;
36
+
37
+    private String level;
38
+
39
+    private String weight;
40
+
41
+    private String impurity;
42
+
43
+    private String water;
44
+
45
+    private String unsound;
46
+
47
+    private String recorder;
48
+
49
+    private String houseType;
50
+
51
+    private BigDecimal designHouseCapacity;
52
+
53
+    private String validHouseCapacity;
54
+
55
+    private String price;
56
+
57
+    private String placeOfOrigin;
58
+
59
+    private String storageLocation;
60
+
61
+    private String disperseCapacity;
62
+
63
+    private BigDecimal length;
64
+
65
+    private BigDecimal width;
66
+
67
+    private BigDecimal height;
68
+
69
+    private String packNum;
70
+
71
+    private String packAverageWeight;
72
+
73
+    private String keeperIds;
74
+
75
+    private String glutenWaterCount;
76
+
77
+    private String eatScore;
78
+
79
+    private String unitHead;
80
+
81
+    private String fatIndex;
82
+
83
+    private String peroxideValue;
84
+
85
+    private String refractionIndex;
86
+
87
+    private String residualSolvent;
88
+
89
+    private String fillingTime;
90
+
91
+    private BigDecimal lineHeight;
92
+
93
+    private String sealStatus;
94
+
95
+    private String authCode;
96
+
97
+    private Integer orgId;
98
+
99
+    private Integer historyStatus;
100
+
101
+    //业务字段
102
+    private String storehouseName;
103
+
104
+    private String wareHouseName;
105
+
106
+    private String keeperNames;
107
+
108
+    private String storehouseCode;
109
+    private String warehouseCode;
110
+
111
+    /**
112
+     * 粮食基本信息(粮情专卡)
113
+     * @return id 粮食基本信息(粮情专卡)
114
+     */
115
+    public Integer getId() {
116
+        return id;
117
+    }
118
+
119
+    /**
120
+     * 粮食基本信息(粮情专卡)
121
+     * @param id 粮食基本信息(粮情专卡)
122
+     */
123
+    public void setId(Integer id) {
124
+        this.id = id;
125
+    }
126
+
127
+    /**
128
+     * 仓房id
129
+     * @return house_id 仓房id
130
+     */
131
+    public Integer getHouseId() {
132
+        return houseId;
133
+    }
134
+
135
+    /**
136
+     * 仓房id
137
+     * @param houseId 仓房id
138
+     */
139
+    public void setHouseId(Integer houseId) {
140
+        this.houseId = houseId;
141
+    }
142
+
143
+    /**
144
+     * 货位号id
145
+     * @return warehouse_id 货位号id
146
+     */
147
+    public Integer getWarehouseId() {
148
+        return warehouseId;
149
+    }
150
+
151
+    /**
152
+     * 货位号id
153
+     * @param warehouseId 货位号id
154
+     */
155
+    public void setWarehouseId(Integer warehouseId) {
156
+        this.warehouseId = warehouseId;
157
+    }
158
+
159
+    /**
160
+     * 填卡单位
161
+     * @return record_unite 填卡单位
162
+     */
163
+    public String getRecordUnite() {
164
+        return recordUnite;
165
+    }
166
+
167
+    /**
168
+     * 填卡单位
169
+     * @param recordUnite 填卡单位
170
+     */
171
+    public void setRecordUnite(String recordUnite) {
172
+        this.recordUnite = recordUnite == null ? null : recordUnite.trim();
173
+    }
174
+
175
+    /**
176
+     * 保管单位
177
+     * @return keep_unite 保管单位
178
+     */
179
+    public String getKeepUnite() {
180
+        return keepUnite;
181
+    }
182
+
183
+    /**
184
+     * 保管单位
185
+     * @param keepUnite 保管单位
186
+     */
187
+    public void setKeepUnite(String keepUnite) {
188
+        this.keepUnite = keepUnite == null ? null : keepUnite.trim();
189
+    }
190
+
191
+    /**
192
+     * 货位编号
193
+     * @return location_num 货位编号
194
+     */
195
+    public String getLocationNum() {
196
+        return locationNum;
197
+    }
198
+
199
+    /**
200
+     * 货位编号
201
+     * @param locationNum 货位编号
202
+     */
203
+    public void setLocationNum(String locationNum) {
204
+        this.locationNum = locationNum == null ? null : locationNum.trim();
205
+    }
206
+
207
+    /**
208
+     * 储粮性质
209
+     * @return quality 储粮性质
210
+     */
211
+    public String getQuality() {
212
+        return quality;
213
+    }
214
+
215
+    /**
216
+     * 储粮性质
217
+     * @param quality 储粮性质
218
+     */
219
+    public void setQuality(String quality) {
220
+        this.quality = quality == null ? null : quality.trim();
221
+    }
222
+
223
+    /**
224
+     * 品种
225
+     * @return sub_type 品种
226
+     */
227
+    public Integer getSubType() {
228
+        return subType;
229
+    }
230
+
231
+    /**
232
+     * 品种
233
+     * @param subType 品种
234
+     */
235
+    public void setSubType(Integer subType) {
236
+        this.subType = subType;
237
+    }
238
+
239
+    /**
240
+     * 明细品种
241
+     * @return sub_type_detailed 明细品种
242
+     */
243
+    public Integer getSubTypeDetailed() {
244
+        return subTypeDetailed;
245
+    }
246
+
247
+    /**
248
+     * 明细品种
249
+     * @param subTypeDetailed 明细品种
250
+     */
251
+    public void setSubTypeDetailed(Integer subTypeDetailed) {
252
+        this.subTypeDetailed = subTypeDetailed;
253
+    }
254
+
255
+    /**
256
+     * 储存状态 0:在储 1:历史
257
+     * @return htype 储存状态 0:在储 1:历史
258
+     */
259
+    public String getHtype() {
260
+        return htype;
261
+    }
262
+
263
+    /**
264
+     * 储存状态 0:在储 1:历史
265
+     * @param htype 储存状态 0:在储 1:历史
266
+     */
267
+    public void setHtype(String htype) {
268
+        this.htype = htype == null ? null : htype.trim();
269
+    }
270
+
271
+    /**
272
+     * 实际数量(kg)
273
+     * @return number 实际数量(kg)
274
+     */
275
+    public Double getNumber() {
276
+        return number;
277
+    }
278
+
279
+    /**
280
+     * 实际数量(kg)
281
+     * @param number 实际数量(kg)
282
+     */
283
+    public void setNumber(Double number) {
284
+        this.number = number;
285
+    }
286
+
287
+    /**
288
+     * 折合标准数量(吨)
289
+     * @return stand_number 折合标准数量(吨)
290
+     */
291
+    public Double getStandNumber() {
292
+        return standNumber;
293
+    }
294
+
295
+    /**
296
+     * 折合标准数量(吨)
297
+     * @param standNumber 折合标准数量(吨)
298
+     */
299
+    public void setStandNumber(Double standNumber) {
300
+        this.standNumber = standNumber;
301
+    }
302
+
303
+    /**
304
+     * 入仓时间
305
+     * @return input_year 入仓时间
306
+     */
307
+    public Date getInputYear() {
308
+        return inputYear;
309
+    }
310
+
311
+    /**
312
+     * 入仓时间
313
+     * @param inputYear 入仓时间
314
+     */
315
+    public void setInputYear(Date inputYear) {
316
+        this.inputYear = inputYear;
317
+    }
318
+
319
+    /**
320
+     * 收货年度
321
+     * @return grow_year 收货年度
322
+     */
323
+    public Integer getGrowYear() {
324
+        return growYear;
325
+    }
326
+
327
+    /**
328
+     * 收货年度
329
+     * @param growYear 收货年度
330
+     */
331
+    public void setGrowYear(Integer growYear) {
332
+        this.growYear = growYear;
333
+    }
334
+
335
+    /**
336
+     * 保管方式
337
+     * @return keep_method 保管方式
338
+     */
339
+    public String getKeepMethod() {
340
+        return keepMethod;
341
+    }
342
+
343
+    /**
344
+     * 保管方式
345
+     * @param keepMethod 保管方式
346
+     */
347
+    public void setKeepMethod(String keepMethod) {
348
+        this.keepMethod = keepMethod == null ? null : keepMethod.trim();
349
+    }
350
+
351
+    /**
352
+     * 等级
353
+     * @return level 等级
354
+     */
355
+    public String getLevel() {
356
+        return level;
357
+    }
358
+
359
+    /**
360
+     * 等级
361
+     * @param level 等级
362
+     */
363
+    public void setLevel(String level) {
364
+        this.level = level == null ? null : level.trim();
365
+    }
366
+
367
+    /**
368
+     * 容重(出糙率%或纯粮率%)
369
+     * @return weight 容重(出糙率%或纯粮率%)
370
+     */
371
+    public String getWeight() {
372
+        return weight;
373
+    }
374
+
375
+    /**
376
+     * 容重(出糙率%或纯粮率%)
377
+     * @param weight 容重(出糙率%或纯粮率%)
378
+     */
379
+    public void setWeight(String weight) {
380
+        this.weight = weight == null ? null : weight.trim();
381
+    }
382
+
383
+    /**
384
+     * 杂质(%)
385
+     * @return impurity 杂质(%)
386
+     */
387
+    public String getImpurity() {
388
+        return impurity;
389
+    }
390
+
391
+    /**
392
+     * 杂质(%)
393
+     * @param impurity 杂质(%)
394
+     */
395
+    public void setImpurity(String impurity) {
396
+        this.impurity = impurity == null ? null : impurity.trim();
397
+    }
398
+
399
+    /**
400
+     * 入仓水分(%)
401
+     * @return water 入仓水分(%)
402
+     */
403
+    public String getWater() {
404
+        return water;
405
+    }
406
+
407
+    /**
408
+     * 入仓水分(%)
409
+     * @param water 入仓水分(%)
410
+     */
411
+    public void setWater(String water) {
412
+        this.water = water == null ? null : water.trim();
413
+    }
414
+
415
+    /**
416
+     * 不完善粒(整精米粒%)
417
+     * @return unsound 不完善粒(整精米粒%)
418
+     */
419
+    public String getUnsound() {
420
+        return unsound;
421
+    }
422
+
423
+    /**
424
+     * 不完善粒(整精米粒%)
425
+     * @param unsound 不完善粒(整精米粒%)
426
+     */
427
+    public void setUnsound(String unsound) {
428
+        this.unsound = unsound == null ? null : unsound.trim();
429
+    }
430
+
431
+    /**
432
+     * 建卡人
433
+     * @return recorder 建卡人
434
+     */
435
+    public String getRecorder() {
436
+        return recorder;
437
+    }
438
+
439
+    /**
440
+     * 建卡人
441
+     * @param recorder 建卡人
442
+     */
443
+    public void setRecorder(String recorder) {
444
+        this.recorder = recorder == null ? null : recorder.trim();
445
+    }
446
+
447
+    /**
448
+     * 仓型
449
+     * @return house_type 仓型
450
+     */
451
+    public String getHouseType() {
452
+        return houseType;
453
+    }
454
+
455
+    /**
456
+     * 仓型
457
+     * @param houseType 仓型
458
+     */
459
+    public void setHouseType(String houseType) {
460
+        this.houseType = houseType == null ? null : houseType.trim();
461
+    }
462
+
463
+    /**
464
+     * 设计仓容
465
+     * @return design_house_capacity 设计仓容
466
+     */
467
+    public BigDecimal getDesignHouseCapacity() {
468
+        return designHouseCapacity;
469
+    }
470
+
471
+    /**
472
+     * 设计仓容
473
+     * @param designHouseCapacity 设计仓容
474
+     */
475
+    public void setDesignHouseCapacity(BigDecimal designHouseCapacity) {
476
+        this.designHouseCapacity = designHouseCapacity;
477
+    }
478
+
479
+    /**
480
+     * 有效仓容
481
+     * @return valid_house_capacity 有效仓容
482
+     */
483
+    public String getValidHouseCapacity() {
484
+        return validHouseCapacity;
485
+    }
486
+
487
+    /**
488
+     * 有效仓容
489
+     * @param validHouseCapacity 有效仓容
490
+     */
491
+    public void setValidHouseCapacity(String validHouseCapacity) {
492
+        this.validHouseCapacity = validHouseCapacity == null ? null : validHouseCapacity.trim();
493
+    }
494
+
495
+    /**
496
+     * 价位(元/Kg)
497
+     * @return price 价位(元/Kg)
498
+     */
499
+    public String getPrice() {
500
+        return price;
501
+    }
502
+
503
+    /**
504
+     * 价位(元/Kg)
505
+     * @param price 价位(元/Kg)
506
+     */
507
+    public void setPrice(String price) {
508
+        this.price = price == null ? null : price.trim();
509
+    }
510
+
511
+    /**
512
+     * 产地
513
+     * @return place_of_origin 产地
514
+     */
515
+    public String getPlaceOfOrigin() {
516
+        return placeOfOrigin;
517
+    }
518
+
519
+    /**
520
+     * 产地
521
+     * @param placeOfOrigin 产地
522
+     */
523
+    public void setPlaceOfOrigin(String placeOfOrigin) {
524
+        this.placeOfOrigin = placeOfOrigin == null ? null : placeOfOrigin.trim();
525
+    }
526
+
527
+    /**
528
+     * 存储地点
529
+     * @return storage_location 存储地点
530
+     */
531
+    public String getStorageLocation() {
532
+        return storageLocation;
533
+    }
534
+
535
+    /**
536
+     * 存储地点
537
+     * @param storageLocation 存储地点
538
+     */
539
+    public void setStorageLocation(String storageLocation) {
540
+        this.storageLocation = storageLocation == null ? null : storageLocation.trim();
541
+    }
542
+
543
+    /**
544
+     * 散存粮体积
545
+     * @return disperse_capacity 散存粮体积
546
+     */
547
+    public String getDisperseCapacity() {
548
+        return disperseCapacity;
549
+    }
550
+
551
+    /**
552
+     * 散存粮体积
553
+     * @param disperseCapacity 散存粮体积
554
+     */
555
+    public void setDisperseCapacity(String disperseCapacity) {
556
+        this.disperseCapacity = disperseCapacity == null ? null : disperseCapacity.trim();
557
+    }
558
+
559
+    /**
560
+     * 长(米)
561
+     * @return length 长(米)
562
+     */
563
+    public BigDecimal getLength() {
564
+        return length;
565
+    }
566
+
567
+    /**
568
+     * 长(米)
569
+     * @param length 长(米)
570
+     */
571
+    public void setLength(BigDecimal length) {
572
+        this.length = length;
573
+    }
574
+
575
+    /**
576
+     * 宽(直径米)
577
+     * @return width 宽(直径米)
578
+     */
579
+    public BigDecimal getWidth() {
580
+        return width;
581
+    }
582
+
583
+    /**
584
+     * 宽(直径米)
585
+     * @param width 宽(直径米)
586
+     */
587
+    public void setWidth(BigDecimal width) {
588
+        this.width = width;
589
+    }
590
+
591
+    /**
592
+     * 高(米)
593
+     * @return height 高(米)
594
+     */
595
+    public BigDecimal getHeight() {
596
+        return height;
597
+    }
598
+
599
+    /**
600
+     * 高(米)
601
+     * @param height 高(米)
602
+     */
603
+    public void setHeight(BigDecimal height) {
604
+        this.height = height;
605
+    }
606
+
607
+    /**
608
+     * 包存粮包数
609
+     * @return pack_num 包存粮包数
610
+     */
611
+    public String getPackNum() {
612
+        return packNum;
613
+    }
614
+
615
+    /**
616
+     * 包存粮包数
617
+     * @param packNum 包存粮包数
618
+     */
619
+    public void setPackNum(String packNum) {
620
+        this.packNum = packNum == null ? null : packNum.trim();
621
+    }
622
+
623
+    /**
624
+     * 平均包重(公斤)
625
+     * @return pack_average_weight 平均包重(公斤)
626
+     */
627
+    public String getPackAverageWeight() {
628
+        return packAverageWeight;
629
+    }
630
+
631
+    /**
632
+     * 平均包重(公斤)
633
+     * @param packAverageWeight 平均包重(公斤)
634
+     */
635
+    public void setPackAverageWeight(String packAverageWeight) {
636
+        this.packAverageWeight = packAverageWeight == null ? null : packAverageWeight.trim();
637
+    }
638
+
639
+    /**
640
+     * 保管员ids(可能存在多个保管员)
641
+     * @return keeper_ids 保管员ids(可能存在多个保管员)
642
+     */
643
+    public String getKeeperIds() {
644
+        return keeperIds;
645
+    }
646
+
647
+    /**
648
+     * 保管员ids(可能存在多个保管员)
649
+     * @param keeperIds 保管员ids(可能存在多个保管员)
650
+     */
651
+    public void setKeeperIds(String keeperIds) {
652
+        this.keeperIds = keeperIds == null ? null : keeperIds.trim();
653
+    }
654
+
655
+    /**
656
+     * 面筋吸水量
657
+     * @return gluten_water_count 面筋吸水量
658
+     */
659
+    public String getGlutenWaterCount() {
660
+        return glutenWaterCount;
661
+    }
662
+
663
+    /**
664
+     * 面筋吸水量
665
+     * @param glutenWaterCount 面筋吸水量
666
+     */
667
+    public void setGlutenWaterCount(String glutenWaterCount) {
668
+        this.glutenWaterCount = glutenWaterCount == null ? null : glutenWaterCount.trim();
669
+    }
670
+
671
+    /**
672
+     * 品尝评分值
673
+     * @return eat_score 品尝评分值
674
+     */
675
+    public String getEatScore() {
676
+        return eatScore;
677
+    }
678
+
679
+    /**
680
+     * 品尝评分值
681
+     * @param eatScore 品尝评分值
682
+     */
683
+    public void setEatScore(String eatScore) {
684
+        this.eatScore = eatScore == null ? null : eatScore.trim();
685
+    }
686
+
687
+    /**
688
+     * 单位负责人
689
+     * @return unit_head 单位负责人
690
+     */
691
+    public String getUnitHead() {
692
+        return unitHead;
693
+    }
694
+
695
+    /**
696
+     * 单位负责人
697
+     * @param unitHead 单位负责人
698
+     */
699
+    public void setUnitHead(String unitHead) {
700
+        this.unitHead = unitHead == null ? null : unitHead.trim();
701
+    }
702
+
703
+    /**
704
+     * 酸值
705
+     * @return fat_index 酸值
706
+     */
707
+    public String getFatIndex() {
708
+        return fatIndex;
709
+    }
710
+
711
+    /**
712
+     * 酸值
713
+     * @param fatIndex 酸值
714
+     */
715
+    public void setFatIndex(String fatIndex) {
716
+        this.fatIndex = fatIndex == null ? null : fatIndex.trim();
717
+    }
718
+
719
+    /**
720
+     * 过氧化值
721
+     * @return peroxide_value 过氧化值
722
+     */
723
+    public String getPeroxideValue() {
724
+        return peroxideValue;
725
+    }
726
+
727
+    /**
728
+     * 过氧化值
729
+     * @param peroxideValue 过氧化值
730
+     */
731
+    public void setPeroxideValue(String peroxideValue) {
732
+        this.peroxideValue = peroxideValue == null ? null : peroxideValue.trim();
733
+    }
734
+
735
+    /**
736
+     * 折光指数
737
+     * @return refraction_index 折光指数
738
+     */
739
+    public String getRefractionIndex() {
740
+        return refractionIndex;
741
+    }
742
+
743
+    /**
744
+     * 折光指数
745
+     * @param refractionIndex 折光指数
746
+     */
747
+    public void setRefractionIndex(String refractionIndex) {
748
+        this.refractionIndex = refractionIndex == null ? null : refractionIndex.trim();
749
+    }
750
+
751
+    /**
752
+     * 溶剂残留量
753
+     * @return residual_solvent 溶剂残留量
754
+     */
755
+    public String getResidualSolvent() {
756
+        return residualSolvent;
757
+    }
758
+
759
+    /**
760
+     * 溶剂残留量
761
+     * @param residualSolvent 溶剂残留量
762
+     */
763
+    public void setResidualSolvent(String residualSolvent) {
764
+        this.residualSolvent = residualSolvent == null ? null : residualSolvent.trim();
765
+    }
766
+
767
+    /**
768
+     * 填卡日期
769
+     * @return filling_time 填卡日期
770
+     */
771
+    public String getFillingTime() {
772
+        return fillingTime;
773
+    }
774
+
775
+    /**
776
+     * 填卡日期
777
+     * @param fillingTime 填卡日期
778
+     */
779
+    public void setFillingTime(String fillingTime) {
780
+        this.fillingTime = fillingTime == null ? null : fillingTime.trim();
781
+    }
782
+
783
+    /**
784
+     * 装粮线高度
785
+     * @return line_height 装粮线高度
786
+     */
787
+    public BigDecimal getLineHeight() {
788
+        return lineHeight;
789
+    }
790
+
791
+    /**
792
+     * 装粮线高度
793
+     * @param lineHeight 装粮线高度
794
+     */
795
+    public void setLineHeight(BigDecimal lineHeight) {
796
+        this.lineHeight = lineHeight;
797
+    }
798
+
799
+    /**
800
+     * 封仓状态:0:未封仓,1:已封仓
801
+     * @return seal_status 封仓状态:0:未封仓,1:已封仓
802
+     */
803
+    public String getSealStatus() {
804
+        return sealStatus;
805
+    }
806
+
807
+    /**
808
+     * 封仓状态:0:未封仓,1:已封仓
809
+     * @param sealStatus 封仓状态:0:未封仓,1:已封仓
810
+     */
811
+    public void setSealStatus(String sealStatus) {
812
+        this.sealStatus = sealStatus == null ? null : sealStatus.trim();
813
+    }
814
+
815
+    /**
816
+     * 库存识别码
817
+     * @return auth_code 库存识别码
818
+     */
819
+    public String getAuthCode() {
820
+        return authCode;
821
+    }
822
+
823
+    /**
824
+     * 库存识别码
825
+     * @param authCode 库存识别码
826
+     */
827
+    public void setAuthCode(String authCode) {
828
+        this.authCode = authCode == null ? null : authCode.trim();
829
+    }
830
+
831
+    /**
832
+     * 组织机构id
833
+     * @return org_id 组织机构id
834
+     */
835
+    public Integer getOrgId() {
836
+        return orgId;
837
+    }
838
+
839
+    /**
840
+     * 组织机构id
841
+     * @param orgId 组织机构id
842
+     */
843
+    public void setOrgId(Integer orgId) {
844
+        this.orgId = orgId;
845
+    }
846
+
847
+    /**
848
+     * 0:最新数据  1:历史数据
849
+     * @return history_status 0:最新数据  1:历史数据
850
+     */
851
+    public Integer getHistoryStatus() {
852
+        return historyStatus;
853
+    }
854
+
855
+    /**
856
+     * 0:最新数据  1:历史数据
857
+     * @param historyStatus 0:最新数据  1:历史数据
858
+     */
859
+    public void setHistoryStatus(Integer historyStatus) {
860
+        this.historyStatus = historyStatus;
861
+    }
862
+
863
+    public String getStorehouseName() {
864
+        return storehouseName;
865
+    }
866
+
867
+    public void setStorehouseName(String storehouseName) {
868
+        this.storehouseName = storehouseName;
869
+    }
870
+
871
+    public String getWareHouseName() {
872
+        return wareHouseName;
873
+    }
874
+
875
+    public void setWareHouseName(String wareHouseName) {
876
+        this.wareHouseName = wareHouseName;
877
+    }
878
+
879
+    public String getKeeperNames() {
880
+        return keeperNames;
881
+    }
882
+
883
+    public void setKeeperNames(String keeperNames) {
884
+        this.keeperNames = keeperNames;
885
+    }
886
+
887
+    public String getStorehouseCode() {
888
+        return storehouseCode;
889
+    }
890
+
891
+    public void setStorehouseCode(String storehouseCode) {
892
+        this.storehouseCode = storehouseCode;
893
+    }
894
+
895
+    public String getWarehouseCode() {
896
+        return warehouseCode;
897
+    }
898
+
899
+    public void setWarehouseCode(String warehouseCode) {
900
+        this.warehouseCode = warehouseCode;
901
+    }
902
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3350 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicinfoExample.java


+ 223 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqApplyDefault.java

@@ -0,0 +1,223 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+
7
+public class StorageKcglJkqyqApplyDefault {
8
+    private Integer id;
9
+
10
+    private Integer orgId;
11
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
12
+    private Date modifydate;
13
+
14
+    private Integer ch;
15
+
16
+    private Integer hwh;
17
+
18
+    private String pz;
19
+
20
+    private Integer isUpload;
21
+
22
+    private String jhbh;
23
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
24
+    private Date jkqEnd;
25
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
26
+    private Date sqyqTime;
27
+
28
+    private String yqsqNo;
29
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
30
+    private Date updatetime;
31
+
32
+    /**
33
+     * 主键
34
+     * @return id 主键
35
+     */
36
+    public Integer getId() {
37
+        return id;
38
+    }
39
+
40
+    /**
41
+     * 主键
42
+     * @param id 主键
43
+     */
44
+    public void setId(Integer id) {
45
+        this.id = id;
46
+    }
47
+
48
+    /**
49
+     * 单位ID
50
+     * @return org_id 单位ID
51
+     */
52
+    public Integer getOrgId() {
53
+        return orgId;
54
+    }
55
+
56
+    /**
57
+     * 单位ID
58
+     * @param orgId 单位ID
59
+     */
60
+    public void setOrgId(Integer orgId) {
61
+        this.orgId = orgId;
62
+    }
63
+
64
+    /**
65
+     * 出库时间
66
+     * @return modifydate 出库时间
67
+     */
68
+    public Date getModifydate() {
69
+        return modifydate;
70
+    }
71
+
72
+    /**
73
+     * 出库时间
74
+     * @param modifydate 出库时间
75
+     */
76
+    public void setModifydate(Date modifydate) {
77
+        this.modifydate = modifydate;
78
+    }
79
+
80
+    /**
81
+     * 仓房ID
82
+     * @return ch 仓房ID
83
+     */
84
+    public Integer getCh() {
85
+        return ch;
86
+    }
87
+
88
+    /**
89
+     * 仓房ID
90
+     * @param ch 仓房ID
91
+     */
92
+    public void setCh(Integer ch) {
93
+        this.ch = ch;
94
+    }
95
+
96
+    /**
97
+     * 货位ID
98
+     * @return hwh 货位ID
99
+     */
100
+    public Integer getHwh() {
101
+        return hwh;
102
+    }
103
+
104
+    /**
105
+     * 货位ID
106
+     * @param hwh 货位ID
107
+     */
108
+    public void setHwh(Integer hwh) {
109
+        this.hwh = hwh;
110
+    }
111
+
112
+    /**
113
+     * 粮食品种
114
+     * @return pz 粮食品种
115
+     */
116
+    public String getPz() {
117
+        return pz;
118
+    }
119
+
120
+    /**
121
+     * 粮食品种
122
+     * @param pz 粮食品种
123
+     */
124
+    public void setPz(String pz) {
125
+        this.pz = pz == null ? null : pz.trim();
126
+    }
127
+
128
+    /**
129
+     * 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
130
+     * @return is_Upload 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
131
+     */
132
+    public Integer getIsUpload() {
133
+        return isUpload;
134
+    }
135
+
136
+    /**
137
+     * 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
138
+     * @param isUpload 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
139
+     */
140
+    public void setIsUpload(Integer isUpload) {
141
+        this.isUpload = isUpload;
142
+    }
143
+
144
+    /**
145
+     * 计划编号
146
+     * @return jhbh 计划编号
147
+     */
148
+    public String getJhbh() {
149
+        return jhbh;
150
+    }
151
+
152
+    /**
153
+     * 计划编号
154
+     * @param jhbh 计划编号
155
+     */
156
+    public void setJhbh(String jhbh) {
157
+        this.jhbh = jhbh == null ? null : jhbh.trim();
158
+    }
159
+
160
+    /**
161
+     * 架空期截止时间
162
+     * @return jkq_end 架空期截止时间
163
+     */
164
+    public Date getJkqEnd() {
165
+        return jkqEnd;
166
+    }
167
+
168
+    /**
169
+     * 架空期截止时间
170
+     * @param jkqEnd 架空期截止时间
171
+     */
172
+    public void setJkqEnd(Date jkqEnd) {
173
+        this.jkqEnd = jkqEnd;
174
+    }
175
+
176
+    /**
177
+     * 申请延期日期
178
+     * @return sqyq_time 申请延期日期
179
+     */
180
+    public Date getSqyqTime() {
181
+        return sqyqTime;
182
+    }
183
+
184
+    /**
185
+     * 申请延期日期
186
+     * @param sqyqTime 申请延期日期
187
+     */
188
+    public void setSqyqTime(Date sqyqTime) {
189
+        this.sqyqTime = sqyqTime;
190
+    }
191
+
192
+    /**
193
+     * 延期申请单号
194
+     * @return yqsq_no 延期申请单号
195
+     */
196
+    public String getYqsqNo() {
197
+        return yqsqNo;
198
+    }
199
+
200
+    /**
201
+     * 延期申请单号
202
+     * @param yqsqNo 延期申请单号
203
+     */
204
+    public void setYqsqNo(String yqsqNo) {
205
+        this.yqsqNo = yqsqNo == null ? null : yqsqNo.trim();
206
+    }
207
+
208
+    /**
209
+     * 
210
+     * @return updatetime 
211
+     */
212
+    public Date getUpdatetime() {
213
+        return updatetime;
214
+    }
215
+
216
+    /**
217
+     * 
218
+     * @param updatetime 
219
+     */
220
+    public void setUpdatetime(Date updatetime) {
221
+        this.updatetime = updatetime;
222
+    }
223
+}

+ 969 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqApplyDefaultExample.java

@@ -0,0 +1,969 @@
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 StorageKcglJkqyqApplyDefaultExample {
8
+    /**
9
+     * storage_kcgl_jkqyq_apply_default
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * storage_kcgl_jkqyq_apply_default
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * storage_kcgl_jkqyq_apply_default
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public StorageKcglJkqyqApplyDefaultExample() {
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_kcgl_jkqyq_apply_default 2019-10-28
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(Integer value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(Integer value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(Integer value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(Integer value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdIn(List<Integer> values) {
161
+            addCriterion("id in", values, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotIn(List<Integer> values) {
166
+            addCriterion("id not in", values, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdBetween(Integer value1, Integer value2) {
171
+            addCriterion("id between", value1, value2, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
176
+            addCriterion("id not between", value1, value2, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andOrgIdIsNull() {
181
+            addCriterion("org_id is null");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andOrgIdIsNotNull() {
186
+            addCriterion("org_id is not null");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andOrgIdEqualTo(Integer value) {
191
+            addCriterion("org_id =", value, "orgId");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andOrgIdNotEqualTo(Integer value) {
196
+            addCriterion("org_id <>", value, "orgId");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andOrgIdGreaterThan(Integer value) {
201
+            addCriterion("org_id >", value, "orgId");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
206
+            addCriterion("org_id >=", value, "orgId");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andOrgIdLessThan(Integer value) {
211
+            addCriterion("org_id <", value, "orgId");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
216
+            addCriterion("org_id <=", value, "orgId");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andOrgIdIn(List<Integer> values) {
221
+            addCriterion("org_id in", values, "orgId");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andOrgIdNotIn(List<Integer> values) {
226
+            addCriterion("org_id not in", values, "orgId");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
231
+            addCriterion("org_id between", value1, value2, "orgId");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
236
+            addCriterion("org_id not between", value1, value2, "orgId");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andModifydateIsNull() {
241
+            addCriterion("modifydate is null");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andModifydateIsNotNull() {
246
+            addCriterion("modifydate is not null");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andModifydateEqualTo(Date value) {
251
+            addCriterion("modifydate =", value, "modifydate");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andModifydateNotEqualTo(Date value) {
256
+            addCriterion("modifydate <>", value, "modifydate");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andModifydateGreaterThan(Date value) {
261
+            addCriterion("modifydate >", value, "modifydate");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andModifydateGreaterThanOrEqualTo(Date value) {
266
+            addCriterion("modifydate >=", value, "modifydate");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andModifydateLessThan(Date value) {
271
+            addCriterion("modifydate <", value, "modifydate");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andModifydateLessThanOrEqualTo(Date value) {
276
+            addCriterion("modifydate <=", value, "modifydate");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andModifydateIn(List<Date> values) {
281
+            addCriterion("modifydate in", values, "modifydate");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andModifydateNotIn(List<Date> values) {
286
+            addCriterion("modifydate not in", values, "modifydate");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andModifydateBetween(Date value1, Date value2) {
291
+            addCriterion("modifydate between", value1, value2, "modifydate");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andModifydateNotBetween(Date value1, Date value2) {
296
+            addCriterion("modifydate not between", value1, value2, "modifydate");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andChIsNull() {
301
+            addCriterion("ch is null");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andChIsNotNull() {
306
+            addCriterion("ch is not null");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andChEqualTo(Integer value) {
311
+            addCriterion("ch =", value, "ch");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andChNotEqualTo(Integer value) {
316
+            addCriterion("ch <>", value, "ch");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andChGreaterThan(Integer value) {
321
+            addCriterion("ch >", value, "ch");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andChGreaterThanOrEqualTo(Integer value) {
326
+            addCriterion("ch >=", value, "ch");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andChLessThan(Integer value) {
331
+            addCriterion("ch <", value, "ch");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andChLessThanOrEqualTo(Integer value) {
336
+            addCriterion("ch <=", value, "ch");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andChIn(List<Integer> values) {
341
+            addCriterion("ch in", values, "ch");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andChNotIn(List<Integer> values) {
346
+            addCriterion("ch not in", values, "ch");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andChBetween(Integer value1, Integer value2) {
351
+            addCriterion("ch between", value1, value2, "ch");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andChNotBetween(Integer value1, Integer value2) {
356
+            addCriterion("ch not between", value1, value2, "ch");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andHwhIsNull() {
361
+            addCriterion("hwh is null");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andHwhIsNotNull() {
366
+            addCriterion("hwh is not null");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andHwhEqualTo(Integer value) {
371
+            addCriterion("hwh =", value, "hwh");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andHwhNotEqualTo(Integer value) {
376
+            addCriterion("hwh <>", value, "hwh");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andHwhGreaterThan(Integer value) {
381
+            addCriterion("hwh >", value, "hwh");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andHwhGreaterThanOrEqualTo(Integer value) {
386
+            addCriterion("hwh >=", value, "hwh");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andHwhLessThan(Integer value) {
391
+            addCriterion("hwh <", value, "hwh");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andHwhLessThanOrEqualTo(Integer value) {
396
+            addCriterion("hwh <=", value, "hwh");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andHwhIn(List<Integer> values) {
401
+            addCriterion("hwh in", values, "hwh");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andHwhNotIn(List<Integer> values) {
406
+            addCriterion("hwh not in", values, "hwh");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andHwhBetween(Integer value1, Integer value2) {
411
+            addCriterion("hwh between", value1, value2, "hwh");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andHwhNotBetween(Integer value1, Integer value2) {
416
+            addCriterion("hwh not between", value1, value2, "hwh");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andPzIsNull() {
421
+            addCriterion("pz is null");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andPzIsNotNull() {
426
+            addCriterion("pz is not null");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andPzEqualTo(String value) {
431
+            addCriterion("pz =", value, "pz");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andPzNotEqualTo(String value) {
436
+            addCriterion("pz <>", value, "pz");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andPzGreaterThan(String value) {
441
+            addCriterion("pz >", value, "pz");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andPzGreaterThanOrEqualTo(String value) {
446
+            addCriterion("pz >=", value, "pz");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andPzLessThan(String value) {
451
+            addCriterion("pz <", value, "pz");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andPzLessThanOrEqualTo(String value) {
456
+            addCriterion("pz <=", value, "pz");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andPzLike(String value) {
461
+            addCriterion("pz like", value, "pz");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andPzNotLike(String value) {
466
+            addCriterion("pz not like", value, "pz");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andPzIn(List<String> values) {
471
+            addCriterion("pz in", values, "pz");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andPzNotIn(List<String> values) {
476
+            addCriterion("pz not in", values, "pz");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andPzBetween(String value1, String value2) {
481
+            addCriterion("pz between", value1, value2, "pz");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andPzNotBetween(String value1, String value2) {
486
+            addCriterion("pz not between", value1, value2, "pz");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andIsUploadIsNull() {
491
+            addCriterion("is_Upload is null");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andIsUploadIsNotNull() {
496
+            addCriterion("is_Upload is not null");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andIsUploadEqualTo(Integer value) {
501
+            addCriterion("is_Upload =", value, "isUpload");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andIsUploadNotEqualTo(Integer value) {
506
+            addCriterion("is_Upload <>", value, "isUpload");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andIsUploadGreaterThan(Integer value) {
511
+            addCriterion("is_Upload >", value, "isUpload");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andIsUploadGreaterThanOrEqualTo(Integer value) {
516
+            addCriterion("is_Upload >=", value, "isUpload");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andIsUploadLessThan(Integer value) {
521
+            addCriterion("is_Upload <", value, "isUpload");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andIsUploadLessThanOrEqualTo(Integer value) {
526
+            addCriterion("is_Upload <=", value, "isUpload");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andIsUploadIn(List<Integer> values) {
531
+            addCriterion("is_Upload in", values, "isUpload");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andIsUploadNotIn(List<Integer> values) {
536
+            addCriterion("is_Upload not in", values, "isUpload");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andIsUploadBetween(Integer value1, Integer value2) {
541
+            addCriterion("is_Upload between", value1, value2, "isUpload");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andIsUploadNotBetween(Integer value1, Integer value2) {
546
+            addCriterion("is_Upload not between", value1, value2, "isUpload");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andJhbhIsNull() {
551
+            addCriterion("jhbh is null");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andJhbhIsNotNull() {
556
+            addCriterion("jhbh is not null");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andJhbhEqualTo(String value) {
561
+            addCriterion("jhbh =", value, "jhbh");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andJhbhNotEqualTo(String value) {
566
+            addCriterion("jhbh <>", value, "jhbh");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andJhbhGreaterThan(String value) {
571
+            addCriterion("jhbh >", value, "jhbh");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andJhbhGreaterThanOrEqualTo(String value) {
576
+            addCriterion("jhbh >=", value, "jhbh");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andJhbhLessThan(String value) {
581
+            addCriterion("jhbh <", value, "jhbh");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andJhbhLessThanOrEqualTo(String value) {
586
+            addCriterion("jhbh <=", value, "jhbh");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andJhbhLike(String value) {
591
+            addCriterion("jhbh like", value, "jhbh");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andJhbhNotLike(String value) {
596
+            addCriterion("jhbh not like", value, "jhbh");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andJhbhIn(List<String> values) {
601
+            addCriterion("jhbh in", values, "jhbh");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andJhbhNotIn(List<String> values) {
606
+            addCriterion("jhbh not in", values, "jhbh");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andJhbhBetween(String value1, String value2) {
611
+            addCriterion("jhbh between", value1, value2, "jhbh");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andJhbhNotBetween(String value1, String value2) {
616
+            addCriterion("jhbh not between", value1, value2, "jhbh");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andJkqEndIsNull() {
621
+            addCriterion("jkq_end is null");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andJkqEndIsNotNull() {
626
+            addCriterion("jkq_end is not null");
627
+            return (Criteria) this;
628
+        }
629
+
630
+        public Criteria andJkqEndEqualTo(Date value) {
631
+            addCriterion("jkq_end =", value, "jkqEnd");
632
+            return (Criteria) this;
633
+        }
634
+
635
+        public Criteria andJkqEndNotEqualTo(Date value) {
636
+            addCriterion("jkq_end <>", value, "jkqEnd");
637
+            return (Criteria) this;
638
+        }
639
+
640
+        public Criteria andJkqEndGreaterThan(Date value) {
641
+            addCriterion("jkq_end >", value, "jkqEnd");
642
+            return (Criteria) this;
643
+        }
644
+
645
+        public Criteria andJkqEndGreaterThanOrEqualTo(Date value) {
646
+            addCriterion("jkq_end >=", value, "jkqEnd");
647
+            return (Criteria) this;
648
+        }
649
+
650
+        public Criteria andJkqEndLessThan(Date value) {
651
+            addCriterion("jkq_end <", value, "jkqEnd");
652
+            return (Criteria) this;
653
+        }
654
+
655
+        public Criteria andJkqEndLessThanOrEqualTo(Date value) {
656
+            addCriterion("jkq_end <=", value, "jkqEnd");
657
+            return (Criteria) this;
658
+        }
659
+
660
+        public Criteria andJkqEndIn(List<Date> values) {
661
+            addCriterion("jkq_end in", values, "jkqEnd");
662
+            return (Criteria) this;
663
+        }
664
+
665
+        public Criteria andJkqEndNotIn(List<Date> values) {
666
+            addCriterion("jkq_end not in", values, "jkqEnd");
667
+            return (Criteria) this;
668
+        }
669
+
670
+        public Criteria andJkqEndBetween(Date value1, Date value2) {
671
+            addCriterion("jkq_end between", value1, value2, "jkqEnd");
672
+            return (Criteria) this;
673
+        }
674
+
675
+        public Criteria andJkqEndNotBetween(Date value1, Date value2) {
676
+            addCriterion("jkq_end not between", value1, value2, "jkqEnd");
677
+            return (Criteria) this;
678
+        }
679
+
680
+        public Criteria andSqyqTimeIsNull() {
681
+            addCriterion("sqyq_time is null");
682
+            return (Criteria) this;
683
+        }
684
+
685
+        public Criteria andSqyqTimeIsNotNull() {
686
+            addCriterion("sqyq_time is not null");
687
+            return (Criteria) this;
688
+        }
689
+
690
+        public Criteria andSqyqTimeEqualTo(Date value) {
691
+            addCriterion("sqyq_time =", value, "sqyqTime");
692
+            return (Criteria) this;
693
+        }
694
+
695
+        public Criteria andSqyqTimeNotEqualTo(Date value) {
696
+            addCriterion("sqyq_time <>", value, "sqyqTime");
697
+            return (Criteria) this;
698
+        }
699
+
700
+        public Criteria andSqyqTimeGreaterThan(Date value) {
701
+            addCriterion("sqyq_time >", value, "sqyqTime");
702
+            return (Criteria) this;
703
+        }
704
+
705
+        public Criteria andSqyqTimeGreaterThanOrEqualTo(Date value) {
706
+            addCriterion("sqyq_time >=", value, "sqyqTime");
707
+            return (Criteria) this;
708
+        }
709
+
710
+        public Criteria andSqyqTimeLessThan(Date value) {
711
+            addCriterion("sqyq_time <", value, "sqyqTime");
712
+            return (Criteria) this;
713
+        }
714
+
715
+        public Criteria andSqyqTimeLessThanOrEqualTo(Date value) {
716
+            addCriterion("sqyq_time <=", value, "sqyqTime");
717
+            return (Criteria) this;
718
+        }
719
+
720
+        public Criteria andSqyqTimeIn(List<Date> values) {
721
+            addCriterion("sqyq_time in", values, "sqyqTime");
722
+            return (Criteria) this;
723
+        }
724
+
725
+        public Criteria andSqyqTimeNotIn(List<Date> values) {
726
+            addCriterion("sqyq_time not in", values, "sqyqTime");
727
+            return (Criteria) this;
728
+        }
729
+
730
+        public Criteria andSqyqTimeBetween(Date value1, Date value2) {
731
+            addCriterion("sqyq_time between", value1, value2, "sqyqTime");
732
+            return (Criteria) this;
733
+        }
734
+
735
+        public Criteria andSqyqTimeNotBetween(Date value1, Date value2) {
736
+            addCriterion("sqyq_time not between", value1, value2, "sqyqTime");
737
+            return (Criteria) this;
738
+        }
739
+
740
+        public Criteria andYqsqNoIsNull() {
741
+            addCriterion("yqsq_no is null");
742
+            return (Criteria) this;
743
+        }
744
+
745
+        public Criteria andYqsqNoIsNotNull() {
746
+            addCriterion("yqsq_no is not null");
747
+            return (Criteria) this;
748
+        }
749
+
750
+        public Criteria andYqsqNoEqualTo(String value) {
751
+            addCriterion("yqsq_no =", value, "yqsqNo");
752
+            return (Criteria) this;
753
+        }
754
+
755
+        public Criteria andYqsqNoNotEqualTo(String value) {
756
+            addCriterion("yqsq_no <>", value, "yqsqNo");
757
+            return (Criteria) this;
758
+        }
759
+
760
+        public Criteria andYqsqNoGreaterThan(String value) {
761
+            addCriterion("yqsq_no >", value, "yqsqNo");
762
+            return (Criteria) this;
763
+        }
764
+
765
+        public Criteria andYqsqNoGreaterThanOrEqualTo(String value) {
766
+            addCriterion("yqsq_no >=", value, "yqsqNo");
767
+            return (Criteria) this;
768
+        }
769
+
770
+        public Criteria andYqsqNoLessThan(String value) {
771
+            addCriterion("yqsq_no <", value, "yqsqNo");
772
+            return (Criteria) this;
773
+        }
774
+
775
+        public Criteria andYqsqNoLessThanOrEqualTo(String value) {
776
+            addCriterion("yqsq_no <=", value, "yqsqNo");
777
+            return (Criteria) this;
778
+        }
779
+
780
+        public Criteria andYqsqNoLike(String value) {
781
+            addCriterion("yqsq_no like", value, "yqsqNo");
782
+            return (Criteria) this;
783
+        }
784
+
785
+        public Criteria andYqsqNoNotLike(String value) {
786
+            addCriterion("yqsq_no not like", value, "yqsqNo");
787
+            return (Criteria) this;
788
+        }
789
+
790
+        public Criteria andYqsqNoIn(List<String> values) {
791
+            addCriterion("yqsq_no in", values, "yqsqNo");
792
+            return (Criteria) this;
793
+        }
794
+
795
+        public Criteria andYqsqNoNotIn(List<String> values) {
796
+            addCriterion("yqsq_no not in", values, "yqsqNo");
797
+            return (Criteria) this;
798
+        }
799
+
800
+        public Criteria andYqsqNoBetween(String value1, String value2) {
801
+            addCriterion("yqsq_no between", value1, value2, "yqsqNo");
802
+            return (Criteria) this;
803
+        }
804
+
805
+        public Criteria andYqsqNoNotBetween(String value1, String value2) {
806
+            addCriterion("yqsq_no not between", value1, value2, "yqsqNo");
807
+            return (Criteria) this;
808
+        }
809
+
810
+        public Criteria andUpdatetimeIsNull() {
811
+            addCriterion("updatetime is null");
812
+            return (Criteria) this;
813
+        }
814
+
815
+        public Criteria andUpdatetimeIsNotNull() {
816
+            addCriterion("updatetime is not null");
817
+            return (Criteria) this;
818
+        }
819
+
820
+        public Criteria andUpdatetimeEqualTo(Date value) {
821
+            addCriterion("updatetime =", value, "updatetime");
822
+            return (Criteria) this;
823
+        }
824
+
825
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
826
+            addCriterion("updatetime <>", value, "updatetime");
827
+            return (Criteria) this;
828
+        }
829
+
830
+        public Criteria andUpdatetimeGreaterThan(Date value) {
831
+            addCriterion("updatetime >", value, "updatetime");
832
+            return (Criteria) this;
833
+        }
834
+
835
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
836
+            addCriterion("updatetime >=", value, "updatetime");
837
+            return (Criteria) this;
838
+        }
839
+
840
+        public Criteria andUpdatetimeLessThan(Date value) {
841
+            addCriterion("updatetime <", value, "updatetime");
842
+            return (Criteria) this;
843
+        }
844
+
845
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
846
+            addCriterion("updatetime <=", value, "updatetime");
847
+            return (Criteria) this;
848
+        }
849
+
850
+        public Criteria andUpdatetimeIn(List<Date> values) {
851
+            addCriterion("updatetime in", values, "updatetime");
852
+            return (Criteria) this;
853
+        }
854
+
855
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
856
+            addCriterion("updatetime not in", values, "updatetime");
857
+            return (Criteria) this;
858
+        }
859
+
860
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
861
+            addCriterion("updatetime between", value1, value2, "updatetime");
862
+            return (Criteria) this;
863
+        }
864
+
865
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
866
+            addCriterion("updatetime not between", value1, value2, "updatetime");
867
+            return (Criteria) this;
868
+        }
869
+    }
870
+
871
+    /**
872
+     * storage_kcgl_jkqyq_apply_default
873
+     */
874
+    public static class Criteria extends GeneratedCriteria {
875
+
876
+        protected Criteria() {
877
+            super();
878
+        }
879
+    }
880
+
881
+    /**
882
+     * storage_kcgl_jkqyq_apply_default 2019-10-28
883
+     */
884
+    public static class Criterion {
885
+        private String condition;
886
+
887
+        private Object value;
888
+
889
+        private Object secondValue;
890
+
891
+        private boolean noValue;
892
+
893
+        private boolean singleValue;
894
+
895
+        private boolean betweenValue;
896
+
897
+        private boolean listValue;
898
+
899
+        private String typeHandler;
900
+
901
+        public String getCondition() {
902
+            return condition;
903
+        }
904
+
905
+        public Object getValue() {
906
+            return value;
907
+        }
908
+
909
+        public Object getSecondValue() {
910
+            return secondValue;
911
+        }
912
+
913
+        public boolean isNoValue() {
914
+            return noValue;
915
+        }
916
+
917
+        public boolean isSingleValue() {
918
+            return singleValue;
919
+        }
920
+
921
+        public boolean isBetweenValue() {
922
+            return betweenValue;
923
+        }
924
+
925
+        public boolean isListValue() {
926
+            return listValue;
927
+        }
928
+
929
+        public String getTypeHandler() {
930
+            return typeHandler;
931
+        }
932
+
933
+        protected Criterion(String condition) {
934
+            super();
935
+            this.condition = condition;
936
+            this.typeHandler = null;
937
+            this.noValue = true;
938
+        }
939
+
940
+        protected Criterion(String condition, Object value, String typeHandler) {
941
+            super();
942
+            this.condition = condition;
943
+            this.value = value;
944
+            this.typeHandler = typeHandler;
945
+            if (value instanceof List<?>) {
946
+                this.listValue = true;
947
+            } else {
948
+                this.singleValue = true;
949
+            }
950
+        }
951
+
952
+        protected Criterion(String condition, Object value) {
953
+            this(condition, value, null);
954
+        }
955
+
956
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
957
+            super();
958
+            this.condition = condition;
959
+            this.value = value;
960
+            this.secondValue = secondValue;
961
+            this.typeHandler = typeHandler;
962
+            this.betweenValue = true;
963
+        }
964
+
965
+        protected Criterion(String condition, Object value, Object secondValue) {
966
+            this(condition, value, secondValue, null);
967
+        }
968
+    }
969
+}

+ 205 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqDefault.java

@@ -0,0 +1,205 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+import com.fasterxml.jackson.annotation.JsonFormat;
6
+
7
+public class StorageKcglJkqyqDefault {
8
+    private Integer id;
9
+
10
+    private Integer orgId;
11
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
12
+    private Date createDate;
13
+
14
+    private String yqsqNo;
15
+
16
+    private String yqsqdwname;
17
+
18
+    private String cqyfzr;
19
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
20
+    private Date sqrq;
21
+
22
+    private Integer isUpload;
23
+
24
+    private String applyIeda;
25
+
26
+    private String sqyqReason;
27
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
28
+    private Date updatetime;
29
+
30
+    /**
31
+     * 主键
32
+     * @return id 主键
33
+     */
34
+    public Integer getId() {
35
+        return id;
36
+    }
37
+
38
+    /**
39
+     * 主键
40
+     * @param id 主键
41
+     */
42
+    public void setId(Integer id) {
43
+        this.id = id;
44
+    }
45
+
46
+    /**
47
+     * 单位ID
48
+     * @return org_id 单位ID
49
+     */
50
+    public Integer getOrgId() {
51
+        return orgId;
52
+    }
53
+
54
+    /**
55
+     * 单位ID
56
+     * @param orgId 单位ID
57
+     */
58
+    public void setOrgId(Integer orgId) {
59
+        this.orgId = orgId;
60
+    }
61
+
62
+    /**
63
+     * 创建时间
64
+     * @return create_date 创建时间
65
+     */
66
+    public Date getCreateDate() {
67
+        return createDate;
68
+    }
69
+
70
+    /**
71
+     * 创建时间
72
+     * @param createDate 创建时间
73
+     */
74
+    public void setCreateDate(Date createDate) {
75
+        this.createDate = createDate;
76
+    }
77
+
78
+    /**
79
+     * 延期申请单号
80
+     * @return yqsq_no 延期申请单号
81
+     */
82
+    public String getYqsqNo() {
83
+        return yqsqNo;
84
+    }
85
+
86
+    /**
87
+     * 延期申请单号
88
+     * @param yqsqNo 延期申请单号
89
+     */
90
+    public void setYqsqNo(String yqsqNo) {
91
+        this.yqsqNo = yqsqNo == null ? null : yqsqNo.trim();
92
+    }
93
+
94
+    /**
95
+     * 延期申请企业
96
+     * @return yqsqdwname 延期申请企业
97
+     */
98
+    public String getYqsqdwname() {
99
+        return yqsqdwname;
100
+    }
101
+
102
+    /**
103
+     * 延期申请企业
104
+     * @param yqsqdwname 延期申请企业
105
+     */
106
+    public void setYqsqdwname(String yqsqdwname) {
107
+        this.yqsqdwname = yqsqdwname == null ? null : yqsqdwname.trim();
108
+    }
109
+
110
+    /**
111
+     * 承储企业负责人
112
+     * @return cqyfzr 承储企业负责人
113
+     */
114
+    public String getCqyfzr() {
115
+        return cqyfzr;
116
+    }
117
+
118
+    /**
119
+     * 承储企业负责人
120
+     * @param cqyfzr 承储企业负责人
121
+     */
122
+    public void setCqyfzr(String cqyfzr) {
123
+        this.cqyfzr = cqyfzr == null ? null : cqyfzr.trim();
124
+    }
125
+
126
+    /**
127
+     * 申请日期
128
+     * @return sqrq 申请日期
129
+     */
130
+    public Date getSqrq() {
131
+        return sqrq;
132
+    }
133
+
134
+    /**
135
+     * 申请日期
136
+     * @param sqrq 申请日期
137
+     */
138
+    public void setSqrq(Date sqrq) {
139
+        this.sqrq = sqrq;
140
+    }
141
+
142
+    /**
143
+     * 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
144
+     * @return is_Upload 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
145
+     */
146
+    public Integer getIsUpload() {
147
+        return isUpload;
148
+    }
149
+
150
+    /**
151
+     * 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
152
+     * @param isUpload 是否上传(0待上传,1审批中,2审批通过,3审批驳回)
153
+     */
154
+    public void setIsUpload(Integer isUpload) {
155
+        this.isUpload = isUpload;
156
+    }
157
+
158
+    /**
159
+     * 审批意见
160
+     * @return apply_ieda 审批意见
161
+     */
162
+    public String getApplyIeda() {
163
+        return applyIeda;
164
+    }
165
+
166
+    /**
167
+     * 审批意见
168
+     * @param applyIeda 审批意见
169
+     */
170
+    public void setApplyIeda(String applyIeda) {
171
+        this.applyIeda = applyIeda == null ? null : applyIeda.trim();
172
+    }
173
+
174
+    /**
175
+     * 申请延期原因
176
+     * @return sqyq_reason 申请延期原因
177
+     */
178
+    public String getSqyqReason() {
179
+        return sqyqReason;
180
+    }
181
+
182
+    /**
183
+     * 申请延期原因
184
+     * @param sqyqReason 申请延期原因
185
+     */
186
+    public void setSqyqReason(String sqyqReason) {
187
+        this.sqyqReason = sqyqReason == null ? null : sqyqReason.trim();
188
+    }
189
+
190
+    /**
191
+     * 
192
+     * @return updatetime 
193
+     */
194
+    public Date getUpdatetime() {
195
+        return updatetime;
196
+    }
197
+
198
+    /**
199
+     * 
200
+     * @param updatetime 
201
+     */
202
+    public void setUpdatetime(Date updatetime) {
203
+        this.updatetime = updatetime;
204
+    }
205
+}

+ 929 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageKcglJkqyqDefaultExample.java

@@ -0,0 +1,929 @@
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 StorageKcglJkqyqDefaultExample {
8
+    /**
9
+     * storage_kcgl_jkqyq_default
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * storage_kcgl_jkqyq_default
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * storage_kcgl_jkqyq_default
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public StorageKcglJkqyqDefaultExample() {
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_kcgl_jkqyq_default 2019-10-28
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(Integer value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(Integer value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(Integer value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(Integer value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdIn(List<Integer> values) {
161
+            addCriterion("id in", values, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotIn(List<Integer> values) {
166
+            addCriterion("id not in", values, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdBetween(Integer value1, Integer value2) {
171
+            addCriterion("id between", value1, value2, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
176
+            addCriterion("id not between", value1, value2, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andOrgIdIsNull() {
181
+            addCriterion("org_id is null");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andOrgIdIsNotNull() {
186
+            addCriterion("org_id is not null");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andOrgIdEqualTo(Integer value) {
191
+            addCriterion("org_id =", value, "orgId");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andOrgIdNotEqualTo(Integer value) {
196
+            addCriterion("org_id <>", value, "orgId");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andOrgIdGreaterThan(Integer value) {
201
+            addCriterion("org_id >", value, "orgId");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
206
+            addCriterion("org_id >=", value, "orgId");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andOrgIdLessThan(Integer value) {
211
+            addCriterion("org_id <", value, "orgId");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
216
+            addCriterion("org_id <=", value, "orgId");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andOrgIdIn(List<Integer> values) {
221
+            addCriterion("org_id in", values, "orgId");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andOrgIdNotIn(List<Integer> values) {
226
+            addCriterion("org_id not in", values, "orgId");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
231
+            addCriterion("org_id between", value1, value2, "orgId");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
236
+            addCriterion("org_id not between", value1, value2, "orgId");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andCreateDateIsNull() {
241
+            addCriterion("create_date is null");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andCreateDateIsNotNull() {
246
+            addCriterion("create_date is not null");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andCreateDateEqualTo(Date value) {
251
+            addCriterion("create_date =", value, "createDate");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andCreateDateNotEqualTo(Date value) {
256
+            addCriterion("create_date <>", value, "createDate");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andCreateDateGreaterThan(Date value) {
261
+            addCriterion("create_date >", value, "createDate");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
266
+            addCriterion("create_date >=", value, "createDate");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andCreateDateLessThan(Date value) {
271
+            addCriterion("create_date <", value, "createDate");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
276
+            addCriterion("create_date <=", value, "createDate");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andCreateDateIn(List<Date> values) {
281
+            addCriterion("create_date in", values, "createDate");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andCreateDateNotIn(List<Date> values) {
286
+            addCriterion("create_date not in", values, "createDate");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andCreateDateBetween(Date value1, Date value2) {
291
+            addCriterion("create_date between", value1, value2, "createDate");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
296
+            addCriterion("create_date not between", value1, value2, "createDate");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andYqsqNoIsNull() {
301
+            addCriterion("yqsq_no is null");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andYqsqNoIsNotNull() {
306
+            addCriterion("yqsq_no is not null");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andYqsqNoEqualTo(String value) {
311
+            addCriterion("yqsq_no =", value, "yqsqNo");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andYqsqNoNotEqualTo(String value) {
316
+            addCriterion("yqsq_no <>", value, "yqsqNo");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andYqsqNoGreaterThan(String value) {
321
+            addCriterion("yqsq_no >", value, "yqsqNo");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andYqsqNoGreaterThanOrEqualTo(String value) {
326
+            addCriterion("yqsq_no >=", value, "yqsqNo");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andYqsqNoLessThan(String value) {
331
+            addCriterion("yqsq_no <", value, "yqsqNo");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andYqsqNoLessThanOrEqualTo(String value) {
336
+            addCriterion("yqsq_no <=", value, "yqsqNo");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andYqsqNoLike(String value) {
341
+            addCriterion("yqsq_no like", value, "yqsqNo");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andYqsqNoNotLike(String value) {
346
+            addCriterion("yqsq_no not like", value, "yqsqNo");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andYqsqNoIn(List<String> values) {
351
+            addCriterion("yqsq_no in", values, "yqsqNo");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andYqsqNoNotIn(List<String> values) {
356
+            addCriterion("yqsq_no not in", values, "yqsqNo");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andYqsqNoBetween(String value1, String value2) {
361
+            addCriterion("yqsq_no between", value1, value2, "yqsqNo");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andYqsqNoNotBetween(String value1, String value2) {
366
+            addCriterion("yqsq_no not between", value1, value2, "yqsqNo");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andYqsqdwnameIsNull() {
371
+            addCriterion("yqsqdwname is null");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andYqsqdwnameIsNotNull() {
376
+            addCriterion("yqsqdwname is not null");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andYqsqdwnameEqualTo(String value) {
381
+            addCriterion("yqsqdwname =", value, "yqsqdwname");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andYqsqdwnameNotEqualTo(String value) {
386
+            addCriterion("yqsqdwname <>", value, "yqsqdwname");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andYqsqdwnameGreaterThan(String value) {
391
+            addCriterion("yqsqdwname >", value, "yqsqdwname");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andYqsqdwnameGreaterThanOrEqualTo(String value) {
396
+            addCriterion("yqsqdwname >=", value, "yqsqdwname");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andYqsqdwnameLessThan(String value) {
401
+            addCriterion("yqsqdwname <", value, "yqsqdwname");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andYqsqdwnameLessThanOrEqualTo(String value) {
406
+            addCriterion("yqsqdwname <=", value, "yqsqdwname");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andYqsqdwnameLike(String value) {
411
+            addCriterion("yqsqdwname like", value, "yqsqdwname");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andYqsqdwnameNotLike(String value) {
416
+            addCriterion("yqsqdwname not like", value, "yqsqdwname");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andYqsqdwnameIn(List<String> values) {
421
+            addCriterion("yqsqdwname in", values, "yqsqdwname");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andYqsqdwnameNotIn(List<String> values) {
426
+            addCriterion("yqsqdwname not in", values, "yqsqdwname");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andYqsqdwnameBetween(String value1, String value2) {
431
+            addCriterion("yqsqdwname between", value1, value2, "yqsqdwname");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andYqsqdwnameNotBetween(String value1, String value2) {
436
+            addCriterion("yqsqdwname not between", value1, value2, "yqsqdwname");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andCqyfzrIsNull() {
441
+            addCriterion("cqyfzr is null");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andCqyfzrIsNotNull() {
446
+            addCriterion("cqyfzr is not null");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andCqyfzrEqualTo(String value) {
451
+            addCriterion("cqyfzr =", value, "cqyfzr");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andCqyfzrNotEqualTo(String value) {
456
+            addCriterion("cqyfzr <>", value, "cqyfzr");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andCqyfzrGreaterThan(String value) {
461
+            addCriterion("cqyfzr >", value, "cqyfzr");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andCqyfzrGreaterThanOrEqualTo(String value) {
466
+            addCriterion("cqyfzr >=", value, "cqyfzr");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andCqyfzrLessThan(String value) {
471
+            addCriterion("cqyfzr <", value, "cqyfzr");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andCqyfzrLessThanOrEqualTo(String value) {
476
+            addCriterion("cqyfzr <=", value, "cqyfzr");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andCqyfzrLike(String value) {
481
+            addCriterion("cqyfzr like", value, "cqyfzr");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andCqyfzrNotLike(String value) {
486
+            addCriterion("cqyfzr not like", value, "cqyfzr");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andCqyfzrIn(List<String> values) {
491
+            addCriterion("cqyfzr in", values, "cqyfzr");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andCqyfzrNotIn(List<String> values) {
496
+            addCriterion("cqyfzr not in", values, "cqyfzr");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andCqyfzrBetween(String value1, String value2) {
501
+            addCriterion("cqyfzr between", value1, value2, "cqyfzr");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andCqyfzrNotBetween(String value1, String value2) {
506
+            addCriterion("cqyfzr not between", value1, value2, "cqyfzr");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andSqrqIsNull() {
511
+            addCriterion("sqrq is null");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andSqrqIsNotNull() {
516
+            addCriterion("sqrq is not null");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andSqrqEqualTo(Date value) {
521
+            addCriterion("sqrq =", value, "sqrq");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andSqrqNotEqualTo(Date value) {
526
+            addCriterion("sqrq <>", value, "sqrq");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andSqrqGreaterThan(Date value) {
531
+            addCriterion("sqrq >", value, "sqrq");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andSqrqGreaterThanOrEqualTo(Date value) {
536
+            addCriterion("sqrq >=", value, "sqrq");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andSqrqLessThan(Date value) {
541
+            addCriterion("sqrq <", value, "sqrq");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andSqrqLessThanOrEqualTo(Date value) {
546
+            addCriterion("sqrq <=", value, "sqrq");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andSqrqIn(List<Date> values) {
551
+            addCriterion("sqrq in", values, "sqrq");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andSqrqNotIn(List<Date> values) {
556
+            addCriterion("sqrq not in", values, "sqrq");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andSqrqBetween(Date value1, Date value2) {
561
+            addCriterion("sqrq between", value1, value2, "sqrq");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andSqrqNotBetween(Date value1, Date value2) {
566
+            addCriterion("sqrq not between", value1, value2, "sqrq");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andIsUploadIsNull() {
571
+            addCriterion("is_Upload is null");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andIsUploadIsNotNull() {
576
+            addCriterion("is_Upload is not null");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andIsUploadEqualTo(Integer value) {
581
+            addCriterion("is_Upload =", value, "isUpload");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andIsUploadNotEqualTo(Integer value) {
586
+            addCriterion("is_Upload <>", value, "isUpload");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andIsUploadGreaterThan(Integer value) {
591
+            addCriterion("is_Upload >", value, "isUpload");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andIsUploadGreaterThanOrEqualTo(Integer value) {
596
+            addCriterion("is_Upload >=", value, "isUpload");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andIsUploadLessThan(Integer value) {
601
+            addCriterion("is_Upload <", value, "isUpload");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andIsUploadLessThanOrEqualTo(Integer value) {
606
+            addCriterion("is_Upload <=", value, "isUpload");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andIsUploadIn(List<Integer> values) {
611
+            addCriterion("is_Upload in", values, "isUpload");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andIsUploadNotIn(List<Integer> values) {
616
+            addCriterion("is_Upload not in", values, "isUpload");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andIsUploadBetween(Integer value1, Integer value2) {
621
+            addCriterion("is_Upload between", value1, value2, "isUpload");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andIsUploadNotBetween(Integer value1, Integer value2) {
626
+            addCriterion("is_Upload not between", value1, value2, "isUpload");
627
+            return (Criteria) this;
628
+        }
629
+
630
+        public Criteria andApplyIedaIsNull() {
631
+            addCriterion("apply_ieda is null");
632
+            return (Criteria) this;
633
+        }
634
+
635
+        public Criteria andApplyIedaIsNotNull() {
636
+            addCriterion("apply_ieda is not null");
637
+            return (Criteria) this;
638
+        }
639
+
640
+        public Criteria andApplyIedaEqualTo(String value) {
641
+            addCriterion("apply_ieda =", value, "applyIeda");
642
+            return (Criteria) this;
643
+        }
644
+
645
+        public Criteria andApplyIedaNotEqualTo(String value) {
646
+            addCriterion("apply_ieda <>", value, "applyIeda");
647
+            return (Criteria) this;
648
+        }
649
+
650
+        public Criteria andApplyIedaGreaterThan(String value) {
651
+            addCriterion("apply_ieda >", value, "applyIeda");
652
+            return (Criteria) this;
653
+        }
654
+
655
+        public Criteria andApplyIedaGreaterThanOrEqualTo(String value) {
656
+            addCriterion("apply_ieda >=", value, "applyIeda");
657
+            return (Criteria) this;
658
+        }
659
+
660
+        public Criteria andApplyIedaLessThan(String value) {
661
+            addCriterion("apply_ieda <", value, "applyIeda");
662
+            return (Criteria) this;
663
+        }
664
+
665
+        public Criteria andApplyIedaLessThanOrEqualTo(String value) {
666
+            addCriterion("apply_ieda <=", value, "applyIeda");
667
+            return (Criteria) this;
668
+        }
669
+
670
+        public Criteria andApplyIedaLike(String value) {
671
+            addCriterion("apply_ieda like", value, "applyIeda");
672
+            return (Criteria) this;
673
+        }
674
+
675
+        public Criteria andApplyIedaNotLike(String value) {
676
+            addCriterion("apply_ieda not like", value, "applyIeda");
677
+            return (Criteria) this;
678
+        }
679
+
680
+        public Criteria andApplyIedaIn(List<String> values) {
681
+            addCriterion("apply_ieda in", values, "applyIeda");
682
+            return (Criteria) this;
683
+        }
684
+
685
+        public Criteria andApplyIedaNotIn(List<String> values) {
686
+            addCriterion("apply_ieda not in", values, "applyIeda");
687
+            return (Criteria) this;
688
+        }
689
+
690
+        public Criteria andApplyIedaBetween(String value1, String value2) {
691
+            addCriterion("apply_ieda between", value1, value2, "applyIeda");
692
+            return (Criteria) this;
693
+        }
694
+
695
+        public Criteria andApplyIedaNotBetween(String value1, String value2) {
696
+            addCriterion("apply_ieda not between", value1, value2, "applyIeda");
697
+            return (Criteria) this;
698
+        }
699
+
700
+        public Criteria andSqyqReasonIsNull() {
701
+            addCriterion("sqyq_reason is null");
702
+            return (Criteria) this;
703
+        }
704
+
705
+        public Criteria andSqyqReasonIsNotNull() {
706
+            addCriterion("sqyq_reason is not null");
707
+            return (Criteria) this;
708
+        }
709
+
710
+        public Criteria andSqyqReasonEqualTo(String value) {
711
+            addCriterion("sqyq_reason =", value, "sqyqReason");
712
+            return (Criteria) this;
713
+        }
714
+
715
+        public Criteria andSqyqReasonNotEqualTo(String value) {
716
+            addCriterion("sqyq_reason <>", value, "sqyqReason");
717
+            return (Criteria) this;
718
+        }
719
+
720
+        public Criteria andSqyqReasonGreaterThan(String value) {
721
+            addCriterion("sqyq_reason >", value, "sqyqReason");
722
+            return (Criteria) this;
723
+        }
724
+
725
+        public Criteria andSqyqReasonGreaterThanOrEqualTo(String value) {
726
+            addCriterion("sqyq_reason >=", value, "sqyqReason");
727
+            return (Criteria) this;
728
+        }
729
+
730
+        public Criteria andSqyqReasonLessThan(String value) {
731
+            addCriterion("sqyq_reason <", value, "sqyqReason");
732
+            return (Criteria) this;
733
+        }
734
+
735
+        public Criteria andSqyqReasonLessThanOrEqualTo(String value) {
736
+            addCriterion("sqyq_reason <=", value, "sqyqReason");
737
+            return (Criteria) this;
738
+        }
739
+
740
+        public Criteria andSqyqReasonLike(String value) {
741
+            addCriterion("sqyq_reason like", value, "sqyqReason");
742
+            return (Criteria) this;
743
+        }
744
+
745
+        public Criteria andSqyqReasonNotLike(String value) {
746
+            addCriterion("sqyq_reason not like", value, "sqyqReason");
747
+            return (Criteria) this;
748
+        }
749
+
750
+        public Criteria andSqyqReasonIn(List<String> values) {
751
+            addCriterion("sqyq_reason in", values, "sqyqReason");
752
+            return (Criteria) this;
753
+        }
754
+
755
+        public Criteria andSqyqReasonNotIn(List<String> values) {
756
+            addCriterion("sqyq_reason not in", values, "sqyqReason");
757
+            return (Criteria) this;
758
+        }
759
+
760
+        public Criteria andSqyqReasonBetween(String value1, String value2) {
761
+            addCriterion("sqyq_reason between", value1, value2, "sqyqReason");
762
+            return (Criteria) this;
763
+        }
764
+
765
+        public Criteria andSqyqReasonNotBetween(String value1, String value2) {
766
+            addCriterion("sqyq_reason not between", value1, value2, "sqyqReason");
767
+            return (Criteria) this;
768
+        }
769
+
770
+        public Criteria andUpdatetimeIsNull() {
771
+            addCriterion("updatetime is null");
772
+            return (Criteria) this;
773
+        }
774
+
775
+        public Criteria andUpdatetimeIsNotNull() {
776
+            addCriterion("updatetime is not null");
777
+            return (Criteria) this;
778
+        }
779
+
780
+        public Criteria andUpdatetimeEqualTo(Date value) {
781
+            addCriterion("updatetime =", value, "updatetime");
782
+            return (Criteria) this;
783
+        }
784
+
785
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
786
+            addCriterion("updatetime <>", value, "updatetime");
787
+            return (Criteria) this;
788
+        }
789
+
790
+        public Criteria andUpdatetimeGreaterThan(Date value) {
791
+            addCriterion("updatetime >", value, "updatetime");
792
+            return (Criteria) this;
793
+        }
794
+
795
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
796
+            addCriterion("updatetime >=", value, "updatetime");
797
+            return (Criteria) this;
798
+        }
799
+
800
+        public Criteria andUpdatetimeLessThan(Date value) {
801
+            addCriterion("updatetime <", value, "updatetime");
802
+            return (Criteria) this;
803
+        }
804
+
805
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
806
+            addCriterion("updatetime <=", value, "updatetime");
807
+            return (Criteria) this;
808
+        }
809
+
810
+        public Criteria andUpdatetimeIn(List<Date> values) {
811
+            addCriterion("updatetime in", values, "updatetime");
812
+            return (Criteria) this;
813
+        }
814
+
815
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
816
+            addCriterion("updatetime not in", values, "updatetime");
817
+            return (Criteria) this;
818
+        }
819
+
820
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
821
+            addCriterion("updatetime between", value1, value2, "updatetime");
822
+            return (Criteria) this;
823
+        }
824
+
825
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
826
+            addCriterion("updatetime not between", value1, value2, "updatetime");
827
+            return (Criteria) this;
828
+        }
829
+    }
830
+
831
+    /**
832
+     * storage_kcgl_jkqyq_default
833
+     */
834
+    public static class Criteria extends GeneratedCriteria {
835
+
836
+        protected Criteria() {
837
+            super();
838
+        }
839
+    }
840
+
841
+    /**
842
+     * storage_kcgl_jkqyq_default 2019-10-28
843
+     */
844
+    public static class Criterion {
845
+        private String condition;
846
+
847
+        private Object value;
848
+
849
+        private Object secondValue;
850
+
851
+        private boolean noValue;
852
+
853
+        private boolean singleValue;
854
+
855
+        private boolean betweenValue;
856
+
857
+        private boolean listValue;
858
+
859
+        private String typeHandler;
860
+
861
+        public String getCondition() {
862
+            return condition;
863
+        }
864
+
865
+        public Object getValue() {
866
+            return value;
867
+        }
868
+
869
+        public Object getSecondValue() {
870
+            return secondValue;
871
+        }
872
+
873
+        public boolean isNoValue() {
874
+            return noValue;
875
+        }
876
+
877
+        public boolean isSingleValue() {
878
+            return singleValue;
879
+        }
880
+
881
+        public boolean isBetweenValue() {
882
+            return betweenValue;
883
+        }
884
+
885
+        public boolean isListValue() {
886
+            return listValue;
887
+        }
888
+
889
+        public String getTypeHandler() {
890
+            return typeHandler;
891
+        }
892
+
893
+        protected Criterion(String condition) {
894
+            super();
895
+            this.condition = condition;
896
+            this.typeHandler = null;
897
+            this.noValue = true;
898
+        }
899
+
900
+        protected Criterion(String condition, Object value, String typeHandler) {
901
+            super();
902
+            this.condition = condition;
903
+            this.value = value;
904
+            this.typeHandler = typeHandler;
905
+            if (value instanceof List<?>) {
906
+                this.listValue = true;
907
+            } else {
908
+                this.singleValue = true;
909
+            }
910
+        }
911
+
912
+        protected Criterion(String condition, Object value) {
913
+            this(condition, value, null);
914
+        }
915
+
916
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
917
+            super();
918
+            this.condition = condition;
919
+            this.value = value;
920
+            this.secondValue = secondValue;
921
+            this.typeHandler = typeHandler;
922
+            this.betweenValue = true;
923
+        }
924
+
925
+        protected Criterion(String condition, Object value, Object secondValue) {
926
+            this(condition, value, secondValue, null);
927
+        }
928
+    }
929
+}

+ 167 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageOverheadSet.java

@@ -0,0 +1,167 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+public class StorageOverheadSet {
6
+    private Integer id;
7
+
8
+    private Integer orgId;
9
+
10
+    private Integer lsxz;
11
+
12
+    private Integer overheadPeriod;
13
+
14
+    private Integer warningDay;
15
+
16
+    private String createname;
17
+
18
+    private Date createDate;
19
+
20
+    private Integer isUpload;
21
+
22
+    private Date updatetime;
23
+
24
+    /**
25
+     * ID
26
+     * @return id ID
27
+     */
28
+    public Integer getId() {
29
+        return id;
30
+    }
31
+
32
+    /**
33
+     * ID
34
+     * @param id ID
35
+     */
36
+    public void setId(Integer id) {
37
+        this.id = id;
38
+    }
39
+
40
+    /**
41
+     * 单位ID
42
+     * @return org_id 
43
+     */
44
+    public Integer getOrgId() {
45
+        return orgId;
46
+    }
47
+
48
+    /**
49
+     * 单位ID
50
+     * @param orgId 
51
+     */
52
+    public void setOrgId(Integer orgId) {
53
+        this.orgId = orgId;
54
+    }
55
+
56
+    /**
57
+     * 粮食性质
58
+     * @return lsxz 
59
+     */
60
+    public Integer getLsxz() {
61
+        return lsxz;
62
+    }
63
+
64
+    /**
65
+     * 粮食性质
66
+     * @param lsxz 
67
+     */
68
+    public void setLsxz(Integer lsxz) {
69
+        this.lsxz = lsxz;
70
+    }
71
+
72
+    /**
73
+     * 架空期
74
+     * @return overhead_period 架空期
75
+     */
76
+    public Integer getOverheadPeriod() {
77
+        return overheadPeriod;
78
+    }
79
+
80
+    /**
81
+     * 架空期
82
+     * @param overheadPeriod 架空期
83
+     */
84
+    public void setOverheadPeriod(Integer overheadPeriod) {
85
+        this.overheadPeriod = overheadPeriod;
86
+    }
87
+
88
+    /**
89
+     * 架空期预警天数
90
+     * @return warning_day 架空期预警天数
91
+     */
92
+    public Integer getWarningDay() {
93
+        return warningDay;
94
+    }
95
+
96
+    /**
97
+     * 架空期预警天数
98
+     * @param warningDay 架空期预警天数
99
+     */
100
+    public void setWarningDay(Integer warningDay) {
101
+        this.warningDay = warningDay;
102
+    }
103
+
104
+    /**
105
+     * 创建人
106
+     * @return createName 创建人
107
+     */
108
+    public String getCreatename() {
109
+        return createname;
110
+    }
111
+
112
+    /**
113
+     * 创建人
114
+     * @param createname 创建人
115
+     */
116
+    public void setCreatename(String createname) {
117
+        this.createname = createname == null ? null : createname.trim();
118
+    }
119
+
120
+    /**
121
+     * 创建日期
122
+     * @return create_date 创建日期
123
+     */
124
+    public Date getCreateDate() {
125
+        return createDate;
126
+    }
127
+
128
+    /**
129
+     * 创建日期
130
+     * @param createDate 创建日期
131
+     */
132
+    public void setCreateDate(Date createDate) {
133
+        this.createDate = createDate;
134
+    }
135
+
136
+    /**
137
+     * 是否上传(NULL未上传,1已上传,2上传失败,0需要再次上传)
138
+     * @return is_upload 是否上传(NULL未上传,1已上传,2上传失败,0需要再次上传)
139
+     */
140
+    public Integer getIsUpload() {
141
+        return isUpload;
142
+    }
143
+
144
+    /**
145
+     * 是否上传(NULL未上传,1已上传,2上传失败,0需要再次上传)
146
+     * @param isUpload 是否上传(NULL未上传,1已上传,2上传失败,0需要再次上传)
147
+     */
148
+    public void setIsUpload(Integer isUpload) {
149
+        this.isUpload = isUpload;
150
+    }
151
+
152
+    /**
153
+     * 更新时间
154
+     * @return updatetime 
155
+     */
156
+    public Date getUpdatetime() {
157
+        return updatetime;
158
+    }
159
+
160
+    /**
161
+     * 更新时间
162
+     * @param updatetime 
163
+     */
164
+    public void setUpdatetime(Date updatetime) {
165
+        this.updatetime = updatetime;
166
+    }
167
+}

+ 769 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageOverheadSetExample.java

@@ -0,0 +1,769 @@
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 StorageOverheadSetExample {
8
+    /**
9
+     * storage_overhead_set
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * storage_overhead_set
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * storage_overhead_set
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public StorageOverheadSetExample() {
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_overhead_set 2019-05-23
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(Integer value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(Integer value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(Integer value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(Integer value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdIn(List<Integer> values) {
161
+            addCriterion("id in", values, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotIn(List<Integer> values) {
166
+            addCriterion("id not in", values, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdBetween(Integer value1, Integer value2) {
171
+            addCriterion("id between", value1, value2, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
176
+            addCriterion("id not between", value1, value2, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andOrgIdIsNull() {
181
+            addCriterion("org_id is null");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andOrgIdIsNotNull() {
186
+            addCriterion("org_id is not null");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andOrgIdEqualTo(Integer value) {
191
+            addCriterion("org_id =", value, "orgId");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andOrgIdNotEqualTo(Integer value) {
196
+            addCriterion("org_id <>", value, "orgId");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andOrgIdGreaterThan(Integer value) {
201
+            addCriterion("org_id >", value, "orgId");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
206
+            addCriterion("org_id >=", value, "orgId");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andOrgIdLessThan(Integer value) {
211
+            addCriterion("org_id <", value, "orgId");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
216
+            addCriterion("org_id <=", value, "orgId");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andOrgIdIn(List<Integer> values) {
221
+            addCriterion("org_id in", values, "orgId");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andOrgIdNotIn(List<Integer> values) {
226
+            addCriterion("org_id not in", values, "orgId");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
231
+            addCriterion("org_id between", value1, value2, "orgId");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
236
+            addCriterion("org_id not between", value1, value2, "orgId");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andLsxzIsNull() {
241
+            addCriterion("lsxz is null");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andLsxzIsNotNull() {
246
+            addCriterion("lsxz is not null");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andLsxzEqualTo(Integer value) {
251
+            addCriterion("lsxz =", value, "lsxz");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andLsxzNotEqualTo(Integer value) {
256
+            addCriterion("lsxz <>", value, "lsxz");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andLsxzGreaterThan(Integer value) {
261
+            addCriterion("lsxz >", value, "lsxz");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andLsxzGreaterThanOrEqualTo(Integer value) {
266
+            addCriterion("lsxz >=", value, "lsxz");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andLsxzLessThan(Integer value) {
271
+            addCriterion("lsxz <", value, "lsxz");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andLsxzLessThanOrEqualTo(Integer value) {
276
+            addCriterion("lsxz <=", value, "lsxz");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andLsxzIn(List<Integer> values) {
281
+            addCriterion("lsxz in", values, "lsxz");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andLsxzNotIn(List<Integer> values) {
286
+            addCriterion("lsxz not in", values, "lsxz");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andLsxzBetween(Integer value1, Integer value2) {
291
+            addCriterion("lsxz between", value1, value2, "lsxz");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andLsxzNotBetween(Integer value1, Integer value2) {
296
+            addCriterion("lsxz not between", value1, value2, "lsxz");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andOverheadPeriodIsNull() {
301
+            addCriterion("overhead_period is null");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andOverheadPeriodIsNotNull() {
306
+            addCriterion("overhead_period is not null");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andOverheadPeriodEqualTo(Integer value) {
311
+            addCriterion("overhead_period =", value, "overheadPeriod");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andOverheadPeriodNotEqualTo(Integer value) {
316
+            addCriterion("overhead_period <>", value, "overheadPeriod");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andOverheadPeriodGreaterThan(Integer value) {
321
+            addCriterion("overhead_period >", value, "overheadPeriod");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andOverheadPeriodGreaterThanOrEqualTo(Integer value) {
326
+            addCriterion("overhead_period >=", value, "overheadPeriod");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andOverheadPeriodLessThan(Integer value) {
331
+            addCriterion("overhead_period <", value, "overheadPeriod");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andOverheadPeriodLessThanOrEqualTo(Integer value) {
336
+            addCriterion("overhead_period <=", value, "overheadPeriod");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andOverheadPeriodIn(List<Integer> values) {
341
+            addCriterion("overhead_period in", values, "overheadPeriod");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andOverheadPeriodNotIn(List<Integer> values) {
346
+            addCriterion("overhead_period not in", values, "overheadPeriod");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andOverheadPeriodBetween(Integer value1, Integer value2) {
351
+            addCriterion("overhead_period between", value1, value2, "overheadPeriod");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andOverheadPeriodNotBetween(Integer value1, Integer value2) {
356
+            addCriterion("overhead_period not between", value1, value2, "overheadPeriod");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andWarningDayIsNull() {
361
+            addCriterion("warning_day is null");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andWarningDayIsNotNull() {
366
+            addCriterion("warning_day is not null");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andWarningDayEqualTo(Integer value) {
371
+            addCriterion("warning_day =", value, "warningDay");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andWarningDayNotEqualTo(Integer value) {
376
+            addCriterion("warning_day <>", value, "warningDay");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andWarningDayGreaterThan(Integer value) {
381
+            addCriterion("warning_day >", value, "warningDay");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andWarningDayGreaterThanOrEqualTo(Integer value) {
386
+            addCriterion("warning_day >=", value, "warningDay");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andWarningDayLessThan(Integer value) {
391
+            addCriterion("warning_day <", value, "warningDay");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andWarningDayLessThanOrEqualTo(Integer value) {
396
+            addCriterion("warning_day <=", value, "warningDay");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andWarningDayIn(List<Integer> values) {
401
+            addCriterion("warning_day in", values, "warningDay");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andWarningDayNotIn(List<Integer> values) {
406
+            addCriterion("warning_day not in", values, "warningDay");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andWarningDayBetween(Integer value1, Integer value2) {
411
+            addCriterion("warning_day between", value1, value2, "warningDay");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andWarningDayNotBetween(Integer value1, Integer value2) {
416
+            addCriterion("warning_day not between", value1, value2, "warningDay");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andCreatenameIsNull() {
421
+            addCriterion("createName is null");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andCreatenameIsNotNull() {
426
+            addCriterion("createName is not null");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andCreatenameEqualTo(String value) {
431
+            addCriterion("createName =", value, "createname");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andCreatenameNotEqualTo(String value) {
436
+            addCriterion("createName <>", value, "createname");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andCreatenameGreaterThan(String value) {
441
+            addCriterion("createName >", value, "createname");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andCreatenameGreaterThanOrEqualTo(String value) {
446
+            addCriterion("createName >=", value, "createname");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andCreatenameLessThan(String value) {
451
+            addCriterion("createName <", value, "createname");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andCreatenameLessThanOrEqualTo(String value) {
456
+            addCriterion("createName <=", value, "createname");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andCreatenameLike(String value) {
461
+            addCriterion("createName like", value, "createname");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andCreatenameNotLike(String value) {
466
+            addCriterion("createName not like", value, "createname");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andCreatenameIn(List<String> values) {
471
+            addCriterion("createName in", values, "createname");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andCreatenameNotIn(List<String> values) {
476
+            addCriterion("createName not in", values, "createname");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andCreatenameBetween(String value1, String value2) {
481
+            addCriterion("createName between", value1, value2, "createname");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andCreatenameNotBetween(String value1, String value2) {
486
+            addCriterion("createName not between", value1, value2, "createname");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andCreateDateIsNull() {
491
+            addCriterion("create_date is null");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andCreateDateIsNotNull() {
496
+            addCriterion("create_date is not null");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andCreateDateEqualTo(Date value) {
501
+            addCriterion("create_date =", value, "createDate");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andCreateDateNotEqualTo(Date value) {
506
+            addCriterion("create_date <>", value, "createDate");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andCreateDateGreaterThan(Date value) {
511
+            addCriterion("create_date >", value, "createDate");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
516
+            addCriterion("create_date >=", value, "createDate");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andCreateDateLessThan(Date value) {
521
+            addCriterion("create_date <", value, "createDate");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
526
+            addCriterion("create_date <=", value, "createDate");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andCreateDateIn(List<Date> values) {
531
+            addCriterion("create_date in", values, "createDate");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andCreateDateNotIn(List<Date> values) {
536
+            addCriterion("create_date not in", values, "createDate");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andCreateDateBetween(Date value1, Date value2) {
541
+            addCriterion("create_date between", value1, value2, "createDate");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
546
+            addCriterion("create_date not between", value1, value2, "createDate");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andIsUploadIsNull() {
551
+            addCriterion("is_upload is null");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andIsUploadIsNotNull() {
556
+            addCriterion("is_upload is not null");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andIsUploadEqualTo(Integer value) {
561
+            addCriterion("is_upload =", value, "isUpload");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andIsUploadNotEqualTo(Integer value) {
566
+            addCriterion("is_upload <>", value, "isUpload");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andIsUploadGreaterThan(Integer value) {
571
+            addCriterion("is_upload >", value, "isUpload");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andIsUploadGreaterThanOrEqualTo(Integer value) {
576
+            addCriterion("is_upload >=", value, "isUpload");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andIsUploadLessThan(Integer value) {
581
+            addCriterion("is_upload <", value, "isUpload");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andIsUploadLessThanOrEqualTo(Integer value) {
586
+            addCriterion("is_upload <=", value, "isUpload");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andIsUploadIn(List<Integer> values) {
591
+            addCriterion("is_upload in", values, "isUpload");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andIsUploadNotIn(List<Integer> values) {
596
+            addCriterion("is_upload not in", values, "isUpload");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andIsUploadBetween(Integer value1, Integer value2) {
601
+            addCriterion("is_upload between", value1, value2, "isUpload");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andIsUploadNotBetween(Integer value1, Integer value2) {
606
+            addCriterion("is_upload not between", value1, value2, "isUpload");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andUpdatetimeIsNull() {
611
+            addCriterion("updatetime is null");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andUpdatetimeIsNotNull() {
616
+            addCriterion("updatetime is not null");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andUpdatetimeEqualTo(Date value) {
621
+            addCriterion("updatetime =", value, "updatetime");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andUpdatetimeNotEqualTo(Date value) {
626
+            addCriterion("updatetime <>", value, "updatetime");
627
+            return (Criteria) this;
628
+        }
629
+
630
+        public Criteria andUpdatetimeGreaterThan(Date value) {
631
+            addCriterion("updatetime >", value, "updatetime");
632
+            return (Criteria) this;
633
+        }
634
+
635
+        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
636
+            addCriterion("updatetime >=", value, "updatetime");
637
+            return (Criteria) this;
638
+        }
639
+
640
+        public Criteria andUpdatetimeLessThan(Date value) {
641
+            addCriterion("updatetime <", value, "updatetime");
642
+            return (Criteria) this;
643
+        }
644
+
645
+        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
646
+            addCriterion("updatetime <=", value, "updatetime");
647
+            return (Criteria) this;
648
+        }
649
+
650
+        public Criteria andUpdatetimeIn(List<Date> values) {
651
+            addCriterion("updatetime in", values, "updatetime");
652
+            return (Criteria) this;
653
+        }
654
+
655
+        public Criteria andUpdatetimeNotIn(List<Date> values) {
656
+            addCriterion("updatetime not in", values, "updatetime");
657
+            return (Criteria) this;
658
+        }
659
+
660
+        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
661
+            addCriterion("updatetime between", value1, value2, "updatetime");
662
+            return (Criteria) this;
663
+        }
664
+
665
+        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
666
+            addCriterion("updatetime not between", value1, value2, "updatetime");
667
+            return (Criteria) this;
668
+        }
669
+    }
670
+
671
+    /**
672
+     * storage_overhead_set
673
+     */
674
+    public static class Criteria extends GeneratedCriteria {
675
+
676
+        protected Criteria() {
677
+            super();
678
+        }
679
+    }
680
+
681
+    /**
682
+     * storage_overhead_set 2019-05-23
683
+     */
684
+    public static class Criterion {
685
+        private String condition;
686
+
687
+        private Object value;
688
+
689
+        private Object secondValue;
690
+
691
+        private boolean noValue;
692
+
693
+        private boolean singleValue;
694
+
695
+        private boolean betweenValue;
696
+
697
+        private boolean listValue;
698
+
699
+        private String typeHandler;
700
+
701
+        public String getCondition() {
702
+            return condition;
703
+        }
704
+
705
+        public Object getValue() {
706
+            return value;
707
+        }
708
+
709
+        public Object getSecondValue() {
710
+            return secondValue;
711
+        }
712
+
713
+        public boolean isNoValue() {
714
+            return noValue;
715
+        }
716
+
717
+        public boolean isSingleValue() {
718
+            return singleValue;
719
+        }
720
+
721
+        public boolean isBetweenValue() {
722
+            return betweenValue;
723
+        }
724
+
725
+        public boolean isListValue() {
726
+            return listValue;
727
+        }
728
+
729
+        public String getTypeHandler() {
730
+            return typeHandler;
731
+        }
732
+
733
+        protected Criterion(String condition) {
734
+            super();
735
+            this.condition = condition;
736
+            this.typeHandler = null;
737
+            this.noValue = true;
738
+        }
739
+
740
+        protected Criterion(String condition, Object value, String typeHandler) {
741
+            super();
742
+            this.condition = condition;
743
+            this.value = value;
744
+            this.typeHandler = typeHandler;
745
+            if (value instanceof List<?>) {
746
+                this.listValue = true;
747
+            } else {
748
+                this.singleValue = true;
749
+            }
750
+        }
751
+
752
+        protected Criterion(String condition, Object value) {
753
+            this(condition, value, null);
754
+        }
755
+
756
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
757
+            super();
758
+            this.condition = condition;
759
+            this.value = value;
760
+            this.secondValue = secondValue;
761
+            this.typeHandler = typeHandler;
762
+            this.betweenValue = true;
763
+        }
764
+
765
+        protected Criterion(String condition, Object value, Object secondValue) {
766
+            this(condition, value, secondValue, null);
767
+        }
768
+    }
769
+}

+ 185 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualityEvent.java

@@ -0,0 +1,185 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.Date;
4
+
5
+public class StorageQualityEvent {
6
+    private Integer id;
7
+
8
+    private Integer orgId;
9
+
10
+    private Date inputDate;
11
+
12
+    private Integer inputPersonId;
13
+
14
+    private String inputPersonName;
15
+
16
+    private Integer houseId;
17
+
18
+    private Integer wareId;
19
+
20
+    private Integer lspz;
21
+
22
+    private String bgy;
23
+
24
+    private String czwt;
25
+
26
+    /**
27
+     * 主键ID
28
+     * @return id 主键ID
29
+     */
30
+    public Integer getId() {
31
+        return id;
32
+    }
33
+
34
+    /**
35
+     * 主键ID
36
+     * @param id 主键ID
37
+     */
38
+    public void setId(Integer id) {
39
+        this.id = id;
40
+    }
41
+
42
+    /**
43
+     * 单位ID
44
+     * @return org_id 单位ID
45
+     */
46
+    public Integer getOrgId() {
47
+        return orgId;
48
+    }
49
+
50
+    /**
51
+     * 单位ID
52
+     * @param orgId 单位ID
53
+     */
54
+    public void setOrgId(Integer orgId) {
55
+        this.orgId = orgId;
56
+    }
57
+
58
+    /**
59
+     * 登记日期
60
+     * @return input_date 登记日期
61
+     */
62
+    public Date getInputDate() {
63
+        return inputDate;
64
+    }
65
+
66
+    /**
67
+     * 登记日期
68
+     * @param inputDate 登记日期
69
+     */
70
+    public void setInputDate(Date inputDate) {
71
+        this.inputDate = inputDate;
72
+    }
73
+
74
+    /**
75
+     * 登记人ID
76
+     * @return input_person_id 登记人ID
77
+     */
78
+    public Integer getInputPersonId() {
79
+        return inputPersonId;
80
+    }
81
+
82
+    /**
83
+     * 登记人ID
84
+     * @param inputPersonId 登记人ID
85
+     */
86
+    public void setInputPersonId(Integer inputPersonId) {
87
+        this.inputPersonId = inputPersonId;
88
+    }
89
+
90
+    /**
91
+     * 登记人名称
92
+     * @return input_person_name 登记人名称
93
+     */
94
+    public String getInputPersonName() {
95
+        return inputPersonName;
96
+    }
97
+
98
+    /**
99
+     * 登记人名称
100
+     * @param inputPersonName 登记人名称
101
+     */
102
+    public void setInputPersonName(String inputPersonName) {
103
+        this.inputPersonName = inputPersonName == null ? null : inputPersonName.trim();
104
+    }
105
+
106
+    /**
107
+     * 仓房ID
108
+     * @return house_id 仓房ID
109
+     */
110
+    public Integer getHouseId() {
111
+        return houseId;
112
+    }
113
+
114
+    /**
115
+     * 仓房ID
116
+     * @param houseId 仓房ID
117
+     */
118
+    public void setHouseId(Integer houseId) {
119
+        this.houseId = houseId;
120
+    }
121
+
122
+    /**
123
+     * 货位ID
124
+     * @return ware_id 货位ID
125
+     */
126
+    public Integer getWareId() {
127
+        return wareId;
128
+    }
129
+
130
+    /**
131
+     * 货位ID
132
+     * @param wareId 货位ID
133
+     */
134
+    public void setWareId(Integer wareId) {
135
+        this.wareId = wareId;
136
+    }
137
+
138
+    /**
139
+     * 粮食品种
140
+     * @return lspz 粮食品种
141
+     */
142
+    public Integer getLspz() {
143
+        return lspz;
144
+    }
145
+
146
+    /**
147
+     * 粮食品种
148
+     * @param lspz 粮食品种
149
+     */
150
+    public void setLspz(Integer lspz) {
151
+        this.lspz = lspz;
152
+    }
153
+
154
+    /**
155
+     * 保管员
156
+     * @return bgy 保管员
157
+     */
158
+    public String getBgy() {
159
+        return bgy;
160
+    }
161
+
162
+    /**
163
+     * 保管员
164
+     * @param bgy 保管员
165
+     */
166
+    public void setBgy(String bgy) {
167
+        this.bgy = bgy == null ? null : bgy.trim();
168
+    }
169
+
170
+    /**
171
+     * 存在问题
172
+     * @return czwt 存在问题
173
+     */
174
+    public String getCzwt() {
175
+        return czwt;
176
+    }
177
+
178
+    /**
179
+     * 存在问题
180
+     * @param czwt 存在问题
181
+     */
182
+    public void setCzwt(String czwt) {
183
+        this.czwt = czwt == null ? null : czwt.trim();
184
+    }
185
+}

+ 849 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualityEventExample.java

@@ -0,0 +1,849 @@
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 StorageQualityEventExample {
8
+    /**
9
+     * storage_quality_event
10
+     */
11
+    protected String orderByClause;
12
+
13
+    /**
14
+     * storage_quality_event
15
+     */
16
+    protected boolean distinct;
17
+
18
+    /**
19
+     * storage_quality_event
20
+     */
21
+    protected List<Criteria> oredCriteria;
22
+
23
+    public StorageQualityEventExample() {
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_quality_event 2018-10-25
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(Integer value) {
131
+            addCriterion("id =", value, "id");
132
+            return (Criteria) this;
133
+        }
134
+
135
+        public Criteria andIdNotEqualTo(Integer value) {
136
+            addCriterion("id <>", value, "id");
137
+            return (Criteria) this;
138
+        }
139
+
140
+        public Criteria andIdGreaterThan(Integer value) {
141
+            addCriterion("id >", value, "id");
142
+            return (Criteria) this;
143
+        }
144
+
145
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
146
+            addCriterion("id >=", value, "id");
147
+            return (Criteria) this;
148
+        }
149
+
150
+        public Criteria andIdLessThan(Integer value) {
151
+            addCriterion("id <", value, "id");
152
+            return (Criteria) this;
153
+        }
154
+
155
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
156
+            addCriterion("id <=", value, "id");
157
+            return (Criteria) this;
158
+        }
159
+
160
+        public Criteria andIdIn(List<Integer> values) {
161
+            addCriterion("id in", values, "id");
162
+            return (Criteria) this;
163
+        }
164
+
165
+        public Criteria andIdNotIn(List<Integer> values) {
166
+            addCriterion("id not in", values, "id");
167
+            return (Criteria) this;
168
+        }
169
+
170
+        public Criteria andIdBetween(Integer value1, Integer value2) {
171
+            addCriterion("id between", value1, value2, "id");
172
+            return (Criteria) this;
173
+        }
174
+
175
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
176
+            addCriterion("id not between", value1, value2, "id");
177
+            return (Criteria) this;
178
+        }
179
+
180
+        public Criteria andOrgIdIsNull() {
181
+            addCriterion("org_id is null");
182
+            return (Criteria) this;
183
+        }
184
+
185
+        public Criteria andOrgIdIsNotNull() {
186
+            addCriterion("org_id is not null");
187
+            return (Criteria) this;
188
+        }
189
+
190
+        public Criteria andOrgIdEqualTo(Integer value) {
191
+            addCriterion("org_id =", value, "orgId");
192
+            return (Criteria) this;
193
+        }
194
+
195
+        public Criteria andOrgIdNotEqualTo(Integer value) {
196
+            addCriterion("org_id <>", value, "orgId");
197
+            return (Criteria) this;
198
+        }
199
+
200
+        public Criteria andOrgIdGreaterThan(Integer value) {
201
+            addCriterion("org_id >", value, "orgId");
202
+            return (Criteria) this;
203
+        }
204
+
205
+        public Criteria andOrgIdGreaterThanOrEqualTo(Integer value) {
206
+            addCriterion("org_id >=", value, "orgId");
207
+            return (Criteria) this;
208
+        }
209
+
210
+        public Criteria andOrgIdLessThan(Integer value) {
211
+            addCriterion("org_id <", value, "orgId");
212
+            return (Criteria) this;
213
+        }
214
+
215
+        public Criteria andOrgIdLessThanOrEqualTo(Integer value) {
216
+            addCriterion("org_id <=", value, "orgId");
217
+            return (Criteria) this;
218
+        }
219
+
220
+        public Criteria andOrgIdIn(List<Integer> values) {
221
+            addCriterion("org_id in", values, "orgId");
222
+            return (Criteria) this;
223
+        }
224
+
225
+        public Criteria andOrgIdNotIn(List<Integer> values) {
226
+            addCriterion("org_id not in", values, "orgId");
227
+            return (Criteria) this;
228
+        }
229
+
230
+        public Criteria andOrgIdBetween(Integer value1, Integer value2) {
231
+            addCriterion("org_id between", value1, value2, "orgId");
232
+            return (Criteria) this;
233
+        }
234
+
235
+        public Criteria andOrgIdNotBetween(Integer value1, Integer value2) {
236
+            addCriterion("org_id not between", value1, value2, "orgId");
237
+            return (Criteria) this;
238
+        }
239
+
240
+        public Criteria andInputDateIsNull() {
241
+            addCriterion("input_date is null");
242
+            return (Criteria) this;
243
+        }
244
+
245
+        public Criteria andInputDateIsNotNull() {
246
+            addCriterion("input_date is not null");
247
+            return (Criteria) this;
248
+        }
249
+
250
+        public Criteria andInputDateEqualTo(Date value) {
251
+            addCriterion("input_date =", value, "inputDate");
252
+            return (Criteria) this;
253
+        }
254
+
255
+        public Criteria andInputDateNotEqualTo(Date value) {
256
+            addCriterion("input_date <>", value, "inputDate");
257
+            return (Criteria) this;
258
+        }
259
+
260
+        public Criteria andInputDateGreaterThan(Date value) {
261
+            addCriterion("input_date >", value, "inputDate");
262
+            return (Criteria) this;
263
+        }
264
+
265
+        public Criteria andInputDateGreaterThanOrEqualTo(Date value) {
266
+            addCriterion("input_date >=", value, "inputDate");
267
+            return (Criteria) this;
268
+        }
269
+
270
+        public Criteria andInputDateLessThan(Date value) {
271
+            addCriterion("input_date <", value, "inputDate");
272
+            return (Criteria) this;
273
+        }
274
+
275
+        public Criteria andInputDateLessThanOrEqualTo(Date value) {
276
+            addCriterion("input_date <=", value, "inputDate");
277
+            return (Criteria) this;
278
+        }
279
+
280
+        public Criteria andInputDateIn(List<Date> values) {
281
+            addCriterion("input_date in", values, "inputDate");
282
+            return (Criteria) this;
283
+        }
284
+
285
+        public Criteria andInputDateNotIn(List<Date> values) {
286
+            addCriterion("input_date not in", values, "inputDate");
287
+            return (Criteria) this;
288
+        }
289
+
290
+        public Criteria andInputDateBetween(Date value1, Date value2) {
291
+            addCriterion("input_date between", value1, value2, "inputDate");
292
+            return (Criteria) this;
293
+        }
294
+
295
+        public Criteria andInputDateNotBetween(Date value1, Date value2) {
296
+            addCriterion("input_date not between", value1, value2, "inputDate");
297
+            return (Criteria) this;
298
+        }
299
+
300
+        public Criteria andInputPersonIdIsNull() {
301
+            addCriterion("input_person_id is null");
302
+            return (Criteria) this;
303
+        }
304
+
305
+        public Criteria andInputPersonIdIsNotNull() {
306
+            addCriterion("input_person_id is not null");
307
+            return (Criteria) this;
308
+        }
309
+
310
+        public Criteria andInputPersonIdEqualTo(Integer value) {
311
+            addCriterion("input_person_id =", value, "inputPersonId");
312
+            return (Criteria) this;
313
+        }
314
+
315
+        public Criteria andInputPersonIdNotEqualTo(Integer value) {
316
+            addCriterion("input_person_id <>", value, "inputPersonId");
317
+            return (Criteria) this;
318
+        }
319
+
320
+        public Criteria andInputPersonIdGreaterThan(Integer value) {
321
+            addCriterion("input_person_id >", value, "inputPersonId");
322
+            return (Criteria) this;
323
+        }
324
+
325
+        public Criteria andInputPersonIdGreaterThanOrEqualTo(Integer value) {
326
+            addCriterion("input_person_id >=", value, "inputPersonId");
327
+            return (Criteria) this;
328
+        }
329
+
330
+        public Criteria andInputPersonIdLessThan(Integer value) {
331
+            addCriterion("input_person_id <", value, "inputPersonId");
332
+            return (Criteria) this;
333
+        }
334
+
335
+        public Criteria andInputPersonIdLessThanOrEqualTo(Integer value) {
336
+            addCriterion("input_person_id <=", value, "inputPersonId");
337
+            return (Criteria) this;
338
+        }
339
+
340
+        public Criteria andInputPersonIdIn(List<Integer> values) {
341
+            addCriterion("input_person_id in", values, "inputPersonId");
342
+            return (Criteria) this;
343
+        }
344
+
345
+        public Criteria andInputPersonIdNotIn(List<Integer> values) {
346
+            addCriterion("input_person_id not in", values, "inputPersonId");
347
+            return (Criteria) this;
348
+        }
349
+
350
+        public Criteria andInputPersonIdBetween(Integer value1, Integer value2) {
351
+            addCriterion("input_person_id between", value1, value2, "inputPersonId");
352
+            return (Criteria) this;
353
+        }
354
+
355
+        public Criteria andInputPersonIdNotBetween(Integer value1, Integer value2) {
356
+            addCriterion("input_person_id not between", value1, value2, "inputPersonId");
357
+            return (Criteria) this;
358
+        }
359
+
360
+        public Criteria andInputPersonNameIsNull() {
361
+            addCriterion("input_person_name is null");
362
+            return (Criteria) this;
363
+        }
364
+
365
+        public Criteria andInputPersonNameIsNotNull() {
366
+            addCriterion("input_person_name is not null");
367
+            return (Criteria) this;
368
+        }
369
+
370
+        public Criteria andInputPersonNameEqualTo(String value) {
371
+            addCriterion("input_person_name =", value, "inputPersonName");
372
+            return (Criteria) this;
373
+        }
374
+
375
+        public Criteria andInputPersonNameNotEqualTo(String value) {
376
+            addCriterion("input_person_name <>", value, "inputPersonName");
377
+            return (Criteria) this;
378
+        }
379
+
380
+        public Criteria andInputPersonNameGreaterThan(String value) {
381
+            addCriterion("input_person_name >", value, "inputPersonName");
382
+            return (Criteria) this;
383
+        }
384
+
385
+        public Criteria andInputPersonNameGreaterThanOrEqualTo(String value) {
386
+            addCriterion("input_person_name >=", value, "inputPersonName");
387
+            return (Criteria) this;
388
+        }
389
+
390
+        public Criteria andInputPersonNameLessThan(String value) {
391
+            addCriterion("input_person_name <", value, "inputPersonName");
392
+            return (Criteria) this;
393
+        }
394
+
395
+        public Criteria andInputPersonNameLessThanOrEqualTo(String value) {
396
+            addCriterion("input_person_name <=", value, "inputPersonName");
397
+            return (Criteria) this;
398
+        }
399
+
400
+        public Criteria andInputPersonNameLike(String value) {
401
+            addCriterion("input_person_name like", value, "inputPersonName");
402
+            return (Criteria) this;
403
+        }
404
+
405
+        public Criteria andInputPersonNameNotLike(String value) {
406
+            addCriterion("input_person_name not like", value, "inputPersonName");
407
+            return (Criteria) this;
408
+        }
409
+
410
+        public Criteria andInputPersonNameIn(List<String> values) {
411
+            addCriterion("input_person_name in", values, "inputPersonName");
412
+            return (Criteria) this;
413
+        }
414
+
415
+        public Criteria andInputPersonNameNotIn(List<String> values) {
416
+            addCriterion("input_person_name not in", values, "inputPersonName");
417
+            return (Criteria) this;
418
+        }
419
+
420
+        public Criteria andInputPersonNameBetween(String value1, String value2) {
421
+            addCriterion("input_person_name between", value1, value2, "inputPersonName");
422
+            return (Criteria) this;
423
+        }
424
+
425
+        public Criteria andInputPersonNameNotBetween(String value1, String value2) {
426
+            addCriterion("input_person_name not between", value1, value2, "inputPersonName");
427
+            return (Criteria) this;
428
+        }
429
+
430
+        public Criteria andHouseIdIsNull() {
431
+            addCriterion("house_id is null");
432
+            return (Criteria) this;
433
+        }
434
+
435
+        public Criteria andHouseIdIsNotNull() {
436
+            addCriterion("house_id is not null");
437
+            return (Criteria) this;
438
+        }
439
+
440
+        public Criteria andHouseIdEqualTo(Integer value) {
441
+            addCriterion("house_id =", value, "houseId");
442
+            return (Criteria) this;
443
+        }
444
+
445
+        public Criteria andHouseIdNotEqualTo(Integer value) {
446
+            addCriterion("house_id <>", value, "houseId");
447
+            return (Criteria) this;
448
+        }
449
+
450
+        public Criteria andHouseIdGreaterThan(Integer value) {
451
+            addCriterion("house_id >", value, "houseId");
452
+            return (Criteria) this;
453
+        }
454
+
455
+        public Criteria andHouseIdGreaterThanOrEqualTo(Integer value) {
456
+            addCriterion("house_id >=", value, "houseId");
457
+            return (Criteria) this;
458
+        }
459
+
460
+        public Criteria andHouseIdLessThan(Integer value) {
461
+            addCriterion("house_id <", value, "houseId");
462
+            return (Criteria) this;
463
+        }
464
+
465
+        public Criteria andHouseIdLessThanOrEqualTo(Integer value) {
466
+            addCriterion("house_id <=", value, "houseId");
467
+            return (Criteria) this;
468
+        }
469
+
470
+        public Criteria andHouseIdIn(List<Integer> values) {
471
+            addCriterion("house_id in", values, "houseId");
472
+            return (Criteria) this;
473
+        }
474
+
475
+        public Criteria andHouseIdNotIn(List<Integer> values) {
476
+            addCriterion("house_id not in", values, "houseId");
477
+            return (Criteria) this;
478
+        }
479
+
480
+        public Criteria andHouseIdBetween(Integer value1, Integer value2) {
481
+            addCriterion("house_id between", value1, value2, "houseId");
482
+            return (Criteria) this;
483
+        }
484
+
485
+        public Criteria andHouseIdNotBetween(Integer value1, Integer value2) {
486
+            addCriterion("house_id not between", value1, value2, "houseId");
487
+            return (Criteria) this;
488
+        }
489
+
490
+        public Criteria andWareIdIsNull() {
491
+            addCriterion("ware_id is null");
492
+            return (Criteria) this;
493
+        }
494
+
495
+        public Criteria andWareIdIsNotNull() {
496
+            addCriterion("ware_id is not null");
497
+            return (Criteria) this;
498
+        }
499
+
500
+        public Criteria andWareIdEqualTo(Integer value) {
501
+            addCriterion("ware_id =", value, "wareId");
502
+            return (Criteria) this;
503
+        }
504
+
505
+        public Criteria andWareIdNotEqualTo(Integer value) {
506
+            addCriterion("ware_id <>", value, "wareId");
507
+            return (Criteria) this;
508
+        }
509
+
510
+        public Criteria andWareIdGreaterThan(Integer value) {
511
+            addCriterion("ware_id >", value, "wareId");
512
+            return (Criteria) this;
513
+        }
514
+
515
+        public Criteria andWareIdGreaterThanOrEqualTo(Integer value) {
516
+            addCriterion("ware_id >=", value, "wareId");
517
+            return (Criteria) this;
518
+        }
519
+
520
+        public Criteria andWareIdLessThan(Integer value) {
521
+            addCriterion("ware_id <", value, "wareId");
522
+            return (Criteria) this;
523
+        }
524
+
525
+        public Criteria andWareIdLessThanOrEqualTo(Integer value) {
526
+            addCriterion("ware_id <=", value, "wareId");
527
+            return (Criteria) this;
528
+        }
529
+
530
+        public Criteria andWareIdIn(List<Integer> values) {
531
+            addCriterion("ware_id in", values, "wareId");
532
+            return (Criteria) this;
533
+        }
534
+
535
+        public Criteria andWareIdNotIn(List<Integer> values) {
536
+            addCriterion("ware_id not in", values, "wareId");
537
+            return (Criteria) this;
538
+        }
539
+
540
+        public Criteria andWareIdBetween(Integer value1, Integer value2) {
541
+            addCriterion("ware_id between", value1, value2, "wareId");
542
+            return (Criteria) this;
543
+        }
544
+
545
+        public Criteria andWareIdNotBetween(Integer value1, Integer value2) {
546
+            addCriterion("ware_id not between", value1, value2, "wareId");
547
+            return (Criteria) this;
548
+        }
549
+
550
+        public Criteria andLspzIsNull() {
551
+            addCriterion("lspz is null");
552
+            return (Criteria) this;
553
+        }
554
+
555
+        public Criteria andLspzIsNotNull() {
556
+            addCriterion("lspz is not null");
557
+            return (Criteria) this;
558
+        }
559
+
560
+        public Criteria andLspzEqualTo(Integer value) {
561
+            addCriterion("lspz =", value, "lspz");
562
+            return (Criteria) this;
563
+        }
564
+
565
+        public Criteria andLspzNotEqualTo(Integer value) {
566
+            addCriterion("lspz <>", value, "lspz");
567
+            return (Criteria) this;
568
+        }
569
+
570
+        public Criteria andLspzGreaterThan(Integer value) {
571
+            addCriterion("lspz >", value, "lspz");
572
+            return (Criteria) this;
573
+        }
574
+
575
+        public Criteria andLspzGreaterThanOrEqualTo(Integer value) {
576
+            addCriterion("lspz >=", value, "lspz");
577
+            return (Criteria) this;
578
+        }
579
+
580
+        public Criteria andLspzLessThan(Integer value) {
581
+            addCriterion("lspz <", value, "lspz");
582
+            return (Criteria) this;
583
+        }
584
+
585
+        public Criteria andLspzLessThanOrEqualTo(Integer value) {
586
+            addCriterion("lspz <=", value, "lspz");
587
+            return (Criteria) this;
588
+        }
589
+
590
+        public Criteria andLspzIn(List<Integer> values) {
591
+            addCriterion("lspz in", values, "lspz");
592
+            return (Criteria) this;
593
+        }
594
+
595
+        public Criteria andLspzNotIn(List<Integer> values) {
596
+            addCriterion("lspz not in", values, "lspz");
597
+            return (Criteria) this;
598
+        }
599
+
600
+        public Criteria andLspzBetween(Integer value1, Integer value2) {
601
+            addCriterion("lspz between", value1, value2, "lspz");
602
+            return (Criteria) this;
603
+        }
604
+
605
+        public Criteria andLspzNotBetween(Integer value1, Integer value2) {
606
+            addCriterion("lspz not between", value1, value2, "lspz");
607
+            return (Criteria) this;
608
+        }
609
+
610
+        public Criteria andBgyIsNull() {
611
+            addCriterion("bgy is null");
612
+            return (Criteria) this;
613
+        }
614
+
615
+        public Criteria andBgyIsNotNull() {
616
+            addCriterion("bgy is not null");
617
+            return (Criteria) this;
618
+        }
619
+
620
+        public Criteria andBgyEqualTo(String value) {
621
+            addCriterion("bgy =", value, "bgy");
622
+            return (Criteria) this;
623
+        }
624
+
625
+        public Criteria andBgyNotEqualTo(String value) {
626
+            addCriterion("bgy <>", value, "bgy");
627
+            return (Criteria) this;
628
+        }
629
+
630
+        public Criteria andBgyGreaterThan(String value) {
631
+            addCriterion("bgy >", value, "bgy");
632
+            return (Criteria) this;
633
+        }
634
+
635
+        public Criteria andBgyGreaterThanOrEqualTo(String value) {
636
+            addCriterion("bgy >=", value, "bgy");
637
+            return (Criteria) this;
638
+        }
639
+
640
+        public Criteria andBgyLessThan(String value) {
641
+            addCriterion("bgy <", value, "bgy");
642
+            return (Criteria) this;
643
+        }
644
+
645
+        public Criteria andBgyLessThanOrEqualTo(String value) {
646
+            addCriterion("bgy <=", value, "bgy");
647
+            return (Criteria) this;
648
+        }
649
+
650
+        public Criteria andBgyLike(String value) {
651
+            addCriterion("bgy like", value, "bgy");
652
+            return (Criteria) this;
653
+        }
654
+
655
+        public Criteria andBgyNotLike(String value) {
656
+            addCriterion("bgy not like", value, "bgy");
657
+            return (Criteria) this;
658
+        }
659
+
660
+        public Criteria andBgyIn(List<String> values) {
661
+            addCriterion("bgy in", values, "bgy");
662
+            return (Criteria) this;
663
+        }
664
+
665
+        public Criteria andBgyNotIn(List<String> values) {
666
+            addCriterion("bgy not in", values, "bgy");
667
+            return (Criteria) this;
668
+        }
669
+
670
+        public Criteria andBgyBetween(String value1, String value2) {
671
+            addCriterion("bgy between", value1, value2, "bgy");
672
+            return (Criteria) this;
673
+        }
674
+
675
+        public Criteria andBgyNotBetween(String value1, String value2) {
676
+            addCriterion("bgy not between", value1, value2, "bgy");
677
+            return (Criteria) this;
678
+        }
679
+
680
+        public Criteria andCzwtIsNull() {
681
+            addCriterion("czwt is null");
682
+            return (Criteria) this;
683
+        }
684
+
685
+        public Criteria andCzwtIsNotNull() {
686
+            addCriterion("czwt is not null");
687
+            return (Criteria) this;
688
+        }
689
+
690
+        public Criteria andCzwtEqualTo(String value) {
691
+            addCriterion("czwt =", value, "czwt");
692
+            return (Criteria) this;
693
+        }
694
+
695
+        public Criteria andCzwtNotEqualTo(String value) {
696
+            addCriterion("czwt <>", value, "czwt");
697
+            return (Criteria) this;
698
+        }
699
+
700
+        public Criteria andCzwtGreaterThan(String value) {
701
+            addCriterion("czwt >", value, "czwt");
702
+            return (Criteria) this;
703
+        }
704
+
705
+        public Criteria andCzwtGreaterThanOrEqualTo(String value) {
706
+            addCriterion("czwt >=", value, "czwt");
707
+            return (Criteria) this;
708
+        }
709
+
710
+        public Criteria andCzwtLessThan(String value) {
711
+            addCriterion("czwt <", value, "czwt");
712
+            return (Criteria) this;
713
+        }
714
+
715
+        public Criteria andCzwtLessThanOrEqualTo(String value) {
716
+            addCriterion("czwt <=", value, "czwt");
717
+            return (Criteria) this;
718
+        }
719
+
720
+        public Criteria andCzwtLike(String value) {
721
+            addCriterion("czwt like", value, "czwt");
722
+            return (Criteria) this;
723
+        }
724
+
725
+        public Criteria andCzwtNotLike(String value) {
726
+            addCriterion("czwt not like", value, "czwt");
727
+            return (Criteria) this;
728
+        }
729
+
730
+        public Criteria andCzwtIn(List<String> values) {
731
+            addCriterion("czwt in", values, "czwt");
732
+            return (Criteria) this;
733
+        }
734
+
735
+        public Criteria andCzwtNotIn(List<String> values) {
736
+            addCriterion("czwt not in", values, "czwt");
737
+            return (Criteria) this;
738
+        }
739
+
740
+        public Criteria andCzwtBetween(String value1, String value2) {
741
+            addCriterion("czwt between", value1, value2, "czwt");
742
+            return (Criteria) this;
743
+        }
744
+
745
+        public Criteria andCzwtNotBetween(String value1, String value2) {
746
+            addCriterion("czwt not between", value1, value2, "czwt");
747
+            return (Criteria) this;
748
+        }
749
+    }
750
+
751
+    /**
752
+     * storage_quality_event
753
+     */
754
+    public static class Criteria extends GeneratedCriteria {
755
+
756
+        protected Criteria() {
757
+            super();
758
+        }
759
+    }
760
+
761
+    /**
762
+     * storage_quality_event 2018-10-25
763
+     */
764
+    public static class Criterion {
765
+        private String condition;
766
+
767
+        private Object value;
768
+
769
+        private Object secondValue;
770
+
771
+        private boolean noValue;
772
+
773
+        private boolean singleValue;
774
+
775
+        private boolean betweenValue;
776
+
777
+        private boolean listValue;
778
+
779
+        private String typeHandler;
780
+
781
+        public String getCondition() {
782
+            return condition;
783
+        }
784
+
785
+        public Object getValue() {
786
+            return value;
787
+        }
788
+
789
+        public Object getSecondValue() {
790
+            return secondValue;
791
+        }
792
+
793
+        public boolean isNoValue() {
794
+            return noValue;
795
+        }
796
+
797
+        public boolean isSingleValue() {
798
+            return singleValue;
799
+        }
800
+
801
+        public boolean isBetweenValue() {
802
+            return betweenValue;
803
+        }
804
+
805
+        public boolean isListValue() {
806
+            return listValue;
807
+        }
808
+
809
+        public String getTypeHandler() {
810
+            return typeHandler;
811
+        }
812
+
813
+        protected Criterion(String condition) {
814
+            super();
815
+            this.condition = condition;
816
+            this.typeHandler = null;
817
+            this.noValue = true;
818
+        }
819
+
820
+        protected Criterion(String condition, Object value, String typeHandler) {
821
+            super();
822
+            this.condition = condition;
823
+            this.value = value;
824
+            this.typeHandler = typeHandler;
825
+            if (value instanceof List<?>) {
826
+                this.listValue = true;
827
+            } else {
828
+                this.singleValue = true;
829
+            }
830
+        }
831
+
832
+        protected Criterion(String condition, Object value) {
833
+            this(condition, value, null);
834
+        }
835
+
836
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
837
+            super();
838
+            this.condition = condition;
839
+            this.value = value;
840
+            this.secondValue = secondValue;
841
+            this.typeHandler = typeHandler;
842
+            this.betweenValue = true;
843
+        }
844
+
845
+        protected Criterion(String condition, Object value, Object secondValue) {
846
+            this(condition, value, secondValue, null);
847
+        }
848
+    }
849
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1663 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheck.java


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 5969 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckExample.java


+ 75 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckSon.java

@@ -0,0 +1,75 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+public class StorageQualitycheckSon {
4
+    private Integer id;
5
+
6
+    private Integer qualitycheckId;
7
+
8
+    private Integer numbering;
9
+
10
+    private String setValue;
11
+
12
+    /**
13
+     * 
14
+     * @return id 
15
+     */
16
+    public Integer getId() {
17
+        return id;
18
+    }
19
+
20
+    /**
21
+     * 
22
+     * @param id 
23
+     */
24
+    public void setId(Integer id) {
25
+        this.id = id;
26
+    }
27
+
28
+    /**
29
+     * 质量检查信息表主键
30
+     * @return qualitycheck_id 质量检查信息表主键
31
+     */
32
+    public Integer getQualitycheckId() {
33
+        return qualitycheckId;
34
+    }
35
+
36
+    /**
37
+     * 质量检查信息表主键
38
+     * @param qualitycheckId 质量检查信息表主键
39
+     */
40
+    public void setQualitycheckId(Integer qualitycheckId) {
41
+        this.qualitycheckId = qualitycheckId;
42
+    }
43
+
44
+    /**
45
+     * 设置保存编号
46
+     * @return numbering 设置保存编号
47
+     */
48
+    public Integer getNumbering() {
49
+        return numbering;
50
+    }
51
+
52
+    /**
53
+     * 设置保存编号
54
+     * @param numbering 设置保存编号
55
+     */
56
+    public void setNumbering(Integer numbering) {
57
+        this.numbering = numbering;
58
+    }
59
+
60
+    /**
61
+     * 输入的内容
62
+     * @return set_value 输入的内容
63
+     */
64
+    public String getSetValue() {
65
+        return setValue;
66
+    }
67
+
68
+    /**
69
+     * 输入的内容
70
+     * @param setValue 输入的内容
71
+     */
72
+    public void setSetValue(String setValue) {
73
+        this.setValue = setValue == null ? null : setValue.trim();
74
+    }
75
+}

+ 468 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheckSonExample.java

@@ -0,0 +1,468 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+public class StorageQualitycheckSonExample {
7
+    /**
8
+     * storage_qualitycheck_son
9
+     */
10
+    protected String orderByClause;
11
+
12
+    /**
13
+     * storage_qualitycheck_son
14
+     */
15
+    protected boolean distinct;
16
+
17
+    /**
18
+     * storage_qualitycheck_son
19
+     */
20
+    protected List<Criteria> oredCriteria;
21
+
22
+    public StorageQualitycheckSonExample() {
23
+        oredCriteria = new ArrayList<Criteria>();
24
+    }
25
+
26
+    public void setOrderByClause(String orderByClause) {
27
+        this.orderByClause = orderByClause;
28
+    }
29
+
30
+    public String getOrderByClause() {
31
+        return orderByClause;
32
+    }
33
+
34
+    public void setDistinct(boolean distinct) {
35
+        this.distinct = distinct;
36
+    }
37
+
38
+    public boolean isDistinct() {
39
+        return distinct;
40
+    }
41
+
42
+    public List<Criteria> getOredCriteria() {
43
+        return oredCriteria;
44
+    }
45
+
46
+    public void or(Criteria criteria) {
47
+        oredCriteria.add(criteria);
48
+    }
49
+
50
+    public Criteria or() {
51
+        Criteria criteria = createCriteriaInternal();
52
+        oredCriteria.add(criteria);
53
+        return criteria;
54
+    }
55
+
56
+    public Criteria createCriteria() {
57
+        Criteria criteria = createCriteriaInternal();
58
+        if (oredCriteria.size() == 0) {
59
+            oredCriteria.add(criteria);
60
+        }
61
+        return criteria;
62
+    }
63
+
64
+    protected Criteria createCriteriaInternal() {
65
+        Criteria criteria = new Criteria();
66
+        return criteria;
67
+    }
68
+
69
+    public void clear() {
70
+        oredCriteria.clear();
71
+        orderByClause = null;
72
+        distinct = false;
73
+    }
74
+
75
+    /**
76
+     * storage_qualitycheck_son 2017-12-23
77
+     */
78
+    protected abstract static class GeneratedCriteria {
79
+        protected List<Criterion> criteria;
80
+
81
+        protected GeneratedCriteria() {
82
+            super();
83
+            criteria = new ArrayList<Criterion>();
84
+        }
85
+
86
+        public boolean isValid() {
87
+            return criteria.size() > 0;
88
+        }
89
+
90
+        public List<Criterion> getAllCriteria() {
91
+            return criteria;
92
+        }
93
+
94
+        public List<Criterion> getCriteria() {
95
+            return criteria;
96
+        }
97
+
98
+        protected void addCriterion(String condition) {
99
+            if (condition == null) {
100
+                throw new RuntimeException("Value for condition cannot be null");
101
+            }
102
+            criteria.add(new Criterion(condition));
103
+        }
104
+
105
+        protected void addCriterion(String condition, Object value, String property) {
106
+            if (value == null) {
107
+                throw new RuntimeException("Value for " + property + " cannot be null");
108
+            }
109
+            criteria.add(new Criterion(condition, value));
110
+        }
111
+
112
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
113
+            if (value1 == null || value2 == null) {
114
+                throw new RuntimeException("Between values for " + property + " cannot be null");
115
+            }
116
+            criteria.add(new Criterion(condition, value1, value2));
117
+        }
118
+
119
+        public Criteria andIdIsNull() {
120
+            addCriterion("id is null");
121
+            return (Criteria) this;
122
+        }
123
+
124
+        public Criteria andIdIsNotNull() {
125
+            addCriterion("id is not null");
126
+            return (Criteria) this;
127
+        }
128
+
129
+        public Criteria andIdEqualTo(Integer value) {
130
+            addCriterion("id =", value, "id");
131
+            return (Criteria) this;
132
+        }
133
+
134
+        public Criteria andIdNotEqualTo(Integer value) {
135
+            addCriterion("id <>", value, "id");
136
+            return (Criteria) this;
137
+        }
138
+
139
+        public Criteria andIdGreaterThan(Integer value) {
140
+            addCriterion("id >", value, "id");
141
+            return (Criteria) this;
142
+        }
143
+
144
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
145
+            addCriterion("id >=", value, "id");
146
+            return (Criteria) this;
147
+        }
148
+
149
+        public Criteria andIdLessThan(Integer value) {
150
+            addCriterion("id <", value, "id");
151
+            return (Criteria) this;
152
+        }
153
+
154
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
155
+            addCriterion("id <=", value, "id");
156
+            return (Criteria) this;
157
+        }
158
+
159
+        public Criteria andIdIn(List<Integer> values) {
160
+            addCriterion("id in", values, "id");
161
+            return (Criteria) this;
162
+        }
163
+
164
+        public Criteria andIdNotIn(List<Integer> values) {
165
+            addCriterion("id not in", values, "id");
166
+            return (Criteria) this;
167
+        }
168
+
169
+        public Criteria andIdBetween(Integer value1, Integer value2) {
170
+            addCriterion("id between", value1, value2, "id");
171
+            return (Criteria) this;
172
+        }
173
+
174
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
175
+            addCriterion("id not between", value1, value2, "id");
176
+            return (Criteria) this;
177
+        }
178
+
179
+        public Criteria andQualitycheckIdIsNull() {
180
+            addCriterion("qualitycheck_id is null");
181
+            return (Criteria) this;
182
+        }
183
+
184
+        public Criteria andQualitycheckIdIsNotNull() {
185
+            addCriterion("qualitycheck_id is not null");
186
+            return (Criteria) this;
187
+        }
188
+
189
+        public Criteria andQualitycheckIdEqualTo(Integer value) {
190
+            addCriterion("qualitycheck_id =", value, "qualitycheckId");
191
+            return (Criteria) this;
192
+        }
193
+
194
+        public Criteria andQualitycheckIdNotEqualTo(Integer value) {
195
+            addCriterion("qualitycheck_id <>", value, "qualitycheckId");
196
+            return (Criteria) this;
197
+        }
198
+
199
+        public Criteria andQualitycheckIdGreaterThan(Integer value) {
200
+            addCriterion("qualitycheck_id >", value, "qualitycheckId");
201
+            return (Criteria) this;
202
+        }
203
+
204
+        public Criteria andQualitycheckIdGreaterThanOrEqualTo(Integer value) {
205
+            addCriterion("qualitycheck_id >=", value, "qualitycheckId");
206
+            return (Criteria) this;
207
+        }
208
+
209
+        public Criteria andQualitycheckIdLessThan(Integer value) {
210
+            addCriterion("qualitycheck_id <", value, "qualitycheckId");
211
+            return (Criteria) this;
212
+        }
213
+
214
+        public Criteria andQualitycheckIdLessThanOrEqualTo(Integer value) {
215
+            addCriterion("qualitycheck_id <=", value, "qualitycheckId");
216
+            return (Criteria) this;
217
+        }
218
+
219
+        public Criteria andQualitycheckIdIn(List<Integer> values) {
220
+            addCriterion("qualitycheck_id in", values, "qualitycheckId");
221
+            return (Criteria) this;
222
+        }
223
+
224
+        public Criteria andQualitycheckIdNotIn(List<Integer> values) {
225
+            addCriterion("qualitycheck_id not in", values, "qualitycheckId");
226
+            return (Criteria) this;
227
+        }
228
+
229
+        public Criteria andQualitycheckIdBetween(Integer value1, Integer value2) {
230
+            addCriterion("qualitycheck_id between", value1, value2, "qualitycheckId");
231
+            return (Criteria) this;
232
+        }
233
+
234
+        public Criteria andQualitycheckIdNotBetween(Integer value1, Integer value2) {
235
+            addCriterion("qualitycheck_id not between", value1, value2, "qualitycheckId");
236
+            return (Criteria) this;
237
+        }
238
+
239
+        public Criteria andNumberingIsNull() {
240
+            addCriterion("numbering is null");
241
+            return (Criteria) this;
242
+        }
243
+
244
+        public Criteria andNumberingIsNotNull() {
245
+            addCriterion("numbering is not null");
246
+            return (Criteria) this;
247
+        }
248
+
249
+        public Criteria andNumberingEqualTo(Integer value) {
250
+            addCriterion("numbering =", value, "numbering");
251
+            return (Criteria) this;
252
+        }
253
+
254
+        public Criteria andNumberingNotEqualTo(Integer value) {
255
+            addCriterion("numbering <>", value, "numbering");
256
+            return (Criteria) this;
257
+        }
258
+
259
+        public Criteria andNumberingGreaterThan(Integer value) {
260
+            addCriterion("numbering >", value, "numbering");
261
+            return (Criteria) this;
262
+        }
263
+
264
+        public Criteria andNumberingGreaterThanOrEqualTo(Integer value) {
265
+            addCriterion("numbering >=", value, "numbering");
266
+            return (Criteria) this;
267
+        }
268
+
269
+        public Criteria andNumberingLessThan(Integer value) {
270
+            addCriterion("numbering <", value, "numbering");
271
+            return (Criteria) this;
272
+        }
273
+
274
+        public Criteria andNumberingLessThanOrEqualTo(Integer value) {
275
+            addCriterion("numbering <=", value, "numbering");
276
+            return (Criteria) this;
277
+        }
278
+
279
+        public Criteria andNumberingIn(List<Integer> values) {
280
+            addCriterion("numbering in", values, "numbering");
281
+            return (Criteria) this;
282
+        }
283
+
284
+        public Criteria andNumberingNotIn(List<Integer> values) {
285
+            addCriterion("numbering not in", values, "numbering");
286
+            return (Criteria) this;
287
+        }
288
+
289
+        public Criteria andNumberingBetween(Integer value1, Integer value2) {
290
+            addCriterion("numbering between", value1, value2, "numbering");
291
+            return (Criteria) this;
292
+        }
293
+
294
+        public Criteria andNumberingNotBetween(Integer value1, Integer value2) {
295
+            addCriterion("numbering not between", value1, value2, "numbering");
296
+            return (Criteria) this;
297
+        }
298
+
299
+        public Criteria andSetValueIsNull() {
300
+            addCriterion("set_value is null");
301
+            return (Criteria) this;
302
+        }
303
+
304
+        public Criteria andSetValueIsNotNull() {
305
+            addCriterion("set_value is not null");
306
+            return (Criteria) this;
307
+        }
308
+
309
+        public Criteria andSetValueEqualTo(String value) {
310
+            addCriterion("set_value =", value, "setValue");
311
+            return (Criteria) this;
312
+        }
313
+
314
+        public Criteria andSetValueNotEqualTo(String value) {
315
+            addCriterion("set_value <>", value, "setValue");
316
+            return (Criteria) this;
317
+        }
318
+
319
+        public Criteria andSetValueGreaterThan(String value) {
320
+            addCriterion("set_value >", value, "setValue");
321
+            return (Criteria) this;
322
+        }
323
+
324
+        public Criteria andSetValueGreaterThanOrEqualTo(String value) {
325
+            addCriterion("set_value >=", value, "setValue");
326
+            return (Criteria) this;
327
+        }
328
+
329
+        public Criteria andSetValueLessThan(String value) {
330
+            addCriterion("set_value <", value, "setValue");
331
+            return (Criteria) this;
332
+        }
333
+
334
+        public Criteria andSetValueLessThanOrEqualTo(String value) {
335
+            addCriterion("set_value <=", value, "setValue");
336
+            return (Criteria) this;
337
+        }
338
+
339
+        public Criteria andSetValueLike(String value) {
340
+            addCriterion("set_value like", value, "setValue");
341
+            return (Criteria) this;
342
+        }
343
+
344
+        public Criteria andSetValueNotLike(String value) {
345
+            addCriterion("set_value not like", value, "setValue");
346
+            return (Criteria) this;
347
+        }
348
+
349
+        public Criteria andSetValueIn(List<String> values) {
350
+            addCriterion("set_value in", values, "setValue");
351
+            return (Criteria) this;
352
+        }
353
+
354
+        public Criteria andSetValueNotIn(List<String> values) {
355
+            addCriterion("set_value not in", values, "setValue");
356
+            return (Criteria) this;
357
+        }
358
+
359
+        public Criteria andSetValueBetween(String value1, String value2) {
360
+            addCriterion("set_value between", value1, value2, "setValue");
361
+            return (Criteria) this;
362
+        }
363
+
364
+        public Criteria andSetValueNotBetween(String value1, String value2) {
365
+            addCriterion("set_value not between", value1, value2, "setValue");
366
+            return (Criteria) this;
367
+        }
368
+    }
369
+
370
+    /**
371
+     * storage_qualitycheck_son
372
+     */
373
+    public static class Criteria extends GeneratedCriteria {
374
+
375
+        protected Criteria() {
376
+            super();
377
+        }
378
+    }
379
+
380
+    /**
381
+     * storage_qualitycheck_son 2017-12-23
382
+     */
383
+    public static class Criterion {
384
+        private String condition;
385
+
386
+        private Object value;
387
+
388
+        private Object secondValue;
389
+
390
+        private boolean noValue;
391
+
392
+        private boolean singleValue;
393
+
394
+        private boolean betweenValue;
395
+
396
+        private boolean listValue;
397
+
398
+        private String typeHandler;
399
+
400
+        public String getCondition() {
401
+            return condition;
402
+        }
403
+
404
+        public Object getValue() {
405
+            return value;
406
+        }
407
+
408
+        public Object getSecondValue() {
409
+            return secondValue;
410
+        }
411
+
412
+        public boolean isNoValue() {
413
+            return noValue;
414
+        }
415
+
416
+        public boolean isSingleValue() {
417
+            return singleValue;
418
+        }
419
+
420
+        public boolean isBetweenValue() {
421
+            return betweenValue;
422
+        }
423
+
424
+        public boolean isListValue() {
425
+            return listValue;
426
+        }
427
+
428
+        public String getTypeHandler() {
429
+            return typeHandler;
430
+        }
431
+
432
+        protected Criterion(String condition) {
433
+            super();
434
+            this.condition = condition;
435
+            this.typeHandler = null;
436
+            this.noValue = true;
437
+        }
438
+
439
+        protected Criterion(String condition, Object value, String typeHandler) {
440
+            super();
441
+            this.condition = condition;
442
+            this.value = value;
443
+            this.typeHandler = typeHandler;
444
+            if (value instanceof List<?>) {
445
+                this.listValue = true;
446
+            } else {
447
+                this.singleValue = true;
448
+            }
449
+        }
450
+
451
+        protected Criterion(String condition, Object value) {
452
+            this(condition, value, null);
453
+        }
454
+
455
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
456
+            super();
457
+            this.condition = condition;
458
+            this.value = value;
459
+            this.secondValue = secondValue;
460
+            this.typeHandler = typeHandler;
461
+            this.betweenValue = true;
462
+        }
463
+
464
+        protected Criterion(String condition, Object value, Object secondValue) {
465
+            this(condition, value, secondValue, null);
466
+        }
467
+    }
468
+}

+ 239 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageStorehouseBusiness.java

@@ -0,0 +1,239 @@
1
+package com.chinaitop.depot.storage.model;
2
+
3
+public class StorageStorehouseBusiness {
4
+    private Integer id;
5
+
6
+    private Integer orgId;
7
+
8
+    private Integer storehouseId;
9
+
10
+    private Integer warehouseId;
11
+
12
+    private String pz;
13
+
14
+    private String fullStorehouseStatus;
15
+
16
+    private String aerationStatus;
17
+
18
+    private String fumigationStatus;
19
+
20
+    private String rkStatus;
21
+
22
+    private String ckStatus;
23
+
24
+    private String nhlStatus;
25
+
26
+    private String remark;
27
+
28
+    //业务字段
29
+    private String storehouseName;//仓房名称
30
+    private String warehouseName;//货位名称
31
+
32
+    /**
33
+     * 编号
34
+     * @return id 编号
35
+     */
36
+    public Integer getId() {
37
+        return id;
38
+    }
39
+
40
+    /**
41
+     * 编号
42
+     * @param id 编号
43
+     */
44
+    public void setId(Integer id) {
45
+        this.id = id;
46
+    }
47
+
48
+    /**
49
+     * 单位ID
50
+     * @return org_id 单位ID
51
+     */
52
+    public Integer getOrgId() {
53
+        return orgId;
54
+    }
55
+
56
+    /**
57
+     * 单位ID
58
+     * @param orgId 单位ID
59
+     */
60
+    public void setOrgId(Integer orgId) {
61
+        this.orgId = orgId;
62
+    }
63
+
64
+    /**
65
+     * 仓房ID
66
+     * @return storehouse_id 仓房ID
67
+     */
68
+    public Integer getStorehouseId() {
69
+        return storehouseId;
70
+    }
71
+
72
+    /**
73
+     * 仓房ID
74
+     * @param storehouseId 仓房ID
75
+     */
76
+    public void setStorehouseId(Integer storehouseId) {
77
+        this.storehouseId = storehouseId;
78
+    }
79
+
80
+    /**
81
+     * 货位ID
82
+     * @return warehouse_id 货位ID
83
+     */
84
+    public Integer getWarehouseId() {
85
+        return warehouseId;
86
+    }
87
+
88
+    /**
89
+     * 货位ID
90
+     * @param warehouseId 货位ID
91
+     */
92
+    public void setWarehouseId(Integer warehouseId) {
93
+        this.warehouseId = warehouseId;
94
+    }
95
+
96
+    /**
97
+     * 品种
98
+     * @return pz 品种
99
+     */
100
+    public String getPz() {
101
+        return pz;
102
+    }
103
+
104
+    /**
105
+     * 品种
106
+     * @param pz 品种
107
+     */
108
+    public void setPz(String pz) {
109
+        this.pz = pz == null ? null : pz.trim();
110
+    }
111
+
112
+    /**
113
+     * 满仓状态:1满仓,0非满仓
114
+     * @return full_storehouse_status 满仓状态:1满仓,0非满仓
115
+     */
116
+    public String getFullStorehouseStatus() {
117
+        return fullStorehouseStatus;
118
+    }
119
+
120
+    /**
121
+     * 满仓状态:1满仓,0非满仓
122
+     * @param fullStorehouseStatus 满仓状态:1满仓,0非满仓
123
+     */
124
+    public void setFullStorehouseStatus(String fullStorehouseStatus) {
125
+        this.fullStorehouseStatus = fullStorehouseStatus == null ? null : fullStorehouseStatus.trim();
126
+    }
127
+
128
+    /**
129
+     * 通风状态
130
+     * @return aeration_status 通风状态
131
+     */
132
+    public String getAerationStatus() {
133
+        return aerationStatus;
134
+    }
135
+
136
+    /**
137
+     * 通风状态
138
+     * @param aerationStatus 通风状态
139
+     */
140
+    public void setAerationStatus(String aerationStatus) {
141
+        this.aerationStatus = aerationStatus == null ? null : aerationStatus.trim();
142
+    }
143
+
144
+    /**
145
+     * 熏蒸状态
146
+     * @return fumigation_status 熏蒸状态
147
+     */
148
+    public String getFumigationStatus() {
149
+        return fumigationStatus;
150
+    }
151
+
152
+    /**
153
+     * 熏蒸状态
154
+     * @param fumigationStatus 熏蒸状态
155
+     */
156
+    public void setFumigationStatus(String fumigationStatus) {
157
+        this.fumigationStatus = fumigationStatus == null ? null : fumigationStatus.trim();
158
+    }
159
+
160
+    /**
161
+     * 入库状态
162
+     * @return rk_status 入库状态
163
+     */
164
+    public String getRkStatus() {
165
+        return rkStatus;
166
+    }
167
+
168
+    /**
169
+     * 入库状态
170
+     * @param rkStatus 入库状态
171
+     */
172
+    public void setRkStatus(String rkStatus) {
173
+        this.rkStatus = rkStatus == null ? null : rkStatus.trim();
174
+    }
175
+
176
+    /**
177
+     * 出库状态
178
+     * @return ck_status 出库状态
179
+     */
180
+    public String getCkStatus() {
181
+        return ckStatus;
182
+    }
183
+
184
+    /**
185
+     * 出库状态
186
+     * @param ckStatus 出库状态
187
+     */
188
+    public void setCkStatus(String ckStatus) {
189
+        this.ckStatus = ckStatus == null ? null : ckStatus.trim();
190
+    }
191
+
192
+    /**
193
+     * 内环刘状态
194
+     * @return nhl_status 内环刘状态
195
+     */
196
+    public String getNhlStatus() {
197
+        return nhlStatus;
198
+    }
199
+
200
+    /**
201
+     * 内环刘状态
202
+     * @param nhlStatus 内环刘状态
203
+     */
204
+    public void setNhlStatus(String nhlStatus) {
205
+        this.nhlStatus = nhlStatus == null ? null : nhlStatus.trim();
206
+    }
207
+
208
+    /**
209
+     * 备注
210
+     * @return remark 备注
211
+     */
212
+    public String getRemark() {
213
+        return remark;
214
+    }
215
+
216
+    /**
217
+     * 备注
218
+     * @param remark 备注
219
+     */
220
+    public void setRemark(String remark) {
221
+        this.remark = remark == null ? null : remark.trim();
222
+    }
223
+
224
+    public String getStorehouseName() {
225
+        return storehouseName;
226
+    }
227
+
228
+    public void setStorehouseName(String storehouseName) {
229
+        this.storehouseName = storehouseName;
230
+    }
231
+
232
+    public String getWarehouseName() {
233
+        return warehouseName;
234
+    }
235
+
236
+    public void setWarehouseName(String warehouseName) {
237
+        this.warehouseName = warehouseName;
238
+    }
239
+}

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 1018 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageStorehouseBusinessExample.java


+ 209 - 0
src/main/java/com/chinaitop/depot/storage/model/vo/StorageQualitycheckVo.java

@@ -0,0 +1,209 @@
1
+package com.chinaitop.depot.storage.model.vo;
2
+
3
+import java.math.BigDecimal;
4
+
5
+/**
6
+ * @Description:
7
+ * @Author: sunhongbing
8
+ * @Date: 2018/8/27
9
+ */
10
+public class StorageQualitycheckVo {
11
+    private String storehouseType;
12
+    private BigDecimal designCapacity;
13
+    private BigDecimal length;
14
+    private String depotName;
15
+    private BigDecimal width;
16
+    private String storehouseCode;
17
+    private String warehouseCode;
18
+    private String keeperNames;
19
+    private String hwxz;
20
+    private Integer pz;
21
+    private Integer mxpz;
22
+    private Double kcsl;
23
+    private String hwcd;
24
+    private String scnf;
25
+    private String wjh;
26
+    private String scnfName;
27
+    private String pzCode;
28
+    private String placeCode;
29
+    private String companyNature;//组织机构的社会信用代码
30
+    private String orgCode;
31
+    private Integer depotId;
32
+    private Integer qualitycheckId;
33
+
34
+    public String getStorehouseType() {
35
+        return storehouseType;
36
+    }
37
+
38
+    public void setStorehouseType(String storehouseType) {
39
+        this.storehouseType = storehouseType;
40
+    }
41
+
42
+    public BigDecimal getDesignCapacity() {
43
+        return designCapacity;
44
+    }
45
+
46
+    public void setDesignCapacity(BigDecimal designCapacity) {
47
+        this.designCapacity = designCapacity;
48
+    }
49
+
50
+    public BigDecimal getLength() {
51
+        return length;
52
+    }
53
+
54
+    public void setLength(BigDecimal length) {
55
+        this.length = length;
56
+    }
57
+
58
+    public String getDepotName() {
59
+        return depotName;
60
+    }
61
+
62
+    public void setDepotName(String depotName) {
63
+        this.depotName = depotName;
64
+    }
65
+
66
+    public BigDecimal getWidth() {
67
+        return width;
68
+    }
69
+
70
+    public void setWidth(BigDecimal width) {
71
+        this.width = width;
72
+    }
73
+
74
+    public String getStorehouseCode() {
75
+        return storehouseCode;
76
+    }
77
+
78
+    public void setStorehouseCode(String storehouseCode) {
79
+        this.storehouseCode = storehouseCode;
80
+    }
81
+
82
+    public String getWarehouseCode() {
83
+        return warehouseCode;
84
+    }
85
+
86
+    public void setWarehouseCode(String warehouseCode) {
87
+        this.warehouseCode = warehouseCode;
88
+    }
89
+
90
+    public String getKeeperNames() {
91
+        return keeperNames;
92
+    }
93
+
94
+    public void setKeeperNames(String keeperNames) {
95
+        this.keeperNames = keeperNames;
96
+    }
97
+
98
+    public String getHwxz() {
99
+        return hwxz;
100
+    }
101
+
102
+    public void setHwxz(String hwxz) {
103
+        this.hwxz = hwxz;
104
+    }
105
+
106
+    public Integer getPz() {
107
+        return pz;
108
+    }
109
+
110
+    public void setPz(Integer pz) {
111
+        this.pz = pz;
112
+    }
113
+
114
+    public Integer getMxpz() {
115
+        return mxpz;
116
+    }
117
+
118
+    public void setMxpz(Integer mxpz) {
119
+        this.mxpz = mxpz;
120
+    }
121
+
122
+    public Double getKcsl() {
123
+        return kcsl;
124
+    }
125
+
126
+    public void setKcsl(Double kcsl) {
127
+        this.kcsl = kcsl;
128
+    }
129
+
130
+    public String getHwcd() {
131
+        return hwcd;
132
+    }
133
+
134
+    public void setHwcd(String hwcd) {
135
+        this.hwcd = hwcd;
136
+    }
137
+
138
+    public String getScnf() {
139
+        return scnf;
140
+    }
141
+
142
+    public void setScnf(String scnf) {
143
+        this.scnf = scnf;
144
+    }
145
+
146
+    public String getWjh() {
147
+        return wjh;
148
+    }
149
+
150
+    public void setWjh(String wjh) {
151
+        this.wjh = wjh;
152
+    }
153
+
154
+    public String getScnfName() {
155
+        return scnfName;
156
+    }
157
+
158
+    public void setScnfName(String scnfName) {
159
+        this.scnfName = scnfName;
160
+    }
161
+
162
+    public String getPzCode() {
163
+        return pzCode;
164
+    }
165
+
166
+    public void setPzCode(String pzCode) {
167
+        this.pzCode = pzCode;
168
+    }
169
+
170
+    public String getPlaceCode() {
171
+        return placeCode;
172
+    }
173
+
174
+    public void setPlaceCode(String placeCode) {
175
+        this.placeCode = placeCode;
176
+    }
177
+
178
+    public String getCompanyNature() {
179
+        return companyNature;
180
+    }
181
+
182
+    public void setCompanyNature(String companyNature) {
183
+        this.companyNature = companyNature;
184
+    }
185
+
186
+    public String getOrgCode() {
187
+        return orgCode;
188
+    }
189
+
190
+    public void setOrgCode(String orgCode) {
191
+        this.orgCode = orgCode;
192
+    }
193
+
194
+    public Integer getDepotId() {
195
+        return depotId;
196
+    }
197
+
198
+    public void setDepotId(Integer depotId) {
199
+        this.depotId = depotId;
200
+    }
201
+
202
+    public Integer getQualitycheckId() {
203
+        return qualitycheckId;
204
+    }
205
+
206
+    public void setQualitycheckId(Integer qualitycheckId) {
207
+        this.qualitycheckId = qualitycheckId;
208
+    }
209
+}

+ 29 - 0
src/main/java/com/chinaitop/depot/storage/quartz/StorageHouseBusinessQuartz.java

@@ -0,0 +1,29 @@
1
+/**
2
+ * 
3
+ */
4
+package com.chinaitop.depot.storage.quartz;
5
+
6
+import com.chinaitop.depot.storage.service.StorageStorehouseBusinessService;
7
+import org.springframework.stereotype.Component;
8
+
9
+import javax.annotation.Resource;
10
+
11
+/**
12
+ * <p>Title: StorageHouseBusiness</p>
13
+ * <p>Description: </p>
14
+ * @author yaoyabin
15
+ * @date 2018年5月7日 下午4:16:10
16
+ */
17
+@Component("storageHouseBusinessQuartz")
18
+public class StorageHouseBusinessQuartz {
19
+    @Resource
20
+    private StorageStorehouseBusinessService businessService;
21
+    
22
+    public void insertStorehouseBusinessFromFcbgz() {
23
+        //从分仓保管账取出仓房和货位以及品种加入到仓房业务信息表中
24
+
25
+       /* System.out.println(ParameterUtil.getSysDateTime() + "开始插入仓房业务信息表...");
26
+        businessService.saveStorehouseBusinessFromFcbgz();*/
27
+
28
+    }
29
+}

+ 37 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseTaskDetailService.java

@@ -0,0 +1,37 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail;
7
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample;
8
+
9
+public interface StorageChangeStoragehouseTaskDetailService {
10
+	/**
11
+	 * 新增倒仓数据
12
+	 * @param storageChangeStoragehouseTask
13
+	 */
14
+	public void addStorageChangeStoragehouseTaskDetail(StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail);
15
+
16
+	public  Map<String, Object> findByStoreData(Integer id);
17
+	/**
18
+	 * 查询列表显示数据
19
+	 * @param detailExamle
20
+	 * @return
21
+	 */
22
+	public List<StorageChangeStoragehouseTaskDetail> selectByExample(StorageChangeStoragehouseTaskDetailExample detailExamle);
23
+	/**
24
+	 * 修改子表数据
25
+	 * @param storageChangeStoragehouseTaskDetail
26
+	 */
27
+	public void updateStorageChangeStoragehouseTaskDetail(StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail);
28
+	/**
29
+	 * 根据倒仓单号删除子表一条倒仓数据
30
+	 * @param detailExamle
31
+	 */
32
+	public void removeChangeData(StorageChangeStoragehouseTaskDetailExample detailExamle);
33
+
34
+	public void updateDcStatus1(StorageChangeStoragehouseTaskDetail detail);
35
+
36
+
37
+}

+ 42 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseTaskService.java

@@ -0,0 +1,42 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+
5
+import com.chinaitop.depot.storage.model.BusinessFile;
6
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask;
7
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample;
8
+
9
+public interface StorageChangeStoragehouseTaskService {
10
+	
11
+	/**
12
+	 * 查询倒仓列表
13
+	 * @param example
14
+	 * @return
15
+	 */
16
+	List<StorageChangeStoragehouseTask> selectByExample(StorageChangeStoragehouseTaskExample example);
17
+	
18
+	/**
19
+	 * 新增倒仓数据
20
+	 * @param example
21
+	 * @return
22
+	 */
23
+	public void addStorageChangeStoragehouseTask(StorageChangeStoragehouseTask storageChangeStoragehouseTask);
24
+	/**
25
+	 * 修改倒仓数据
26
+	 * @param storageChangeStoragehouseTask
27
+	 */
28
+	public void updateStorageChangeStoragehouseTask(StorageChangeStoragehouseTask storageChangeStoragehouseTask);
29
+	/**
30
+	 * 删除一条倒仓数据
31
+	 * @param example
32
+	 */
33
+	public void removeChangeData(StorageChangeStoragehouseTaskExample example);
34
+
35
+	void updateDcStatus(StorageChangeStoragehouseTask storageChangeIsUpload);
36
+
37
+	void updateFileByFileIdsAndBid(String fileIds, Integer storageId, String fileType);
38
+
39
+	List<BusinessFile> getByBid(Integer id, String fileType, Integer orgId, String order);
40
+
41
+
42
+}

+ 26 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageChangeStoragehouseWorkTaskService.java

@@ -0,0 +1,26 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+
5
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask;
6
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample;
7
+
8
+public interface StorageChangeStoragehouseWorkTaskService {
9
+	/**
10
+	 * 修改倒仓数据
11
+	 * @param storageChangeStoragehouseTask
12
+	 */
13
+	public void updateStorageChangeStoragehouseTask(StorageChangeStoragehouseWorkTask storageChangeStoragehouseTask);
14
+	/**
15
+	 * 增加数据到倒仓工作表
16
+	 * @param storageChangeStoragehouseWorkTask
17
+	 */
18
+	public void addStorageChangeStoragehouseTaskDetail(StorageChangeStoragehouseWorkTask storageChangeStoragehouseWorkTask);
19
+	/**
20
+	 * 查询工作表子表数据进行展示
21
+	 * @param detailExamle
22
+	 * @return
23
+	 */
24
+	public List<StorageChangeStoragehouseWorkTask> selectByExample(StorageChangeStoragehouseWorkTaskExample detailExamle);
25
+
26
+}

+ 41 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageDumpService.java

@@ -0,0 +1,41 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import com.chinaitop.depot.storage.model.StorageDump;
7
+import com.chinaitop.depot.storage.model.StorageDumpExample;
8
+
9
+public interface StorageDumpService {
10
+
11
+	/**
12
+	 * 保存
13
+	 * @param storageDump
14
+	 */
15
+	void save(StorageDump storageDump);
16
+
17
+	/**
18
+	 * 按ID查询数据
19
+	 * 
20
+	 * @param id 数据ID
21
+	 * @return
22
+	 */
23
+	StorageDump findByParmaryKey(Integer id);
24
+
25
+	/**
26
+	 * 按照条件查询数据
27
+	 * 
28
+	 * @param example
29
+	 * @return
30
+	 */
31
+	List<StorageDump> findCondition(StorageDumpExample example);
32
+
33
+	/**
34
+     * 查询验收通过的数据
35
+     * 
36
+     * @param orgId 单位ID
37
+     * @return
38
+     */
39
+	List<Map<String, Object>> selectYswData(Integer orgId);
40
+
41
+}

+ 30 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageFoodbasicInfoCheckService.java

@@ -0,0 +1,30 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoCheck;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoCheckExample;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * @author sunhongbing
10
+ * @Date 2017/10/19
11
+ */
12
+public interface StorageFoodbasicInfoCheckService {
13
+    /**
14
+     * 条件查询foodbasicInfoCheck列表
15
+     * @param foodbasicInfoCheck
16
+     * @return
17
+     */
18
+    List<StorageFoodbasicInfoCheck> queryByFoodbasicInfoCheck(StorageFoodbasicInfoCheckExample foodbasicInfoCheck);
19
+    /**
20
+     * 新增foodbasicInfoCheck信息
21
+     * @param foodbasicInfoCheck
22
+     */
23
+    void save(StorageFoodbasicInfoCheck foodbasicInfoCheck);
24
+    /**
25
+     * 根据id查询数据
26
+     * @param id
27
+     * @return
28
+     */
29
+    StorageFoodbasicInfoCheck loadDataById(int id);
30
+}

+ 36 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageFoodbasicInfoLocationService.java

@@ -0,0 +1,36 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocationExample;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * @author sunhongbing
10
+ * @Date 2017/10/20
11
+ */
12
+public interface StorageFoodbasicInfoLocationService {
13
+    /**
14
+     * 条件查询houseRepair列表
15
+     * @param
16
+     * @return
17
+     */
18
+    List<StorageFoodbasicInfoLocation> queryByFoodbasicInfoLocation(StorageFoodbasicInfoLocation location);
19
+    /**
20
+     * 新增foodbasicInfoCheck信息
21
+     * @param foodbasicInfoLocation
22
+     */
23
+    void save(StorageFoodbasicInfoLocation foodbasicInfoLocation);
24
+    /**
25
+     * 根据id查询数据
26
+     * @param id
27
+     * @return
28
+     */
29
+    StorageFoodbasicInfoLocation loadDataById(int id);
30
+
31
+    /**
32
+     * 根据原货位号查找该记录
33
+     * @return
34
+     */
35
+     List<StorageFoodbasicInfoLocation> getFoodbasicInfoLocationByWarehouseCode(Integer houseId, Integer wareHouseId);
36
+}

+ 55 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageFoodbasicInfoService.java

@@ -0,0 +1,55 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+
4
+
5
+import com.chinaitop.depot.storage.model.StorageFoodbasicinfo;
6
+import com.chinaitop.depot.storage.model.StorageFoodbasicinfoExample;
7
+import com.chinaitop.depot.storage.model.vo.StorageQualitycheckVo;
8
+
9
+import java.util.List;
10
+
11
+/**
12
+ * @author sunhongbing
13
+ * @Date 2017/10/26
14
+ */
15
+public interface StorageFoodbasicInfoService {
16
+
17
+	/**
18
+	 * 查询粮情专卡列表
19
+	 * @param example
20
+	 * @return
21
+	 */
22
+	List<StorageFoodbasicinfo> selectByExample(StorageFoodbasicinfo example);
23
+
24
+	/**
25
+	 * 按仓房和货位一组粮情专卡数据
26
+	 * 
27
+	 * @param foodbasicinfo 条件集合
28
+	 * @return
29
+	 */
30
+	List<StorageFoodbasicinfo> getByHouseIdAndWarehouseId(StorageFoodbasicinfo foodbasicinfo);
31
+    
32
+    /**
33
+     * 新增
34
+     * 
35
+     * @param foodbasicInfo 数据对象
36
+     */
37
+    void save(StorageFoodbasicinfo foodbasicInfo, StorageQualitycheckVo qualitycheckVo,Integer orgId);
38
+	/**
39
+	 * 根据id查询数据
40
+	 *
41
+	 * @param id
42
+	 * @return
43
+	 */
44
+	StorageFoodbasicinfo loadDataById(int id);
45
+
46
+	void setFoodBasicInfoHistoryStatus(Integer houseId, Integer warehouseId);
47
+
48
+	/**
49
+	 * 根据条件查询粮情专卡数据
50
+	 * 
51
+	 * @param example
52
+	 * @return
53
+	 */
54
+	List<StorageFoodbasicinfo> findByCondition(StorageFoodbasicinfoExample example);
55
+}

+ 47 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageKcglJkqyqApplyDefaultService.java

@@ -0,0 +1,47 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import com.chinaitop.depot.storage.model.BusinessFile;
7
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefault;
8
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqApplyDefaultExample;
9
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqDefault;
10
+import com.chinaitop.depot.storage.model.StorageKcglJkqyqDefaultExample;
11
+
12
+public interface StorageKcglJkqyqApplyDefaultService {
13
+
14
+	List<StorageKcglJkqyqDefault> findByList(StorageKcglJkqyqDefaultExample example);
15
+
16
+	void addDataKcglJkqyqDefault(StorageKcglJkqyqDefault dataKcglJkqyqDefault);
17
+
18
+	void addDataKcglJkqyqDefault1(StorageKcglJkqyqApplyDefault dataKcglJkqyqDefault1);
19
+
20
+	void updateDataKcglJkqyqDefault(StorageKcglJkqyqDefault dataKcglJkqyqDefault);
21
+
22
+	void updateDataKcglJkqyqDefault1(StorageKcglJkqyqApplyDefault dataKcglJkqyqDefault1);
23
+
24
+	List<StorageKcglJkqyqDefault> selectByExample(StorageKcglJkqyqDefaultExample example);
25
+
26
+	List<StorageKcglJkqyqApplyDefault> selectBy1Example(StorageKcglJkqyqApplyDefaultExample detailExamle);
27
+
28
+	void removeOverData(StorageKcglJkqyqDefaultExample example);
29
+
30
+	void removeOver1Data(StorageKcglJkqyqApplyDefaultExample detailExamle);
31
+
32
+	void updateJkqIsUpload(StorageKcglJkqyqDefault dataKcglJkq);
33
+
34
+	void updateJkq1Status(StorageKcglJkqyqApplyDefault dataKcglJkq1);
35
+
36
+	void updateJkqStatus(StorageKcglJkqyqDefault dataKcglJkqyqDefault);
37
+
38
+	void updateFileByFileIdsAndBid(String fileIds, Integer yqsqId, String fileType);
39
+
40
+	List<BusinessFile> getByBid(Integer bid, String fileType, Integer orgId, String order);
41
+
42
+	List<Map<String, Object>> getjkqPlanList(Map<String, Object> map);
43
+
44
+	List<Map<String, Object>> getjkqDataDayList(Map<String, Object> countMap);
45
+
46
+	
47
+}

+ 44 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageOverheadSetService.java

@@ -0,0 +1,44 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+import java.util.Map;
5
+
6
+import com.chinaitop.depot.storage.model.StorageOverheadSet;
7
+import com.chinaitop.depot.storage.model.StorageOverheadSetExample;
8
+
9
+public interface StorageOverheadSetService {
10
+
11
+	/**
12
+	 * 添加
13
+	 * 
14
+	 * @param storageOverheadSet
15
+	 */
16
+	void insert(StorageOverheadSet storageOverheadSet);
17
+
18
+	/**
19
+	 * 修改
20
+	 * 
21
+	 * @param example
22
+	 */
23
+	void update(StorageOverheadSet storageOverheadSet);
24
+
25
+	/**
26
+	 * 按条件查询数据
27
+	 * 
28
+	 * @param example
29
+	 * @return
30
+	 */
31
+	List<StorageOverheadSet> findConditions(StorageOverheadSetExample example);
32
+
33
+	/**
34
+	 * 按ID查询数据
35
+	 * 
36
+	 * @param id
37
+	 * @return
38
+	 */
39
+	StorageOverheadSet findByKeyCondition(Integer id);
40
+
41
+	List<Map<String, Object>> getOverYqDaysList(Map<String, Object> map);
42
+
43
+	List<Map<String, Object>> findOverHeadList(Map<String, Object> map);
44
+}

+ 39 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageQualityEventService.java

@@ -0,0 +1,39 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import java.util.List;
4
+
5
+import com.chinaitop.depot.storage.model.StorageQualityEvent;
6
+import com.chinaitop.depot.storage.model.StorageQualityEventExample;
7
+
8
+public interface StorageQualityEventService {
9
+
10
+	/**
11
+	 * 质量事件新增
12
+	 * 
13
+	 * @param qualityEvent
14
+	 */
15
+	void save(StorageQualityEvent qualityEvent);
16
+
17
+	/**
18
+	 * 质量事件查询详情
19
+	 * 
20
+	 * @param id
21
+	 * @return
22
+	 */
23
+	StorageQualityEvent findByPrimaryKey(Integer id);
24
+
25
+	/**
26
+	 * 查询质量事件列表
27
+	 * 
28
+	 * @param example
29
+	 * @return
30
+	 */
31
+	List<StorageQualityEvent> findByCondition(StorageQualityEventExample example);
32
+
33
+	/**
34
+	 * 修改一条质量事件
35
+	 * 
36
+	 * @param qualityEvent
37
+	 */
38
+	void update(StorageQualityEvent qualityEvent);
39
+}

+ 121 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageQualitycheckService.java

@@ -0,0 +1,121 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import com.chinaitop.depot.storage.model.StorageQualitycheck;
4
+import com.chinaitop.depot.storage.model.StorageQualitycheckExample;
5
+import com.chinaitop.depot.storage.model.StorageQualitycheckSon;
6
+
7
+import java.util.List;
8
+import java.util.Map;
9
+
10
+public interface StorageQualitycheckService {
11
+
12
+	/**
13
+	 * 按条件查询qualitycheck列表
14
+	 *
15
+	 * @param example
16
+	 * @return
17
+	 */
18
+	List<StorageQualitycheck> findByCondition(StorageQualitycheckExample example);
19
+
20
+	/**
21
+	 * 条件查询qualitycheck列表
22
+	 *
23
+	 * @param example
24
+	 * @return
25
+	 */
26
+	List<StorageQualitycheck> queryByQualitycheck(StorageQualitycheck example);
27
+
28
+	/**
29
+	 * 新增qualitycheck信息
30
+	 *
31
+	 * @param qualitycheck
32
+	 */
33
+	Integer save(StorageQualitycheck qualitycheck);
34
+
35
+	/**
36
+	 * 新增qualitycheck字表信息
37
+	 *
38
+	 * @param qualitycheckone
39
+	 */
40
+	void saveOne(StorageQualitycheckSon qualitycheckone);
41
+
42
+	/**
43
+	 * 根据id查询数据
44
+	 *
45
+	 * @param id
46
+	 * @return
47
+	 */
48
+	StorageQualitycheck loadDataById(Integer id);
49
+
50
+	/**
51
+	 * 根据主键id删除数据
52
+	 *
53
+	 * @param id
54
+	 */
55
+	void remove(int id);
56
+
57
+    /**
58
+     * @param qualitycheck
59
+     * @return
60
+     */
61
+    List<StorageQualitycheck> getHouseOrWareList(
62
+            StorageQualitycheck qualitycheck);
63
+
64
+    /**
65
+     * @param id
66
+     * @return
67
+     */
68
+    String getQualityStandardStr(Integer id);
69
+
70
+	/**
71
+	 * 查询第三方检查列表
72
+	 * @param qualitycheck
73
+	 * @return
74
+	 */
75
+	List<StorageQualitycheck> getThirdCheckList(StorageQualitycheck qualitycheck);
76
+	/**
77
+	 * 查询粮情专卡中粮食质量检测记录
78
+	 * @param qualitycheck
79
+	 * @return
80
+	 */
81
+	List<StorageQualitycheck> getQualitycheckListByFoodbasicinfoCheck(StorageQualitycheck qualitycheck,Integer foodbasicinfoId);
82
+
83
+	void setQualityCheckByHistoryStatus (Integer houseId, Integer warehouseId);
84
+	List<Map<String,Object>> getStoreQualityList(Integer orgId);
85
+	List<Map<String,Object>> getTrdStoreQualityList();
86
+
87
+	List<StorageQualitycheck> getDataByZJId(Map<String, Object> paramMap);
88
+
89
+
90
+	/**
91
+	 * 取出封仓需要的数据
92
+	 * @param qualityCheckExample
93
+	 * @return
94
+	 */
95
+	List<StorageQualitycheck> queryByQualitycheckData(StorageQualitycheck qualityCheckExample);
96
+
97
+	/**
98
+	 * 查看business_store_ware_detail中是否有数据
99
+	 * @param qualityCheckExample
100
+	 * @return
101
+	 */
102
+	List<StorageQualitycheck> queryByQualitycheckusiness(StorageQualitycheck qualityCheckExample);
103
+
104
+	/**
105
+	 * 库点同步 - 质检信息主表
106
+	 * @return
107
+	 */
108
+    List<Map<String,Object>> getAllQualityMain(Map<String, Object> paramMap);
109
+
110
+	/**
111
+	 * 库点同步 - 质检信息明细
112
+	 * @return
113
+	 */
114
+	List<Map<String, Object>> getAllQualityInfo(Map<String, Object> paramMap);
115
+
116
+	/**
117
+	 * 库点同步 - 粮食库存
118
+	 * @return
119
+	 */
120
+    List<Map<String, Object>> getAllFoodStocks(Map<String, Object> paramMap);
121
+}

+ 33 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageQualitycheckSonService.java

@@ -0,0 +1,33 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import com.chinaitop.depot.storage.model.StorageQualitycheckSon;
4
+import com.chinaitop.depot.storage.model.StorageQualitycheckSonExample;
5
+
6
+import java.util.List;
7
+
8
+/**
9
+ * @author sunhongbing
10
+ * @Date 2017/12/23
11
+ */
12
+public interface StorageQualitycheckSonService {
13
+    List<StorageQualitycheckSon> findQualitycheckSonExample(StorageQualitycheckSonExample storageQualitycheckSonExample);
14
+    /**
15
+     * 根据qualitycheckId删除数据
16
+     * @param
17
+     */
18
+    public void removeSon(StorageQualitycheckSonExample storageQualitycheckSonExample);
19
+
20
+    /**
21
+     * 获取qualitycheck 对应的数据
22
+     * @param foodbasicinfoId
23
+     * @return
24
+     */
25
+    List<StorageQualitycheckSon> getQualitycheckSonByFoodbasicinfoCheck(Integer foodbasicinfoId);
26
+
27
+    /**
28
+     * 根据qualitycheckId查询数据
29
+     * @param id
30
+     * @return
31
+     */
32
+    List<StorageQualitycheckSon> selectByQualitycheckId(Integer id);
33
+}

+ 94 - 0
src/main/java/com/chinaitop/depot/storage/service/StorageStorehouseBusinessService.java

@@ -0,0 +1,94 @@
1
+package com.chinaitop.depot.storage.service;
2
+
3
+import com.chinaitop.depot.storage.model.StorageStorehouseBusiness;
4
+import com.chinaitop.depot.storage.model.StorageStorehouseBusinessExample;
5
+import com.chinaitop.depot.storage.utils.OnOffEnum;
6
+import com.chinaitop.depot.storage.utils.TaskEnum;
7
+
8
+
9
+import java.util.List;
10
+import java.util.Map;
11
+
12
+public interface StorageStorehouseBusinessService {
13
+
14
+	/**
15
+	 * 新增数据
16
+	 * 
17
+	 * @param storageStorehouseBusiness 数据对象
18
+	 * @throws Exception
19
+	 */
20
+	void add(StorageStorehouseBusiness storageStorehouseBusiness) throws Exception;
21
+
22
+	/**
23
+	 * 删除数据
24
+	 * 
25
+	 * @param id 数据ID
26
+	 * @throws Exception
27
+	 */
28
+	void remove(Integer id) throws Exception;
29
+
30
+	/**
31
+	 * 修改数据
32
+	 * 
33
+	 * @param storageStorehouseBusiness 数据对象
34
+	 * @throws Exception
35
+	 */
36
+	void update(StorageStorehouseBusiness storageStorehouseBusiness) throws Exception;
37
+
38
+	/**
39
+	 * 按ID查询一条数据
40
+	 * 
41
+	 * @param id 数据ID
42
+	 * @return
43
+	 * @throws Exception
44
+	 */
45
+	StorageStorehouseBusiness findById(Integer id) throws Exception;
46
+
47
+	/**
48
+	 * 按条件查询多条数据
49
+	 * 
50
+	 * @param example
51
+	 * @return
52
+	 * @throws Exception
53
+	 */
54
+	List<StorageStorehouseBusiness> findCondition(StorageStorehouseBusinessExample example) throws Exception;
55
+
56
+	/**
57
+	 * 根据分仓保管账中的仓房名称
58
+	 *
59
+	 * @return
60
+	 */
61
+	public Map<String, Object> getStorehouseData();
62
+
63
+	/**
64
+	 * 根据分仓保管账中的仓房ID得到货位
65
+	 *
66
+	 * @return
67
+	 */
68
+	public Map<String, Object> getWarehouseData(Integer ch);
69
+
70
+	/**
71
+	 * 从分仓保管账中查数据插入到仓房业务表
72
+	 */
73
+	void saveStorehouseBusinessFromFcbgz();
74
+
75
+	/**
76
+	 * 更新仓房业务表的通风状态
77
+	 *
78
+	 * @param houseId 仓房ID
79
+	 * @param wareId 货位ID
80
+	 * @param orgId 单位ID
81
+	 * @param aerationStatus 通风状态
82
+	 */
83
+	void updateAerationStatus(Integer houseId, Integer wareId, Integer orgId, String aerationStatus);
84
+
85
+    /**
86
+     * 作业状态修改接口
87
+     * 主要作业:入库、出库、通风、熏蒸、内环流
88
+     * @param task 枚举类型,对对应枚举进行作业状态修改,可参考TaskEnum
89
+     * @param type 类型,ON 状态开启,OFF 状态关闭,可参考OnOffEnum
90
+     * @param cfid 仓房id
91
+     */
92
+    public void setStatusForTask(TaskEnum task, OnOffEnum type, int cfid);
93
+
94
+}

+ 59 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseTaskDetailServiceImpl.java

@@ -0,0 +1,59 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.util.ArrayList;
4
+import java.util.HashMap;
5
+import java.util.List;
6
+import java.util.Map;
7
+
8
+import javax.annotation.Resource;
9
+
10
+import org.springframework.stereotype.Service;
11
+
12
+import com.chinaitop.depot.storage.mapper.StorageChangeStoragehouseTaskDetailMapper;
13
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetail;
14
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskDetailExample;
15
+import com.chinaitop.depot.storage.service.StorageChangeStoragehouseTaskDetailService;
16
+@Service
17
+public class StorageChangeStoragehouseTaskDetailServiceImpl implements StorageChangeStoragehouseTaskDetailService {
18
+
19
+	@Resource
20
+	private	StorageChangeStoragehouseTaskDetailMapper storageChangeStoragehouseTaskDetailMapper;
21
+	/**
22
+	 * 新增倒仓子表数据
23
+	 */
24
+
25
+	@Override
26
+	public void addStorageChangeStoragehouseTaskDetail(StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail) {
27
+		storageChangeStoragehouseTaskDetailMapper.insertSelective(storageChangeStoragehouseTaskDetail);
28
+	}
29
+	@Override
30
+	public Map<String, Object> findByStoreData(Integer id)  {
31
+		Map<String, Object> map = new HashMap<String, Object>();
32
+		List<StorageChangeStoragehouseTaskDetail> xlxwList = new ArrayList<StorageChangeStoragehouseTaskDetail>(); //学历学位信息1
33
+		StorageChangeStoragehouseTaskDetail ekeObje = new StorageChangeStoragehouseTaskDetail();
34
+		xlxwList.add(ekeObje);
35
+		map.put("xlxwList", xlxwList);
36
+		return map;
37
+	}
38
+	@Override
39
+	public List<StorageChangeStoragehouseTaskDetail> selectByExample(
40
+			StorageChangeStoragehouseTaskDetailExample detailExamle) {
41
+		return storageChangeStoragehouseTaskDetailMapper.selectByExample(detailExamle);
42
+	}
43
+	@Override
44
+	public void updateStorageChangeStoragehouseTaskDetail(StorageChangeStoragehouseTaskDetail storageChangeStoragehouseTaskDetail) {
45
+		storageChangeStoragehouseTaskDetailMapper.updateByPrimaryKey(storageChangeStoragehouseTaskDetail);
46
+		
47
+	}
48
+	@Override
49
+	public void removeChangeData(StorageChangeStoragehouseTaskDetailExample detailExamle) {
50
+		storageChangeStoragehouseTaskDetailMapper.deleteByExample(detailExamle);
51
+		
52
+	}
53
+	@Override
54
+	public void updateDcStatus1(StorageChangeStoragehouseTaskDetail detail) {
55
+		storageChangeStoragehouseTaskDetailMapper.updateBybusinessNo(detail);
56
+	}
57
+	
58
+
59
+}

+ 108 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseTaskServiceImpl.java

@@ -0,0 +1,108 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+import javax.annotation.Resource;
7
+
8
+import org.apache.commons.lang3.StringUtils;
9
+import org.springframework.beans.factory.annotation.Autowired;
10
+import org.springframework.stereotype.Service;
11
+
12
+import com.chinaitop.depot.storage.mapper.BusinessFileMapper;
13
+import com.chinaitop.depot.storage.mapper.StorageChangeStoragehouseTaskMapper;
14
+import com.chinaitop.depot.storage.model.BusinessFile;
15
+import com.chinaitop.depot.storage.model.BusinessFileExample;
16
+import com.chinaitop.depot.storage.model.BusinessFileExample.Criteria;
17
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTask;
18
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseTaskExample;
19
+import com.chinaitop.depot.storage.service.StorageChangeStoragehouseTaskService;
20
+@Service
21
+public class StorageChangeStoragehouseTaskServiceImpl implements StorageChangeStoragehouseTaskService {
22
+
23
+	@Resource 
24
+	private StorageChangeStoragehouseTaskMapper storageChangeStoragehouseTaskMapper;
25
+	
26
+	@Autowired
27
+    private BusinessFileMapper fileMapper;
28
+	/**
29
+	 * 查询倒仓主表数据
30
+	 */
31
+	@Override
32
+	public List<StorageChangeStoragehouseTask> selectByExample(StorageChangeStoragehouseTaskExample example) {
33
+		return storageChangeStoragehouseTaskMapper.selectByExample(example);
34
+	}
35
+	/**
36
+	 * 新增倒仓数据
37
+	 */
38
+	@Override
39
+	public void addStorageChangeStoragehouseTask(StorageChangeStoragehouseTask storageChangeStoragehouseTask) {
40
+		storageChangeStoragehouseTaskMapper.insertSelective(storageChangeStoragehouseTask);
41
+	}
42
+	/**
43
+	 * 修改倒仓数据
44
+	 */
45
+	@Override
46
+	public void updateStorageChangeStoragehouseTask(StorageChangeStoragehouseTask storageChangeStoragehouseTask) {
47
+		storageChangeStoragehouseTaskMapper.updateByPrimaryKey(storageChangeStoragehouseTask);
48
+		
49
+	}
50
+	/**
51
+	 * 删除一条倒仓数据
52
+	 */
53
+	@Override
54
+	public void removeChangeData(StorageChangeStoragehouseTaskExample example) {
55
+		storageChangeStoragehouseTaskMapper.deleteByExample(example);
56
+		
57
+	}
58
+	@Override
59
+	public void updateDcStatus(StorageChangeStoragehouseTask storageChangeIsUpload) {
60
+		storageChangeStoragehouseTaskMapper.updateByPrimaryKeySelective(storageChangeIsUpload);
61
+	}
62
+	/**
63
+	 * 添加文件到business_file
64
+	 */
65
+	@Override
66
+	public void updateFileByFileIdsAndBid(String fileIds, Integer storageId, String fileType) {
67
+		 if (StringUtils.isNotBlank(fileIds) && !"[]".equals(fileIds)) {
68
+	            BusinessFile businessFile = new BusinessFile();
69
+	            businessFile.setBid(storageId);
70
+	            
71
+	            BusinessFileExample example = new BusinessFileExample();
72
+	            Criteria createCriteria = example.createCriteria();
73
+	            // 去除开头结尾.
74
+	            fileIds = fileIds.substring(1, fileIds.length());
75
+	            fileIds = fileIds.substring(0, fileIds.length() - 1);
76
+	            String[] idArray = fileIds.split(",");
77
+	            List<Integer> idList = new ArrayList<Integer>();
78
+	            for (String id : idArray) {
79
+	                idList.add(Integer.parseInt(id));
80
+	            }
81
+	            
82
+	            createCriteria.andIdIn(idList);
83
+	            createCriteria.andTypeEqualTo(fileType);
84
+	            fileMapper.updateByExampleSelective(businessFile, example);
85
+        }
86
+	}
87
+	@Override
88
+	public List<BusinessFile> getByBid(Integer bid, String fileType, Integer orgId, String order) {
89
+		BusinessFileExample example = new BusinessFileExample();
90
+        Criteria criteria = example.createCriteria();
91
+        
92
+    		if (null != fileType) {
93
+        		criteria.andTypeEqualTo(fileType);
94
+        	}
95
+        	if (null != bid) {
96
+        		criteria.andBidEqualTo(bid);
97
+        	}
98
+        	if (null != orgId) {
99
+        		criteria.andOrgIdEqualTo(orgId);
100
+        	}
101
+        	if (null != order && !"".equals(order)) {
102
+        		example.setOrderByClause(order);
103
+        	}
104
+        
105
+        	return fileMapper.selectByExample(example);
106
+	}
107
+
108
+}

+ 40 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageChangeStoragehouseWorkTaskServiceImpl.java

@@ -0,0 +1,40 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.util.List;
4
+
5
+import javax.annotation.Resource;
6
+
7
+import org.springframework.stereotype.Service;
8
+
9
+import com.chinaitop.depot.storage.mapper.StorageChangeStoragehouseWorkTaskMapper;
10
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTask;
11
+import com.chinaitop.depot.storage.model.StorageChangeStoragehouseWorkTaskExample;
12
+import com.chinaitop.depot.storage.service.StorageChangeStoragehouseWorkTaskService;
13
+@Service
14
+public class StorageChangeStoragehouseWorkTaskServiceImpl implements StorageChangeStoragehouseWorkTaskService {
15
+
16
+	@Resource 
17
+	private StorageChangeStoragehouseWorkTaskMapper storageChangeStoragehouseWorkTaskMapper;
18
+	
19
+	/**
20
+	 * 修改倒仓数据
21
+	 */
22
+	@Override
23
+	public void updateStorageChangeStoragehouseTask(StorageChangeStoragehouseWorkTask storageChangeStoragehouseTask) {
24
+		storageChangeStoragehouseWorkTaskMapper.updateByPrimaryKey(storageChangeStoragehouseTask);
25
+	}
26
+	/**
27
+	 * 增加一条数据到数据库
28
+	 */
29
+	@Override
30
+	public void addStorageChangeStoragehouseTaskDetail(
31
+			StorageChangeStoragehouseWorkTask storageChangeStoragehouseWorkTask) {
32
+		storageChangeStoragehouseWorkTaskMapper.insertSelective(storageChangeStoragehouseWorkTask);
33
+		
34
+	}
35
+	@Override
36
+	public List<StorageChangeStoragehouseWorkTask> selectByExample(
37
+			StorageChangeStoragehouseWorkTaskExample detailExamle) {
38
+		return storageChangeStoragehouseWorkTaskMapper.selectByExample(detailExamle);
39
+	}
40
+}

+ 55 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageDumpServiceImpl.java

@@ -0,0 +1,55 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import java.io.BufferedInputStream;
4
+import java.io.InputStream;
5
+import java.util.HashMap;
6
+import java.util.List;
7
+import java.util.Map;
8
+import java.util.Properties;
9
+
10
+import javax.annotation.Resource;
11
+import javax.xml.namespace.QName;
12
+
13
+import org.apache.cxf.endpoint.Endpoint;
14
+import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
15
+import org.apache.cxf.service.model.BindingInfo;
16
+import org.apache.cxf.service.model.BindingOperationInfo;
17
+import org.springframework.stereotype.Service;
18
+
19
+import com.chinaitop.depot.storage.mapper.StorageDumpMapper;
20
+import com.chinaitop.depot.storage.model.StorageDump;
21
+import com.chinaitop.depot.storage.model.StorageDumpExample;
22
+import com.chinaitop.depot.storage.service.StorageDumpService;
23
+
24
+import net.sf.json.JSONObject;
25
+
26
+@Service
27
+public class StorageDumpServiceImpl implements StorageDumpService {
28
+
29
+	@Resource
30
+	private StorageDumpMapper storageDumpMapper;
31
+
32
+	@Override
33
+	public void save(StorageDump storageDump) {
34
+		storageDumpMapper.insertSelective(storageDump);
35
+	}
36
+
37
+	@Override
38
+	public StorageDump findByParmaryKey(Integer id) {
39
+		return storageDumpMapper.selectByPrimaryKey(id);
40
+	}
41
+
42
+	@Override
43
+	public List<StorageDump> findCondition(StorageDumpExample example) {
44
+		return storageDumpMapper.selectByExample(example);
45
+	}
46
+
47
+	@Override
48
+	public List<Map<String, Object>> selectYswData(Integer orgId) {
49
+		Map<String, Object> parameter = new HashMap<String, Object>();
50
+		parameter.put("orgId", orgId);
51
+		List<Map<String, Object>> list = storageDumpMapper.selectYswData(orgId);
52
+		return list;
53
+	}
54
+
55
+}

+ 38 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageFoodbasicInfoCheckServiceImpl.java

@@ -0,0 +1,38 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import com.chinaitop.depot.storage.mapper.StorageFoodbasicInfoCheckMapper;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoCheck;
5
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoCheckExample;
6
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoCheckService;
7
+import org.springframework.stereotype.Service;
8
+
9
+import javax.annotation.Resource;
10
+import java.util.List;
11
+
12
+/**
13
+ * @author sunhongbing
14
+ * @Date 2017/10/19
15
+ */
16
+@Service
17
+public class StorageFoodbasicInfoCheckServiceImpl implements StorageFoodbasicInfoCheckService {
18
+    @Resource
19
+    private StorageFoodbasicInfoCheckMapper foodbasicInfoCheckMapper;
20
+    @Override
21
+    public List<StorageFoodbasicInfoCheck> queryByFoodbasicInfoCheck(StorageFoodbasicInfoCheckExample foodbasicInfoCheck) {
22
+        return foodbasicInfoCheckMapper.selectByExample(foodbasicInfoCheck);
23
+    }
24
+
25
+    //保存数据
26
+    @Override
27
+    public void save(StorageFoodbasicInfoCheck foodbasicInfoCheck) {
28
+        if (foodbasicInfoCheck.getId() == null)
29
+            foodbasicInfoCheckMapper.insert(foodbasicInfoCheck);//新增数据
30
+        else
31
+            foodbasicInfoCheckMapper.updateByPrimaryKey(foodbasicInfoCheck);//修改数据
32
+    }
33
+
34
+    @Override
35
+    public StorageFoodbasicInfoCheck loadDataById(int id) {
36
+        return foodbasicInfoCheckMapper.selectByPrimaryKey(id);
37
+    }
38
+}

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

@@ -0,0 +1,46 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+import com.chinaitop.depot.storage.mapper.StorageFoodbasicInfoLocationMapper;
4
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocation;
5
+import com.chinaitop.depot.storage.model.StorageFoodbasicInfoLocationExample;
6
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoLocationService;
7
+import org.springframework.stereotype.Service;
8
+
9
+import javax.annotation.Resource;
10
+import java.util.List;
11
+
12
+/**
13
+ * @author sunhongbing
14
+ * @Date 2017/10/20
15
+ */
16
+@Service
17
+public class StorageFoodbasicInfoLocationServiceImpl implements StorageFoodbasicInfoLocationService {
18
+    @Resource
19
+    private StorageFoodbasicInfoLocationMapper foodbasicInfoLocationMapper;
20
+    @Override
21
+    public List<StorageFoodbasicInfoLocation> queryByFoodbasicInfoLocation(StorageFoodbasicInfoLocation location) {
22
+        return foodbasicInfoLocationMapper.queryByExample(location);
23
+    }
24
+
25
+    @Override
26
+    public void save(StorageFoodbasicInfoLocation foodbasicInfoLocation) {
27
+        if (foodbasicInfoLocation.getId() == null)
28
+            foodbasicInfoLocationMapper.insert(foodbasicInfoLocation);//新增数据
29
+        else
30
+            foodbasicInfoLocationMapper.updateByPrimaryKey(foodbasicInfoLocation);//修改数据
31
+    }
32
+
33
+    @Override
34
+    public StorageFoodbasicInfoLocation loadDataById(int id) {
35
+        return foodbasicInfoLocationMapper.selectByPrimaryKey(id);
36
+    }
37
+
38
+    @Override
39
+    public List<StorageFoodbasicInfoLocation> getFoodbasicInfoLocationByWarehouseCode(Integer houseId, Integer wareHouseId) {
40
+        StorageFoodbasicInfoLocationExample example = new StorageFoodbasicInfoLocationExample();
41
+        StorageFoodbasicInfoLocationExample.Criteria criteria = example.createCriteria();
42
+    	criteria.andHouseIdEqualTo(houseId);
43
+    	criteria.andWarehouseIdEqualTo(wareHouseId);
44
+    	return foodbasicInfoLocationMapper.selectByExample(example);
45
+    }
46
+}

+ 367 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageFoodbasicInfoServiceImpl.java

@@ -0,0 +1,367 @@
1
+package com.chinaitop.depot.storage.service.impl;
2
+
3
+
4
+import com.chinaitop.depot.storage.mapper.StorageFoodbasicInfoCheckMapper;
5
+import com.chinaitop.depot.storage.mapper.StorageFoodbasicinfoMapper;
6
+import com.chinaitop.depot.storage.mapper.StorageQualitycheckMapper;
7
+import com.chinaitop.depot.storage.model.*;
8
+import com.chinaitop.depot.storage.model.vo.StorageQualitycheckVo;
9
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoLocationService;
10
+import com.chinaitop.depot.storage.service.StorageFoodbasicInfoService;
11
+import com.chinaitop.depot.storage.utils.ParameterUtil;
12
+import com.chinaitop.depot.storage.utils.ZxingHandler;
13
+import org.apache.commons.lang3.StringUtils;
14
+import org.springframework.beans.factory.annotation.Value;
15
+import org.springframework.stereotype.Service;
16
+import org.springframework.transaction.annotation.Transactional;
17
+
18
+import javax.annotation.Resource;
19
+import java.text.SimpleDateFormat;
20
+import java.util.Date;
21
+import java.util.List;
22
+
23
+/**
24
+ * @author sunhongbing
25
+ * @Date 2017/10/26
26
+ */
27
+@Service
28
+@Transactional
29
+public class StorageFoodbasicInfoServiceImpl implements StorageFoodbasicInfoService {
30
+    @Resource
31
+    private StorageFoodbasicinfoMapper foodbasicInfoMapper;
32
+    @Resource
33
+    private StorageQualitycheckMapper qualitycheckMapper;
34
+    @Resource
35
+    private StorageFoodbasicInfoCheckMapper foodbasicInfoCheckMapper;
36
+    @Resource
37
+    private StorageFoodbasicInfoLocationService foodbasicInfoLocationService;
38
+
39
+    @Value("${web.upload-path}")
40
+    private String rootPath;
41
+
42
+    /**
43
+     * 根据仓号得到对应的粮情专卡
44
+     * @param foodbasicInfo
45
+     * @return
46
+     */
47
+    @Override
48
+    public List<StorageFoodbasicinfo> selectByExample(StorageFoodbasicinfo foodbasicInfo) {
49
+        //对list进行处理获取仓房名称和货位名称
50
+       return  foodbasicInfoMapper.queryByExample(foodbasicInfo);
51
+    }
52
+
53
+    @Override
54
+    public List<StorageFoodbasicinfo> getByHouseIdAndWarehouseId(StorageFoodbasicinfo foodbasicInfo) {
55
+        //设置保管员的名字
56
+        List<StorageFoodbasicinfo> list = foodbasicInfoMapper.getFoodbasicInfoByHouseIdAndWarehouseId(foodbasicInfo);
57
+        return list;
58
+    }
59
+
60
+    @Override
61
+    public void save(StorageFoodbasicinfo foodbasicInfo, StorageQualitycheckVo qualitycheckVo,Integer orgId){
62
+        StorageQualitycheck qualitycheck = new StorageQualitycheck();
63
+        //获得仓房id和货位ID
64
+        Integer houseId = foodbasicInfo.getHouseId();
65
+        Integer wareHouseId = foodbasicInfo.getWarehouseId();
66
+        // 组织机构信息.
67
+        foodbasicInfo.setOrgId(orgId);
68
+        foodbasicInfo.setHouseType(qualitycheckVo.getStorehouseType());
69
+        foodbasicInfo.setDesignHouseCapacity(qualitycheckVo.getDesignCapacity());//设计仓容
70
+//              foodbasicInfo.setLineHeight(storehouse.getLadeLineHeight());//装粮线高度(m)
71
+        foodbasicInfo.setLength(qualitycheckVo.getLength());//长
72
+        foodbasicInfo.setWidth(qualitycheckVo.getWidth());//宽
73
+
74
+        //保存该仓房对应的保管员
75
+        foodbasicInfo.setKeeperIds(qualitycheckVo.getKeeperNames());
76
+
77
+        foodbasicInfo.setLocationNum(qualitycheckVo.getWarehouseCode());//货位编号
78
+        //③保存验收的信息  qualitycheckService   var houseId=2;  var warehouseId=2;
79
+        StorageQualitycheckExample qualityCheckExample = new StorageQualitycheckExample();
80
+        StorageQualitycheckExample.Criteria qualityCriteria = qualityCheckExample.createCriteria();
81
+        qualityCriteria.andHouseIdEqualTo(houseId);
82
+        qualityCriteria.andWarehouseIdEqualTo(wareHouseId);
83
+        qualityCriteria.andTypeEqualTo("1");//查询验收的粮食
84
+        qualityCheckExample.setOrderByClause("id desc");
85
+        if(houseId !=null){
86
+            StorageQualitycheck qualitycheckData =qualitycheckMapper.queryPrimaryKey(qualitycheckVo.getQualitycheckId());
87
+            qualitycheck = qualitycheckData;
88
+        }
89
+        if(qualitycheck != null){
90
+            foodbasicInfo.setWater(qualitycheck.getWater());//水分
91
+            foodbasicInfo.setImpurity(qualitycheck.getImpurity());//杂质
92
+            foodbasicInfo.setUnsound(qualitycheck.getBadpart());//不完善粒
93
+            foodbasicInfo.setWeight(qualitycheck.getCapacity());//容重
94
+            foodbasicInfo.setLevel(String.valueOf(qualitycheck.getLevel()));//粮食等级
95
+            foodbasicInfo.setInputYear(qualitycheck.getInputTime());//入仓时间
96
+            foodbasicInfo.setGlutenWaterCount(qualitycheck.getGlutenWaterCount());//面筋吸水量
97
+            foodbasicInfo.setEatScore(qualitycheck.getEatScore());//品尝评分值
98
+            foodbasicInfo.setFatIndex(qualitycheck.getFatIndex());//酸值
99
+            foodbasicInfo.setPeroxideValue(qualitycheck.getPeroxideValue());//过氧化值
100
+        }
101
+
102
+        //④保存分仓保管账
103
+        //储粮性质,品种,实际数量,折合标准数量,产地,收货年度
104
+        //1.1储粮性质
105
+        foodbasicInfo.setQuality(qualitycheckVo.getHwxz());
106
+        //1.2品种
107
+        foodbasicInfo.setSubType(Integer.valueOf(qualitycheckVo.getPz()));
108
+        //明细品种
109
+        foodbasicInfo.setSubTypeDetailed(Integer.valueOf(qualitycheckVo.getMxpz()));
110
+
111
+        //1.3实际数量(kg)
112
+        foodbasicInfo.setNumber(qualitycheckVo.getKcsl());
113
+        //1.4折合标准数量(吨) 将实际数量kg转换成折合标准数量吨
114
+        foodbasicInfo.setStandNumber(qualitycheckVo.getKcsl()*0.001);
115
+
116
+        //1.5产地hwcd
117
+        if(StringUtils.isNoneBlank(qualitycheckVo.getHwcd())){
118
+            foodbasicInfo.setPlaceOfOrigin(qualitycheckVo.getHwcd());
119
+        }
120
+        //1.6收货年度scnf
121
+        if(StringUtils.isNoneBlank(qualitycheckVo.getScnf())){
122
+            foodbasicInfo.setGrowYear(Integer.valueOf(qualitycheckVo.getScnf()));
123
+        }
124
+        //⑤其他
125
+        foodbasicInfo.setKeepUnite(qualitycheckVo.getDepotName());//所属库点名称
126
+        foodbasicInfo.setSealStatus("1");//代表已经封仓
127
+
128
+        // ⑥更新粮食验收
129
+        //1.1状态已封仓
130
+
131
+        qualitycheck.setSealStatus("1");
132
+        //1.2封仓时间
133
+        Date date=new Date();
134
+        qualitycheck.setSealDate(date);
135
+        //⑦更新货位的状态
136
+      //  warehouse.setWarehouseStatus(2965);//满货位
137
+
138
+
139
+        //⑧更新仓房的状态
140
+        //1.1先查看该仓房下所有的货位是不是都已经满货位 是:更新仓房的状态  否:不更新
141
+  /*      BasicWarehouseExample wareExample = new BasicWarehouseExample();
142
+        BasicWarehouseExample.Criteria criteria = wareExample.createCriteria();
143
+        criteria.andStorehouseIdEqualTo(houseId);
144
+        criteria.andWarehouseStatusNotEqualTo(2965);
145
+        //如果list个数为零 说明该仓下所有货物都已经满仓 可以更新仓房状态
146
+        List<BasicWarehouse> warehouseList=warehouseService.findCondition(wareExample);
147
+        if(warehouseList.size()==0){
148
+            storehouse.setStorehouseState(2965);//满货位
149
+            try{
150
+                storehouseService.updateBasicStorehouse(storehouse);//更新仓房状态
151
+            }catch (Exception ex){
152
+                ex.printStackTrace();
153
+            }
154
+
155
+        }*/
156
+
157
+        //⑨更新货位状态
158
+        //warehouseService.update(warehouse);
159
+        //生成库存识别码
160
+        this.generateStockIDcode(foodbasicInfo, qualitycheck, houseId, wareHouseId,qualitycheckVo,date);
161
+
162
+        foodbasicInfo.setHistoryStatus(0);//0:最新数据  1:历史数据
163
+        //保存粮食专卡
164
+        foodbasicInfoMapper.insertSelective(foodbasicInfo);
165
+
166
+        qualitycheck.setHistoryStatus(0);//0:最新数据  1:历史数据
167
+        //更新验收信息
168
+        qualitycheckMapper.updateByPrimaryKeySelective(qualitycheck);
169
+
170
+        //在粮情检测表中保存当前验收的信息用于在粮情卡中进行显示
171
+        //获取刚刚保存的专卡的Id
172
+        Integer foodbasicInfoId = foodbasicInfo.getId();
173
+        if(foodbasicInfoId != null){
174
+            StorageFoodbasicInfoCheck check = new StorageFoodbasicInfoCheck();
175
+            check.setFoodbasicinfoId(foodbasicInfoId);
176
+            check.setQualitycheckId(qualitycheck.getId());
177
+            check.setHouseId(houseId);
178
+            check.setWarehouseId(wareHouseId);
179
+            check.setOrgId(orgId);
180
+
181
+            foodbasicInfoCheckMapper.insertSelective(check);
182
+        }
183
+    }
184
+
185
+    /**
186
+     * 生成库存识别码方法
187
+     * @param foodbasicInfo
188
+     * @param qualitycheck
189
+     * @param houseId
190
+     * @param wareHouseId
191
+     * @param date
192
+     * @throws Exception
193
+     */
194
+    public void generateStockIDcode(StorageFoodbasicinfo foodbasicInfo, StorageQualitycheck qualitycheck, Integer houseId,Integer wareHouseId,
195
+                                   StorageQualitycheckVo qualitycheckVo,Date date){
196
+        //1.3生成库存识别码(二维码)
197
+        // 服务器路径
198
+        //   String rootPath = request.getSession().getServletContext().getRealPath("");
199
+        // 文件相对路径
200
+        String relativePath = "upload/img";
201
+        // 如路径不存在,则创建它
202
+        //File directory = new File(rootPath + relativePath);
203
+        //if (!directory.exists()) {
204
+        //    directory.mkdirs();
205
+        //}
206
+
207
+        //图片的命名
208
+        String authcodeName=houseId+""+wareHouseId+".png";
209
+        //图片完整路径
210
+        String filePath=relativePath+"/"+authcodeName;//于是二维码需要保存的地方
211
+        String fullPath=rootPath+"/"+filePath;
212
+        int width2 = 300, height2 = 300;
213
+
214
+          /*  var neirong="组织代码:163837911;货位编码:"+$("#HWBH").text()+"00100101;货位封仓时间:201511010955;根码标志:0;
215
+            组织代码:163837911;货位编码:"+$("#HWBH").text()+"00100101;货位封仓时间:"+currentTime+";
216
+            粮食性质:110;业务号:001;数量:"+$("#ZHBZSL").text()+";品种代码:1141001;产地代码:220112;
217
+            生产年份:"+rcsjYear+";等级代码:01";*/
218
+        StringBuffer sb = new StringBuffer();
219
+        //根据登录人的组织机构查找信息
220
+        String orgCode="";
221
+        String currentWareCode="";
222
+
223
+        //①组织机构代码(9位代码)
224
+        String companyNature = qualitycheckVo.getCompanyNature();
225
+        sb.append("组织代码:"+companyNature);
226
+        //②货位编码:当前粮食所在货位的编码(组织代码+仓房代码+000+货位代码)
227
+        orgCode = qualitycheckVo.getOrgCode();//当前组织的组织代码
228
+
229
+       // String storehouseCode = storehouse.getStorehouseCode();//当前仓房的仓房编码
230
+       //String granary = "000";//因为没有廒间代码 就用3个0替代
231
+       //根据当前货位id获得货位记录
232
+       // String warehouseCode=warehouse.getWarehouseCode();//货位编码
233
+        currentWareCode=orgCode+qualitycheckVo.getStorehouseCode()+qualitycheckVo.getStorehouseCode()+qualitycheckVo.getWarehouseCode();
234
+        sb.append(";货位编码:"+currentWareCode);
235
+
236
+        //③货位封仓时间:粮食封仓日期
237
+        SimpleDateFormat myFmt1=new SimpleDateFormat("yyyyMMddHHmm");
238
+        String sealDate=myFmt1.format(date);
239
+        sb.append(";货位封仓时间:"+sealDate);
240
+        // ④根码标志:0(固定的)
241
+        String mark="0";
242
+        sb.append(";根码标志:"+mark);
243
+        // ⑤组织机构代码:当前粮食所在库的编码
244
+        String companyNature2=companyNature;
245
+        sb.append(";组织代码:"+companyNature2);
246
+        //⑥货位编码:变更前的货位(从前台传来的是当前货位也就是变更后的) 从货位变更表中查找是否有该货位的变更记录   有:变更前的货位   无:还是原来的货位 ,)
247
+        List<StorageFoodbasicInfoLocation> location=foodbasicInfoLocationService.getFoodbasicInfoLocationByWarehouseCode(houseId, wareHouseId);
248
+        String oldwarehouseCode="";
249
+        Integer warehouseId;
250
+        String changSsealDate="";
251
+        StorageFoodbasicInfoLocation infoLocation = new StorageFoodbasicInfoLocation();
252
+        SimpleDateFormat myFmt2=new SimpleDateFormat("yyyyMMddHHmm");
253
+
254
+        if(location.size()>0 && location != null) {
255
+            infoLocation = location.get(0);//得到当前货位的初始货位
256
+            oldwarehouseCode = infoLocation.getWarehouseCode();//初始的货位编码
257
+            warehouseId=infoLocation.getWarehouseId();//初始的货位Id
258
+            Integer firstHouseId=infoLocation.getHouseId();//初始的仓房id
259
+            StorageQualitycheckExample exple = new StorageQualitycheckExample();
260
+            StorageQualitycheckExample.Criteria criteria1=exple.createCriteria();
261
+            if(firstHouseId != null){
262
+                criteria1.andHouseIdEqualTo(firstHouseId);
263
+            }
264
+            if(warehouseId != null){
265
+                criteria1.andWarehouseIdEqualTo(warehouseId);
266
+            }
267
+            exple.setOrderByClause("id desc");
268
+            //根据初始的货位id和仓房id得到粮情专卡 从粮情专卡中取出建卡的日期就是封仓的日期
269
+            List<StorageQualitycheck>  basicInfo  = qualitycheckMapper.selectByExample(exple);
270
+            StorageQualitycheck qualitycheck1=null;
271
+            if(basicInfo.size()>0 &&basicInfo != null){
272
+                qualitycheck1=basicInfo.get(0);
273
+            }
274
+            if(qualitycheck1 != null){
275
+                Date sealDate1=qualitycheck1.getSealDate();//得到初始货位的封仓日期
276
+                if(sealDate1 != null){
277
+                    changSsealDate=myFmt2.format(sealDate1);
278
+                }
279
+            }
280
+            //变更的货位编码
281
+            oldwarehouseCode =orgCode+qualitycheckVo.getStorehouseCode()+qualitycheckVo.getStorehouseCode()+oldwarehouseCode;
282
+        }else{
283
+            oldwarehouseCode=currentWareCode;//没变更 还是原来的货位编码
284
+            changSsealDate=myFmt1.format(date);//没变更  还是原来的封仓时间
285
+        }
286
+
287
+        sb.append(";货位编码:"+oldwarehouseCode);
288
+
289
+        sb.append(";货位封仓时间:"+changSsealDate);
290
+
291
+        //遍历仓房保管账对象
292
+
293
+        //粮食性质  从分仓保管账带出
294
+        //1.1储粮性质
295
+        sb.append(";粮食性质:"+qualitycheckVo.getHwxz());
296
+        //业务号:分仓保管账的文件号(粮情卡带出)(粮情卡增加这个字段  保存粮情卡的时候直接从分仓保管账取出)
297
+        if(ParameterUtil.isnotnull(qualitycheckVo.getWjh())){
298
+            sb.append(";业务号:"+qualitycheckVo.getWjh());
299
+        }else{
300
+            sb.append(";业务号:");
301
+        }
302
+
303
+        //数量:粮情卡带出
304
+        sb.append(";数量:"+qualitycheckVo.getKcsl());
305
+
306
+        //  品种代码:粮情卡带出(enumCode)
307
+        sb.append(";品种代码:"+qualitycheckVo.getPzCode());
308
+        //产地代码:粮情卡带出
309
+        sb.append(";产地代码:"+qualitycheckVo.getPlaceCode());
310
+
311
+        // 生产年份:粮情卡带出
312
+        sb.append(";收获年份:"+qualitycheckVo.getScnfName());
313
+
314
+        //等级代码:粮情卡带出
315
+        Integer level=qualitycheck.getLevel();
316
+        sb.append(";等级代码:"+level);
317
+
318
+        // 生产年份:粮情卡带出
319
+        sb.append(";代码标识:"+companyNature+qualitycheckVo.getWarehouseCode()+changSsealDate);
320
+        String contents2=sb.toString();
321
+
322
+        //生成二维码
323
+        ZxingHandler.encode2(contents2, width2, height2, fullPath);
324
+
325
+
326
+        qualitycheck.setAuthCode(filePath);//质量检查中保存库存识别码用于在封仓列表中展示
327
+        foodbasicInfo.setAuthCode(filePath);//粮情专卡中保存库存识别码用于在粮情卡页面展示
328
+    }
329
+
330
+
331
+    @Override
332
+    public StorageFoodbasicinfo loadDataById(int id) {
333
+        StorageFoodbasicinfo foodbasicinfo = foodbasicInfoMapper.selectByPrimaryKey(id);
334
+        return foodbasicinfo;
335
+    }
336
+
337
+    /**
338
+     * 更新粮情专卡为历史数据
339
+     * @param houseId
340
+     * @return
341
+     */
342
+    @Override
343
+    public void setFoodBasicInfoHistoryStatus(Integer houseId,Integer warehouseId) {
344
+
345
+        StorageFoodbasicinfo foodbasicinfo = new StorageFoodbasicinfo();
346
+        //0:最新数据  1:历史数据
347
+        foodbasicinfo.setHistoryStatus(1);
348
+
349
+        StorageFoodbasicinfoExample foodbasicinfoExample = new StorageFoodbasicinfoExample();
350
+        StorageFoodbasicinfoExample.Criteria qualityCriteria = foodbasicinfoExample.createCriteria();
351
+        if(ParameterUtil.isnotnull(houseId)){
352
+            qualityCriteria.andHouseIdEqualTo(houseId);
353
+        }
354
+        if(ParameterUtil.isnotnull(warehouseId)){
355
+            qualityCriteria.andWarehouseIdEqualTo(warehouseId);
356
+        }
357
+
358
+        //更新粮情专卡状态为历史数据
359
+        foodbasicInfoMapper.updateByExampleSelective(foodbasicinfo,foodbasicinfoExample);
360
+
361
+    }
362
+
363
+	@Override
364
+	public List<StorageFoodbasicinfo> findByCondition(StorageFoodbasicinfoExample example) {
365
+		return foodbasicInfoMapper.selectByExample(example);
366
+	}
367
+}

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


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.