Procházet zdrojové kódy

粮情卡功能bug修改

fanxiongwei před 3 roky
rodič
revize
4a95438b34

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

@@ -204,6 +204,7 @@ public class StorageWarterCheckController {
204
 		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
204
 		Integer orgId = (Integer) request.getSession().getAttribute("orgId");
205
 		StorageWaterCheckExample example = new StorageWaterCheckExample();
205
 		StorageWaterCheckExample example = new StorageWaterCheckExample();
206
 		StorageWaterCheckExample.Criteria criteria = example.createCriteria();
206
 		StorageWaterCheckExample.Criteria criteria = example.createCriteria();
207
+		example.setOrderByClause(" hy_date desc");
207
 
208
 
208
 		if (null != pageNum && null != pageSize) {
209
 		if (null != pageNum && null != pageSize) {
209
 			PageHelper.startPage(pageNum, pageSize);
210
 			PageHelper.startPage(pageNum, pageSize);

+ 4 - 2
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckInspectionMapper.xml

@@ -968,7 +968,9 @@
968
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
968
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
969
     update storage_qualitycheck_inspection
969
     update storage_qualitycheck_inspection
970
     <set >
970
     <set >
971
-
971
+      <if test="qualitycheckId != null">
972
+        qualitycheck_id = #{qualitycheckId,jdbcType=INTEGER},
973
+      </if>
972
       <if test="unitWeight != null" >
974
       <if test="unitWeight != null" >
973
         unit_weight = #{unitWeight,jdbcType=VARCHAR},
975
         unit_weight = #{unitWeight,jdbcType=VARCHAR},
974
       </if>
976
       </if>
@@ -1177,7 +1179,7 @@
1177
         imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1179
         imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1178
       </if>
1180
       </if>
1179
     </set>
1181
     </set>
1180
-    where qualitycheck_id = #{qualitycheckId,jdbcType=INTEGER}
1182
+    where id = #{id,jdbcType=INTEGER}
1181
   </update>
1183
   </update>
1182
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
1184
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
1183
     update storage_qualitycheck_inspection
1185
     update storage_qualitycheck_inspection

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

@@ -45,7 +45,7 @@ public class StorageQualitycheck {
45
 
45
 
46
     private Integer subTypeDetailed;
46
     private Integer subTypeDetailed;
47
 
47
 
48
-    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
48
+    //@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
49
     private Date checkTime;//检验日期
49
     private Date checkTime;//检验日期
50
 
50
 
51
     private String checkResult;//检验结果0:合格  1:不合格
51
     private String checkResult;//检验结果0:合格  1:不合格

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

@@ -76,7 +76,6 @@ public class StorageQualitycheckServiceImpl implements StorageQualitycheckServic
76
                 //修改质检
76
                 //修改质检
77
                 if(null != qualitycheckInspectionJson && !qualitycheckInspectionJson.equals("null") && !qualitycheckInspectionJson.equals("")){
77
                 if(null != qualitycheckInspectionJson && !qualitycheckInspectionJson.equals("null") && !qualitycheckInspectionJson.equals("")){
78
                     StorageQualitycheckInspection qualityInspection = (StorageQualitycheckInspection)mapper.readValue(qualitycheckInspectionJson, StorageQualitycheckInspection.class);
78
                     StorageQualitycheckInspection qualityInspection = (StorageQualitycheckInspection)mapper.readValue(qualitycheckInspectionJson, StorageQualitycheckInspection.class);
79
-                    System.out.println(qualityInspection.getUnitWeight());
80
                     qualityCheckId = qualitycheck.getId();
79
                     qualityCheckId = qualitycheck.getId();
81
                     qualityInspection.setQualitycheckId(qualityCheckId);
80
                     qualityInspection.setQualitycheckId(qualityCheckId);
82
                     if(ParameterUtil.isnull(qualityInspection.getId())){
81
                     if(ParameterUtil.isnull(qualityInspection.getId())){

+ 12 - 11
src/main/resources/bootstrap.yml

@@ -7,13 +7,14 @@ server:
7
 eureka:
7
 eureka:
8
   client:
8
   client:
9
     service-url:
9
     service-url:
10
-      defaultZone: http://172.16.0.4:9711/eureka/
10
+      defaultZone: http://localhost:9001/eureka/
11
   instance:
11
   instance:
12
     prefer-ip-address: true
12
     prefer-ip-address: true
13
     # 每隔10s发送一次心跳(默认30s)
13
     # 每隔10s发送一次心跳(默认30s)
14
     lease-renewal-interval-in-seconds: 10
14
     lease-renewal-interval-in-seconds: 10
15
     # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
15
     # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
16
     lease-expiration-duration-in-seconds: 30
16
     lease-expiration-duration-in-seconds: 30
17
+    status-page-url: http://172.16.0.16:9010/swagger-ui.html
17
 
18
 
18
 mybatis:
19
 mybatis:
19
   config-location: classpath:mybatis/mybatis-config.xml
20
   config-location: classpath:mybatis/mybatis-config.xml
@@ -24,21 +25,21 @@ spring:
24
   # 数据库配置
25
   # 数据库配置
25
   datasource:
26
   datasource:
26
     type: com.alibaba.druid.pool.DruidDataSource
27
     type: com.alibaba.druid.pool.DruidDataSource
27
-    url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=ol_gbasedbt1210;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
28
+    url: jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
28
     username: gbasedbt
29
     username: gbasedbt
29
     password: cDbK2S0go8
30
     password: cDbK2S0go8
30
-#    url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
31
-#    username: gbasedbt
32
-#    password: GBase123
31
+    #url: jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;
32
+    #username: gbasedbt
33
+    #password: GBase123
33
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
34
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
34
 
35
 
35
   # 缓存配置
36
   # 缓存配置
36
   session:
37
   session:
37
     store-type: redis
38
     store-type: redis
38
   redis:
39
   redis:
39
-    database: 4
40
-    host: 172.16.0.46
41
-    port: 6679
40
+    database: 3
41
+    host: 172.16.0.2
42
+    port: 6379
42
     password: 123456
43
     password: 123456
43
     timeout: 3000
44
     timeout: 3000
44
     jedis:
45
     jedis:
@@ -50,9 +51,9 @@ spring:
50
   # 静态资源配置
51
   # 静态资源配置
51
   resources:
52
   resources:
52
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
53
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
53
-  jackson:
54
-    date-format: yyyy-MM-dd
55
-    time-zone: GMT+8
54
+#  jackson:
55
+#    date-format: yyyy-MM-dd
56
+#    time-zone: GMT+8
56
  
57
  
57
 web:
58
 web:
58
   upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static
59
   upload-path: /home/depot/depot-web/apache-tomcat-8.0.53/webapps/ROOT/WEB-INF/classes/static

+ 6 - 6
src/main/resources/generatorConfig.xml

@@ -14,9 +14,9 @@
14
 		<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
14
 		<!--数据库连接的信息:驱动类、连接地址、用户名、密码 -->
15
 		<jdbcConnection 
15
 		<jdbcConnection 
16
 			driverClass="com.gbasedbt.jdbc.IfxDriver"
16
 			driverClass="com.gbasedbt.jdbc.IfxDriver"
17
-			connectionURL="jdbc:gbasedbt-sqli://101.36.160.140:19089/depot:INFORMIXSERVER=ol_gbasedbt1210;NEWCODESET=GB18030,GB18030-2000,5488;DB_LOCALE=zh_cn.GB18030-2000;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;" 
17
+			connectionURL="jdbc:gbasedbt-sqli://111.164.113.172:666/depot:INFORMIXSERVER=gbaseserver;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;"
18
 			userId="gbasedbt"
18
 			userId="gbasedbt"
19
-			password="cDbK2S0go8">
19
+			password="GBase123">
20
 		</jdbcConnection>
20
 		</jdbcConnection>
21
 		
21
 		
22
 		<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 
22
 		<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 
@@ -26,7 +26,7 @@
26
 		</javaTypeResolver>
26
 		</javaTypeResolver>
27
 
27
 
28
 		<!-- targetProject:生成PO类的位置 -->
28
 		<!-- targetProject:生成PO类的位置 -->
29
-		<javaModelGenerator targetPackage="com.chinaitop.depot.storage.model"
29
+		<javaModelGenerator targetPackage="com.chinaitop.depot.storages.model"
30
 			targetProject=".\src\main\java">
30
 			targetProject=".\src\main\java">
31
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
31
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
32
 			<property name="enableSubPackages" value="false" />
32
 			<property name="enableSubPackages" value="false" />
@@ -35,7 +35,7 @@
35
 		</javaModelGenerator>
35
 		</javaModelGenerator>
36
 		
36
 		
37
         <!-- targetProject:mapper映射文件生成的位置 -->
37
         <!-- targetProject:mapper映射文件生成的位置 -->
38
-		<sqlMapGenerator targetPackage="com.chinaitop.depot.storage.mapper" 
38
+		<sqlMapGenerator targetPackage="com.chinaitop.depot.storages.mapper"
39
 			targetProject=".\src\main\java">
39
 			targetProject=".\src\main\java">
40
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
40
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
41
 			<property name="enableSubPackages" value="false" />
41
 			<property name="enableSubPackages" value="false" />
@@ -43,7 +43,7 @@
43
 		
43
 		
44
 		<!-- targetPackage:mapper接口生成的位置 -->
44
 		<!-- targetPackage:mapper接口生成的位置 -->
45
 		<javaClientGenerator type="XMLMAPPER"
45
 		<javaClientGenerator type="XMLMAPPER"
46
-			targetPackage="com.chinaitop.depot.storage.mapper" 
46
+			targetPackage="com.chinaitop.depot.storages.mapper"
47
 			targetProject=".\src\main\java">
47
 			targetProject=".\src\main\java">
48
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
48
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
49
 			<property name="enableSubPackages" value="false" />
49
 			<property name="enableSubPackages" value="false" />
@@ -51,7 +51,7 @@
51
 		
51
 		
52
 		<!-- 指定要反向生成的数据库表 -->
52
 		<!-- 指定要反向生成的数据库表 -->
53
 <!-- 		<table schema="" tableName="storage_qualitystandard_main"></table> -->
53
 <!-- 		<table schema="" tableName="storage_qualitystandard_main"></table> -->
54
-		<table schema="" tableName="storage_qualitystandard_preparation"></table>
54
+		<table schema="" tableName="t_ventilation_operation"></table>
55
 
55
 
56
 	</context>
56
 	</context>
57
 </generatorConfiguration>
57
 </generatorConfiguration>