lvzhikai преди 5 години
родител
ревизия
84ab5a3b32

+ 2 - 2
src/main/java/com/chinaitop/depot/storage/controller/StorageDailyController.java

@@ -66,14 +66,14 @@ public class StorageDailyController {
66 66
             criteria.andWarehouseIdEqualTo(warehouseId);
67 67
         }
68 68
         if (null != createTime) {
69
-            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
69
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
70 70
             Date date = null;
71 71
             try {
72 72
                 date = dateFormat.parse(createTime);
73 73
             } catch (ParseException e) {
74 74
                 e.printStackTrace();
75 75
             }
76
-            criteria.andCheckTimeLessThan(date);
76
+            criteria.andCheckTimeLessThanOrEqualTo(date);
77 77
         }
78 78
 
79 79
         //查询FlagType为null的,要不然和粮情卡冲突

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

@@ -66,14 +66,14 @@ public class StorageQualityEventController {
66 66
 			criteria.andOrgIdEqualTo(orgId);
67 67
 		}
68 68
 		if (null != createTime) {
69
-			SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
69
+			SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
70 70
 			Date date = null;
71 71
 			try {
72 72
 				date = dateFormat.parse(createTime);
73 73
 			} catch (ParseException e) {
74 74
 				e.printStackTrace();
75 75
 			}
76
-			criteria.andInputDateLessThan(date);
76
+			criteria.andInputDateLessThanOrEqualTo(date);
77 77
 		}
78 78
 
79 79
 		list = eventService.findByCondition(example);

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

@@ -115,7 +115,7 @@ public class StorageQualitycheckController {
115 115
 
116 116
         //归档用时间查询
117 117
         if(ParameterUtil.isnotnull(createTime)){
118
-            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
118
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
119 119
             Date date = null;
120 120
             try {
121 121
                 date = dateFormat.parse(createTime);

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

@@ -1873,8 +1873,8 @@
1873 1873
       <if test="depotId ==null">
1874 1874
         and sq.depot_id is null
1875 1875
       </if>
1876
-      <if test="depotId !=null">
1877
-        and sq.seal_date &lt; #{sealdate}
1876
+      <if test="sealDate != null" >
1877
+        and sq.seal_date &lt;= #{sealDate}
1878 1878
       </if>
1879 1879
       <!--区分粮情卡的数据-->
1880 1880
       and sq.flag_type is null

+ 2 - 2
src/main/java/com/chinaitop/depot/storage/service/impl/VentilationOperationServiceImpl.java

@@ -32,14 +32,14 @@ public class VentilationOperationServiceImpl implements VentilationOperationServ
32 32
             criteria.andCfbhEqualTo(cfbh);
33 33
         }
34 34
         if (StringUtils.isNotEmpty(createTime)) {
35
-			SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
35
+			SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
36 36
 			Date date = null;
37 37
 			try {
38 38
 				date = dateFormat.parse(createTime);
39 39
 			} catch (ParseException e) {
40 40
 				e.printStackTrace();
41 41
 			}
42
-            criteria.andDjrqLessThan(date);
42
+            criteria.andDjrqLessThanOrEqualTo(date);
43 43
         }
44 44
         if (StringUtils.isNotEmpty(cfmc)) {
45 45
         	criteria.andCfmcEqualTo(cfmc);