处理周末打卡打卡状态计算bug
This commit is contained in:
parent
ada0c8d0ba
commit
169c30f395
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user