Commit d761c467 authored by 赵啸非's avatar 赵啸非

添加定时删除重复的考勤记录

parent a6f5e027
......@@ -42,6 +42,9 @@ public class CalculateDayAttendTaskImpl implements ITaskExcuteService {
@Override
public void excuteTask(ITask task) throws AppException {
//查询当日考勤记录,查询未考勤人员,构造一条假记录方便计算
try {
AttendanceRecordHikQuery recordHikQuery = new AttendanceRecordHikQuery();
recordHikQuery.setAttendanceDateStart(DateUtil.today());
recordHikQuery.setAttendanceDateEnd(DateUtil.today());
......@@ -51,7 +54,9 @@ public class CalculateDayAttendTaskImpl implements ITaskExcuteService {
// recordHikService.buildCustomHikRecord(recordHikQuery, null);
recordHikService.buildAllCustomHikRecord(recordHikQuery, null);
} catch (Exception e) {
}
int delCount = attendanceRecordService.getDao().deleteDuplicateRecord();
......
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