|
@@ -4,6 +4,7 @@ import com.galaxis.manatee.dao.ChuanyunGroupProjectDao;
|
|
|
import com.galaxis.manatee.dao.ChuanyunUserCompanyDao;
|
|
|
import com.galaxis.manatee.service.LogCheckService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
@@ -32,9 +33,10 @@ public class LogCheckTask {
|
|
|
* 2.遍历每个用户,核对每周、每月工时准确性
|
|
|
* 3.遍历每个项目核对每个项目总工时
|
|
|
*/
|
|
|
-// @Scheduled(fixedDelay = 432000000L)
|
|
|
+ @Scheduled(fixedDelay = 432000000L)
|
|
|
private void checkLod(){
|
|
|
chuanyunUserCompanyDao.findAll().forEach(chuanyunUserCompanyDO -> {
|
|
|
+ long start=System.currentTimeMillis();
|
|
|
try {
|
|
|
//核对原始数据和标准化每日工时
|
|
|
logCheckService.checkDayWorkHour(chuanyunUserCompanyDO.getUserId());
|
|
@@ -44,6 +46,7 @@ public class LogCheckTask {
|
|
|
log.error(""+chuanyunUserCompanyDO);
|
|
|
log.error(e.getMessage());
|
|
|
}
|
|
|
+ log.info("修改"+chuanyunUserCompanyDO.getUserName()+"工时信息耗时"+(System.currentTimeMillis()-start));
|
|
|
});
|
|
|
//核对每周、每月、每个项目工时准确性
|
|
|
chuanyunGroupProjectDao.findAll().forEach(chuanyunGroupProjectDO -> {
|