浏览代码

粮情卡功能bug修改

fanxiongwei 3 年之前
父节点
当前提交
4a95438b34

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

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

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

@@ -968,7 +968,9 @@
968 968
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
969 969
     update storage_qualitycheck_inspection
970 970
     <set >
971
-
971
+      <if test="qualitycheckId != null">
972
+        qualitycheck_id = #{qualitycheckId,jdbcType=INTEGER},
973
+      </if>
972 974
       <if test="unitWeight != null" >
973 975
         unit_weight = #{unitWeight,jdbcType=VARCHAR},
974 976
       </if>
@@ -1177,7 +1179,7 @@
1177 1179
         imperfectgrains_scab_qtbl = #{imperfectgrainsScabQtbl,jdbcType=VARCHAR},
1178 1180
       </if>
1179 1181
     </set>
1180
-    where qualitycheck_id = #{qualitycheckId,jdbcType=INTEGER}
1182
+    where id = #{id,jdbcType=INTEGER}
1181 1183
   </update>
1182 1184
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.storage.model.StorageQualitycheckInspection" >
1183 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 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 49
     private Date checkTime;//检验日期
50 50
 
51 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 77
                 if(null != qualitycheckInspectionJson && !qualitycheckInspectionJson.equals("null") && !qualitycheckInspectionJson.equals("")){
78 78
                     StorageQualitycheckInspection qualityInspection = (StorageQualitycheckInspection)mapper.readValue(qualitycheckInspectionJson, StorageQualitycheckInspection.class);
79
-                    System.out.println(qualityInspection.getUnitWeight());
80 79
                     qualityCheckId = qualitycheck.getId();
81 80
                     qualityInspection.setQualitycheckId(qualityCheckId);
82 81
                     if(ParameterUtil.isnull(qualityInspection.getId())){

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

@@ -7,13 +7,14 @@ server:
7 7
 eureka:
8 8
   client:
9 9
     service-url:
10
-      defaultZone: http://172.16.0.4:9711/eureka/
10
+      defaultZone: http://localhost:9001/eureka/
11 11
   instance:
12 12
     prefer-ip-address: true
13 13
     # 每隔10s发送一次心跳(默认30s)
14 14
     lease-renewal-interval-in-seconds: 10
15 15
     # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
16 16
     lease-expiration-duration-in-seconds: 30
17
+    status-page-url: http://172.16.0.16:9010/swagger-ui.html
17 18
 
18 19
 mybatis:
19 20
   config-location: classpath:mybatis/mybatis-config.xml
@@ -24,21 +25,21 @@ spring:
24 25
   # 数据库配置
25 26
   datasource:
26 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 29
     username: gbasedbt
29 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 34
     driver-class-name: com.gbasedbt.jdbc.IfxDriver
34 35
 
35 36
   # 缓存配置
36 37
   session:
37 38
     store-type: redis
38 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 43
     password: 123456
43 44
     timeout: 3000
44 45
     jedis:
@@ -50,9 +51,9 @@ spring:
50 51
   # 静态资源配置
51 52
   resources:
52 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 58
 web:
58 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 15
 		<jdbcConnection 
16 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 18
 			userId="gbasedbt"
19
-			password="cDbK2S0go8">
19
+			password="GBase123">
20 20
 		</jdbcConnection>
21 21
 		
22 22
 		<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 
@@ -26,7 +26,7 @@
26 26
 		</javaTypeResolver>
27 27
 
28 28
 		<!-- targetProject:生成PO类的位置 -->
29
-		<javaModelGenerator targetPackage="com.chinaitop.depot.storage.model"
29
+		<javaModelGenerator targetPackage="com.chinaitop.depot.storages.model"
30 30
 			targetProject=".\src\main\java">
31 31
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
32 32
 			<property name="enableSubPackages" value="false" />
@@ -35,7 +35,7 @@
35 35
 		</javaModelGenerator>
36 36
 		
37 37
         <!-- targetProject:mapper映射文件生成的位置 -->
38
-		<sqlMapGenerator targetPackage="com.chinaitop.depot.storage.mapper" 
38
+		<sqlMapGenerator targetPackage="com.chinaitop.depot.storages.mapper"
39 39
 			targetProject=".\src\main\java">
40 40
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
41 41
 			<property name="enableSubPackages" value="false" />
@@ -43,7 +43,7 @@
43 43
 		
44 44
 		<!-- targetPackage:mapper接口生成的位置 -->
45 45
 		<javaClientGenerator type="XMLMAPPER"
46
-			targetPackage="com.chinaitop.depot.storage.mapper" 
46
+			targetPackage="com.chinaitop.depot.storages.mapper"
47 47
 			targetProject=".\src\main\java">
48 48
 			<!-- enableSubPackages:是否让schema作为包的后缀 -->
49 49
 			<property name="enableSubPackages" value="false" />
@@ -51,7 +51,7 @@
51 51
 		
52 52
 		<!-- 指定要反向生成的数据库表 -->
53 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 56
 	</context>
57 57
 </generatorConfiguration>