Browse Source

1.修改周工时统计

WoNiu 4 năm trước cách đây
mục cha
commit
d10b4c3c2c

+ 4 - 4
src/main/java/com/galaxis/manatee/task/WorkHourStatisticsRecently.java

@@ -56,7 +56,7 @@ public class WorkHourStatisticsRecently {
         this.chuanyunSelfCostDao = chuanyunSelfCostDao;
     }
 
-    @Scheduled(fixedDelay = 3600000L)
+    @Scheduled(fixedDelay = 36000000L)
     public void updateHour() {
         dayLog();
         standardWorkHour();
@@ -262,7 +262,7 @@ public class WorkHourStatisticsRecently {
                 });
             }else {
                 //流程执行完
-                break;
+                flag=false;
             }
         }
         log.info("日工时更新花费"+(Instant.now().getEpochSecond()-startTime));
@@ -365,7 +365,7 @@ public class WorkHourStatisticsRecently {
                 });
             }else {
                 //流程执行完
-                break;
+                flag=false;
             }
         }
         log.info("周工时更新花费"+(Instant.now().getEpochSecond()-startTime));
@@ -523,7 +523,7 @@ public class WorkHourStatisticsRecently {
                 });
             }else {
                 //流程执行完
-                break;
+                flag=false;
             }
         }
         log.info("月工时更新花费"+(Instant.now().getEpochSecond()-startTime));