Pārlūkot izejas kodu

第一版归档修改

lvzhikai 5 gadi atpakaļ
vecāks
revīzija
d74b13565d

+ 1 - 1
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationAlterController.java

@@ -85,7 +85,7 @@ public class FumigationAlterController {
85 85
             map.put("houseId",houseId);
86 86
 
87 87
         if (ParameterUtil.isnotnull(createTime)) {//归档用
88
-            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
88
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
89 89
             Date date = null;
90 90
             try {
91 91
                 date = dateFormat.parse(createTime);

+ 3 - 3
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationPlanController.java

@@ -72,14 +72,14 @@ public class FumigationPlanController {
72 72
         }
73 73
 
74 74
         if (ParameterUtil.isnotnull(createTime)) {//归档用
75
-            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
75
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
76 76
             Date date = null;
77 77
             try {
78 78
                 date = dateFormat.parse(createTime);
79 79
             } catch (ParseException e) {
80 80
                 e.printStackTrace();
81 81
             }
82
-            criteria.andCreateTimeLessThan(date);
82
+            criteria.andCreateTimeLessThanOrEqualTo(date);
83 83
             map.put("createTime", createTime);
84 84
         }
85 85
 
@@ -257,7 +257,7 @@ public class FumigationPlanController {
257 257
         map.put("userId",userId);
258 258
 
259 259
         if (ParameterUtil.isnotnull(createTime)) {//归档用
260
-            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
260
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
261 261
             Date date = null;
262 262
             try {
263 263
                 date = dateFormat.parse(createTime);

+ 1 - 1
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationProcessController.java

@@ -71,7 +71,7 @@ public class FumigationProcessController {
71 71
             map.put("houseId",houseId);
72 72
 
73 73
         if (ParameterUtil.isnotnull(createTime)) {//归档用
74
-            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
74
+            SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
75 75
             Date date = null;
76 76
             try {
77 77
                 date = dateFormat.parse(createTime);

+ 1 - 1
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationAfterMapper.xml

@@ -772,7 +772,7 @@
772 772
       AND plan.house_id = #{houseId,jdbcType=INTEGER}
773 773
     </if>
774 774
     <if test="createTime != null">
775
-      AND af.create_time &lt; #{createTime}
775
+      AND af.create_time &lt;= #{createTime}
776 776
     </if>
777 777
   </select>
778 778
   <select id="selectHomeWorkQueryList" parameterType="java.util.Map" resultType="java.util.HashMap">

+ 2 - 2
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationPlanMapper.xml

@@ -1311,7 +1311,7 @@
1311 1311
       AND plan.house_id = #{houseId,jdbcType=INTEGER}
1312 1312
     </if>
1313 1313
     <if test="createTime != null">
1314
-      AND plan.create_time &lt; #{createTime}
1314
+      AND plan.create_time &lt;= #{createTime}
1315 1315
     </if>
1316 1316
     order by approval.create_time desc
1317 1317
   </select>
@@ -1334,7 +1334,7 @@
1334 1334
       AND plan.delete_state = #{deleteState,jdbcType=INTEGER}
1335 1335
     </if>
1336 1336
     <if test="createTime != null">
1337
-      AND pro.create_time &lt; #{createTime}
1337
+      AND pro.create_time &lt;= #{createTime}
1338 1338
     </if>
1339 1339
     AND pro.id IS NULL
1340 1340
     <if test="orderByClause != null" >

+ 1 - 1
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationProcessMapper.xml

@@ -1493,7 +1493,7 @@
1493 1493
       AND plan.org_id = #{orgId,jdbcType=INTEGER}
1494 1494
     </if>
1495 1495
     <if test="createTime != null">
1496
-      AND pro.create_time &lt; #{createTime}
1496
+      AND pro.create_time &lt;= #{createTime}
1497 1497
     </if>
1498 1498
   </select>
1499 1499
 

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/mapper/StorageFestivalbeforeCheckMapper.xml

@@ -400,7 +400,7 @@
400 400
         and sfc.check_date BETWEEN #{starDate} AND #{endDate}
401 401
       </if>
402 402
       <if test="endDate != null" >
403
-        and sfc.check_date &lt; #{endDate}
403
+        and sfc.check_date &lt;= #{endDate}
404 404
       </if>
405 405
       <if test="orgId != null" >
406 406
         and sfc.org_id = #{orgId}

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodothercheckMapper.xml

@@ -431,7 +431,7 @@
431 431
         and sfk.check_date BETWEEN #{starDate} AND #{endDate}
432 432
       </if>
433 433
       <if test="starDate != null and endDate != null" >
434
-        and sfk.check_date &lt; #{endDate}
434
+        and sfk.check_date &lt;= #{endDate}
435 435
       </if>
436 436
       <if test="orgId != null" >
437 437
         and sfk.org_id = #{orgId}

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/mapper/StorageThreetempcheckMapper.xml

@@ -514,7 +514,7 @@
514 514
         AND t_time BETWEEN #{startDate} AND #{endDate}
515 515
       </if>
516 516
       <if test="endDate != null">
517
-        AND t_time &lt; #{endDate}
517
+        AND t_time &lt;= #{endDate}
518 518
       </if>
519 519
     </where>
520 520
       <if test="weekParams != null">

+ 1 - 1
src/main/java/com/chinaitop/depot/storage/mapper/StorageWindrainsnowcheckMapper.xml

@@ -467,7 +467,7 @@
467 467
         and swk.check_date BETWEEN #{starDate} AND #{endDate}
468 468
       </if>
469 469
       <if test="endDate != null" >
470
-        and swk.check_date &lt; #{endDate}
470
+        and swk.check_date &lt;= #{endDate}
471 471
       </if>
472 472
       <if test="orgId != null" >
473 473
         and swk.org_id = #{orgId}