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

考勤汇总改为只有事假,当天不算全勤

parent a27a3d44
...@@ -449,18 +449,21 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc ...@@ -449,18 +449,21 @@ public class AttendanceStatServiceImpl extends AbstractCRUDServiceImpl<Attendanc
} }
} }
//temp.setGoTimes(0); //默认只要有请假,当天就不算全勤 //temp.setGoTimes(0); //默认只要有请假,当天就不算全勤
temp.setMorningTimes(0); //有请假则清空当天缺卡次数 //temp.setMorningTimes(0); //有请假则清空当天缺卡次数
temp.setLateTimes(0); //temp.setLateTimes(0);
temp.setOvertimeTimes(0); //temp.setOvertimeTimes(0);
LeaveTypeEnum leaveTypeEnum = LeaveTypeEnum.getByValue(item.getLeaveType()); LeaveTypeEnum leaveTypeEnum = LeaveTypeEnum.getByValue(item.getLeaveType());
if (leaveTypeEnum == null) { if (leaveTypeEnum == null) {
leaveTypeEnum = LeaveTypeEnum.其他; //默认为事假 leaveTypeEnum = LeaveTypeEnum.事假; //默认为事假
} }
attendanceSummary = leaveTypeEnum.getDesc() + "*1"; attendanceSummary = leaveTypeEnum.getDesc() + "*1";
switch (leaveTypeEnum) { switch (leaveTypeEnum) {
case 事假: case 事假:
temp.setPersonalLeave(leaveTime); temp.setPersonalLeave(leaveTime);
temp.setGoTimes(0); //只有事假,当天不算全勤 temp.setGoTimes(0); //只有事假,当天不算全勤
temp.setMorningTimes(0); //有请假则清空当天缺卡次数
temp.setLateTimes(0);
temp.setOvertimeTimes(0);
break; break;
case 调休: case 调休:
temp.setCompensatedLeaveDays(leaveTime); temp.setCompensatedLeaveDays(leaveTime);
......
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