Browse Source

凌云集团更改公司

peiguo 5 years ago
parent
commit
48acc0cd93

+ 1 - 1
whepi-web/src/main/java/com/bofeng/service/ScanService.java

@@ -204,7 +204,7 @@ public class ScanService {
         if (outUser2 != null) {
             ly2 = true;
             startDate = s.format(outUser2.getStartDate());
-            Long day = (new Date().getTime() - outUser2.getStartDate().getTime() -1) / (1000 * 60 * 60 * 24);
+            Long day = (new Date().getTime() - outUser2.getStartDate().getTime()) / (1000 * 60 * 60 * 24) -1;
             intSize = Integer.parseInt(Long.toString(day)) < 3 ? Integer.parseInt(Long.toString(day)) : 3;
         }
         MsReport msReport = msReportMapper.queryMsReportIsXG(userId);

+ 2 - 2
whepi-web/src/main/java/com/bofeng/wx/controller/ScanController.java

@@ -191,7 +191,7 @@ public class ScanController {
                     if (outUser2 != null) {
                         ly2 = true;
                         startDate = s.format(outUser2.getStartDate());
-                        Long day = (new Date().getTime() - outUser2.getStartDate().getTime()) /  (1000 * 60 * 60 * 24);
+                        Long day = (new Date().getTime() - outUser2.getStartDate().getTime()) /  (1000 * 60 * 60 * 24) -1;
                         intSize =  Integer.parseInt(Long.toString(day)) < 3 ? Integer.parseInt(Long.toString(day)) : 3;
                     }
                     if (!unit.getUptownId().equals(uptownDoor.getUptownId())) {
@@ -673,7 +673,7 @@ public class ScanController {
             if (outUser2 != null) {
                 ly2 = true;
                 startDate = s.format(outUser2.getStartDate());
-                Long day = (new Date().getTime() - outUser2.getStartDate().getTime() -1) /  (1000 * 60 * 60 * 24);
+                Long day = (new Date().getTime() - outUser2.getStartDate().getTime()) /  (1000 * 60 * 60 * 24) -1;
                 intSize =  Integer.parseInt(Long.toString(day)) < 3 ? Integer.parseInt(Long.toString(day)) : 3;
             }
             MsReport msReport = msReportMapper.queryMsReportIsXG(userId);