|
@@ -3,6 +3,7 @@ package com.galaxis.manatee.task;
|
|
|
import com.galaxis.manatee.dao.ChuanyunUserCompanyDao;
|
|
|
import com.galaxis.manatee.entity.chuanyun.data.object.ChuanyunUserCompanyDO;
|
|
|
import com.galaxis.manatee.service.LogDownloadService;
|
|
|
+import com.galaxis.manatee.service.LogService;
|
|
|
import com.galaxis.manatee.service.LogStandardService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
@@ -21,11 +22,13 @@ public class WorkHourStatisticsRecently {
|
|
|
private final LogDownloadService logDownloadService;
|
|
|
private final ChuanyunUserCompanyDao chuanyunUserCompanyDao;
|
|
|
private final LogStandardService logStandardService;
|
|
|
+ private final LogService logService;
|
|
|
|
|
|
- public WorkHourStatisticsRecently(LogDownloadService logDownloadService, ChuanyunUserCompanyDao chuanyunUserCompanyDao, LogStandardService logStandardService) {
|
|
|
+ public WorkHourStatisticsRecently(LogDownloadService logDownloadService, ChuanyunUserCompanyDao chuanyunUserCompanyDao, LogStandardService logStandardService, LogService logService) {
|
|
|
this.logDownloadService = logDownloadService;
|
|
|
this.chuanyunUserCompanyDao = chuanyunUserCompanyDao;
|
|
|
this.logStandardService = logStandardService;
|
|
|
+ this.logService = logService;
|
|
|
}
|
|
|
|
|
|
@Scheduled(fixedDelay = 3600000L)
|
|
@@ -34,6 +37,9 @@ public class WorkHourStatisticsRecently {
|
|
|
standardWorkHour();
|
|
|
standardWeeklyWorkHour();
|
|
|
standardMonthlyWorkHour();
|
|
|
+ logService.updateAllChuanyunSelfWorkHour();
|
|
|
+ logService.updateAllChuanyunWeekMemberHour();
|
|
|
+ logService.updateAllChuanyunSelfCost();
|
|
|
}
|
|
|
|
|
|
/**
|