Browse Source

1.启动更新工时定时任务

verguenza 4 years ago
parent
commit
63282648d8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/java/com/galaxis/manatee/task/WorkHourStatistics.java

+ 2 - 1
src/main/java/com/galaxis/manatee/task/WorkHourStatistics.java

@@ -19,6 +19,7 @@ import com.galaxis.manatee.service.LogStandardService;
 import lombok.Data;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.scheduling.annotation.Async;
+import org.springframework.scheduling.annotation.Scheduled;
 import org.springframework.stereotype.Service;
 import org.springframework.util.StringUtils;
 
@@ -57,7 +58,7 @@ public class WorkHourStatistics {
     /**
      * 每3小时上传一次所有日工时、周工时、月工时
      */
-//    @Scheduled(fixedDelay = 10800000L)
+    @Scheduled(fixedDelay = 10800000L)
     public void updateHour(){
         logService.updateAllChuanyunSelfWorkHour();
         logService.updateAllChuanyunWeekMemberHour();