Commit 6374ec29 authored by 赵啸非's avatar 赵啸非

整理代码

parent d9919c96
...@@ -493,8 +493,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract { ...@@ -493,8 +493,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
Long[] errorIds = delErrorList.stream().map(i -> i.getId()).toArray(Long[]::new); Long[] errorIds = delErrorList.stream().map(i -> i.getId()).toArray(Long[]::new);
if (!ObjectUtils.isEmpty(errorIds)) { if (!ObjectUtils.isEmpty(errorIds)) {
//log.info("删除 {} 人员:{} 异常记录:{}",dateStr,staffId, JSON.toJSONString(attendanceRecordErrorEntities)); //log.info("删除 {} 人员:{} 异常记录:{}",dateStr,staffId, JSON.toJSONString(attendanceRecordErrorEntities));
StopWatch stopWatch = new StopWatch(); // StopWatch stopWatch = new StopWatch();
stopWatch.start("删除异常记录耗时"); // stopWatch.start("删除异常记录耗时");
//todo 耗时长,删除优化 //todo 耗时长,删除优化
errorService.getDao().delete(errorIds); errorService.getDao().delete(errorIds);
/* /*
...@@ -547,8 +547,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract { ...@@ -547,8 +547,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
} }
} }
} }
stopWatch.stop(); // stopWatch.stop();
log.info("删除异常记录耗时:{}ms", stopWatch.getLastTaskTimeMillis()); // log.info("删除异常记录耗时:{}ms", stopWatch.getLastTaskTimeMillis());
} }
} }
......
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