处理周末打卡打卡状态计算bug

This commit is contained in:
aikai 2024-11-23 10:04:05 +08:00
parent ada0c8d0ba
commit 169c30f395

View File

@ -77,13 +77,14 @@ public class AttendancePunchPageVO {
/** /**
* 处理加班打卡 不计算是否迟到早退 * 处理加班打卡 不计算是否迟到早退
*
* @param punchType * @param punchType
*/ */
public void setPunchType(Integer punchType) { public void setPunchType(Integer punchType) {
if (this.getFieldworkFlag() == 0) { if (this.getWorkOvertimeFlag() == 0) {
this.punchType = punchType; this.punchType = punchType;
} else { } else {
this.punchType = Arrays.asList(0, 2).contains(punchType) ? 0 : 1; this.punchType = Arrays.asList(0, 2).contains(punchType) ? 0 : (Arrays.asList(1, 3).contains(punchType) ? 1 : 4);
} }
} }
} }