Commit c7d6c87e authored by 廖旭伟's avatar 廖旭伟

测试bug修改

parent 5c3bb772
...@@ -138,28 +138,30 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro ...@@ -138,28 +138,30 @@ public class StaffPerformSummaryController extends BaseCRUDJsonBodyMappingContro
if(StringUtils.isNotEmpty(verify)&&verify.equals("true")){ if(StringUtils.isNotEmpty(verify)&&verify.equals("true")){
throw new AppException("汇总任务正在执行,请勿重复操作"); throw new AppException("汇总任务正在执行,请勿重复操作");
} }
// if(StringUtils.isNotEmpty(query.getCheckTimeStart())){ if(StringUtils.isNotEmpty(query.getCheckTimeStart())){
// Date date = DateUtils.StrToDateTime(query.getCheckTimeStart()); Date date = DateUtils.StrToDateTime(query.getCheckTimeStart());
// Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
// calendar.setTime(date); calendar.setTime(date);
// int year = calendar.get(Calendar.YEAR); int year = calendar.get(Calendar.YEAR);
// int month = calendar.get(Calendar.MONTH) + 1; int month = calendar.get(Calendar.MONTH) + 1;
// StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity(); StaffPerformSummaryEntity staffPerformSummaryEntity = new StaffPerformSummaryEntity();
// staffPerformSummaryEntity.setReviewScore(BigDecimal.ZERO); staffPerformSummaryEntity.setReviewScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setOtherScore(BigDecimal.ZERO); staffPerformSummaryEntity.setOtherScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setGoworkScore(BigDecimal.ZERO); staffPerformSummaryEntity.setGoworkScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setEffectScore(BigDecimal.ZERO); staffPerformSummaryEntity.setEffectScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setComplainScore(BigDecimal.ZERO); staffPerformSummaryEntity.setComplainScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setAttendScore(BigDecimal.ZERO); staffPerformSummaryEntity.setAttendScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100); staffPerformSummaryEntity.setTotalScore(StaffPerformUtil.SCORE100);
// staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO); staffPerformSummaryEntity.setErrorScore(BigDecimal.ZERO);
// staffPerformSummaryEntity.setUpdateTime(new Date()); staffPerformSummaryEntity.setUpdateTime(new Date());
// staffPerformSummaryEntity.setStaffId(query.getStaffId()); Map<String,Object> condition = new HashMap<>();
// Map<String,Object> condition = new HashMap<>(); condition.put("year",year);
// condition.put("year",year); condition.put("month",month);
// condition.put("month",month); if(query.getStaffId()!=null){
// this.service.getDao().update(staffPerformSummaryEntity,condition); condition.put("staffId",query.getStaffId());
// } }
this.service.getDao().update(staffPerformSummaryEntity,condition);
}
cacheService.lpush(KEY_CHECK_SUMMARY_CACHE,query); cacheService.lpush(KEY_CHECK_SUMMARY_CACHE,query);
cacheService.set(SUMMARY_TASK_KEY,"true",900); //15分钟过期 cacheService.set(SUMMARY_TASK_KEY,"true",900); //15分钟过期
model.put("message_info", "开始执行绩效汇总,请稍后查看"); model.put("message_info", "开始执行绩效汇总,请稍后查看");
......
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