Commit 9ca098c4 authored by 廖旭伟's avatar 廖旭伟

绩效汇总异常排查

parent 54fb9672
...@@ -64,6 +64,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -64,6 +64,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
try { try {
StaffCheckSummaryQuery query = cacheService.brpop(KEY_CHECK_SUMMARY_CACHE,60, StaffCheckSummaryQuery.class); StaffCheckSummaryQuery query = cacheService.brpop(KEY_CHECK_SUMMARY_CACHE,60, StaffCheckSummaryQuery.class);
if(!ObjectUtils.isEmpty(query)){ if(!ObjectUtils.isEmpty(query)){
log.info("绩效分数汇总开始:"+ JSONObject.toJSONString(query));
if(StringUtils.isNotEmpty(query.getCheckTimeStart())){ if(StringUtils.isNotEmpty(query.getCheckTimeStart())){
Date date = DateUtil.parse(query.getCheckTimeStart(),"yyyy-MM-dd"); Date date = DateUtil.parse(query.getCheckTimeStart(),"yyyy-MM-dd");
query.setCheckTimeStart(DateUtil.beginOfMonth(date).toDateStr()); query.setCheckTimeStart(DateUtil.beginOfMonth(date).toDateStr());
...@@ -128,7 +129,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -128,7 +129,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
checkOtherRecordService.summaryCheck(query); checkOtherRecordService.summaryCheck(query);
} }
if(query.getCheckType()==null){ if(query.getCheckType()==null){
log.info("绩效分数汇总开始:"+ JSONObject.toJSONString(query));
checkAttendRecordService.summaryCheck(query); checkAttendRecordService.summaryCheck(query);
checkEffectRecordService.summaryCheck(query); checkEffectRecordService.summaryCheck(query);
checkGoworkRecordService.summaryCheck(query); checkGoworkRecordService.summaryCheck(query);
...@@ -136,10 +137,11 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -136,10 +137,11 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
checkComplainRecordService.summaryCheck(query); checkComplainRecordService.summaryCheck(query);
checkWindowWorkmanPerformService.summaryCheck(query); checkWindowWorkmanPerformService.summaryCheck(query);
checkOtherRecordService.summaryCheck(query); checkOtherRecordService.summaryCheck(query);
}
log.info("绩效分数汇总完成"); log.info("绩效分数汇总完成");
cacheService.set(STAFF_PERFORM_SUMMARY, DateUtils.getCurrStrDateTime()); cacheService.set(STAFF_PERFORM_SUMMARY, DateUtils.getCurrStrDateTime());
} }
}
try { try {
...@@ -148,7 +150,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService { ...@@ -148,7 +150,7 @@ public class StaffCheckSummaryService implements IApplicationStartedService {
} }
} catch (Exception e) { } catch (Exception e) {
// log.error("异常", e); log.error("绩效分数汇总异常", e);
try { try {
Thread.sleep(waitTime); Thread.sleep(waitTime);
......
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