Commit 92709f7e authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 3f153238 ac558949
...@@ -62,14 +62,17 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService { ...@@ -62,14 +62,17 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService {
log.info("统计添加前一天考勤中绩效异常记录结束"); log.info("统计添加前一天考勤中绩效异常记录结束");
try { try {
log.info("汇总当天绩效分数开始"); log.info("汇总最近两个月绩效分数开始");
StaffCheckSummaryQuery summaryQuery = new StaffCheckSummaryQuery(); StaffCheckSummaryQuery summaryQuery = new StaffCheckSummaryQuery();
summaryQuery.setCheckTimeStart(DateUtils.getCurrStrDate()); Calendar now1 = Calendar.getInstance();
summaryQuery.setCheckTimeEnd(summaryQuery.getCheckTimeStart()); now1.setTime(new Date());
now1.add(Calendar.MONTH,-1);
summaryQuery.setCheckTimeStart(DateUtils.getDateTime(now1.getTime(),"yyyy-MM")+"-01");
summaryQuery.setCheckTimeEnd(DateUtils.getCurrStrDate());
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query); cacheService.lpush(KEY_CHECK_SUMMARY_CACHE, query);
log.info("汇总当天绩效分数结束"); log.info("汇总最近两个月绩效分数结束");
} catch (Exception e) { } catch (Exception e) {
log.error("汇总当天绩效分数出错", e); log.error("汇总最近两个月绩效分数出错", e);
} }
} }
...@@ -77,4 +80,5 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService { ...@@ -77,4 +80,5 @@ public class AttendanceSummaryTaskImpl implements ITaskExcuteService {
public void stopTask(ITask task) throws AppException { public void stopTask(ITask task) throws AppException {
} }
} }
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