Explorar o código

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

verguenza %!s(int64=4) %!d(string=hai) anos
pai
achega
63282648d8

+ 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();