Commit 3171b9c0 authored by 廖旭伟's avatar 廖旭伟

修改汇总异常考勤的bug

parent 4d97219c
......@@ -33,7 +33,7 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService {
}
cacheService.set(SUMMARY_TASK_KEY,"true",600);
attendanceStatService.doAttendanceSummary(null);
cacheService.set(SUMMARY_TASK_KEY,"false",60);
cacheService.expire(SUMMARY_TASK_KEY,1);
}catch (Exception e){
}
......
......@@ -31,6 +31,7 @@ public class ErrorSummaryVo {
* 缺卡次数
*/
private Integer morningTimes;
private Integer afternoonTimes;
/**
* 考勤汇总-迟到(次)
*/
......
......@@ -108,9 +108,9 @@ public class AttendanceStatController extends BaseCRUDJsonBodyMappingController<
}else {
service.doAttendanceSummary(query);
}
cacheService.expire(SUMMARY_TASK_KEY,1);
}
});
cacheService.set(SUMMARY_TASK_KEY,"false",60);
model.put("message_info","开始执行考勤汇总,请稍后查看");
} catch (Exception var9) {
code = -1;
......
......@@ -70,6 +70,7 @@
ANY_VALUE(DATE_FORMAT(errorDateTime,'%Y')) as `year`,
ANY_VALUE(DATE_FORMAT(errorDateTime,'%m')) as `month`,
ANY_VALUE(DATE_FORMAT(errorDateTime,'%d')) as `day`,
sum(case errorStatus when 0 then 1 ELSE 0 end) as morningTimes,
sum(case errorStatus when 0 then 1 ELSE 0 end) as afternoonTimes,
sum(case errorStatus when 1 then 1 ELSE 0 end) as overtimeTimes,
sum(case errorStatus when 2 then 1 ELSE 0 end) as lateTimes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment