Commit e4f1bda6 authored by 姬鋆屾's avatar 姬鋆屾
parents deb06ea3 b4e4e0ab
......@@ -158,7 +158,7 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
recordDetailEntity.setGoWorkDate(DateUtil.parse(commonData.getDateStr() + " " + DateUtil.formatTime(classDetailEntity.getGoWorkDate())));
recordDetailEntity.setOffWorkResult(GoWorkResultEnum.缺卡.getValue());
recordDetailEntity.setOffWorkDate(DateUtil.parse(commonData.getDateStr() + " " + DateUtil.formatTime(classDetailEntity.getGoWorkDate())));
recordDetailEntity.setOffWorkDate(DateUtil.parse(commonData.getDateStr() + " " + DateUtil.formatTime(classDetailEntity.getOffWorkDate())));
recordDetailEntity.setOrderNum(orderNum);
commonData.getDetailEntityList().add(recordDetailEntity);
......@@ -244,8 +244,8 @@ public class FixWorkOtherAttendance extends AttendanceWorkAbstract {
if (next.getOffWorkResult() == OffWorkResultEnum.缺卡.getValue()) {
if (DateUtil.compare(new Date(), next.getOffWorkDate()) < 0) {
next.setGoWorkDate(null);
next.setGoWorkResult(GoWorkResultEnum.正常.getValue());
next.setOffWorkDate(null);
next.setOffWorkResult(OffWorkResultEnum.正常.getValue());
}
}
}
......
......@@ -226,7 +226,7 @@ public class AttendanceStatController extends BaseCRUDJsonBodyMappingController<
collect = attendanceStaffStatEntities.stream().collect(Collectors.toMap(x -> x.getYear() + x.getMonth() + x.getDay(), y -> y.getAttendanceSummary()));
}
List<Map<String, Object>> mapList = new ArrayList<>();
for (int i = 1; i <= subDay.intValue(); i++) {
for (int i = 0; i <= subDay.intValue(); i++) {
DateTime curDate = DateUtil.offsetDay(startDate, i);
//判断详细是否存在,如果不存在 则构造一个空的
Integer year = DateUtil.year(curDate);
......
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