考勤打卡追加下班打卡位置

This commit is contained in:
2025-03-05 16:11:15 +08:00
parent f12f252904
commit 0e156418d9
3 changed files with 15 additions and 5 deletions

View File

@ -185,8 +185,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
setRecruitId(appById.getId()).
setUserId(appUserId).
setDailyWage(appById.getRecruitAmount()).
setDate(LocalDate.now()).
setPnchOsition(req.getPnchOsition());
setDate(LocalDate.now());
LocalDateTime now = LocalDateTime.now(); //当前完整年月日时分秒
LocalTime localTime = now.toLocalTime(); //获取时分秒
if (we !=null) {
@ -203,6 +202,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
wgzAttendance.setEarlyLeave(1); //早退
wgzAttendance.setEarlyLeaveTime(now);
wgzAttendance.setExceptionType(exceptionType+"2,");
wgzAttendance.setPnchOsitionX(req.getPnchOsition());
}
return baseMapper.updateById(wgzAttendance) > 0;
}else{
@ -212,6 +212,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
wgzAttendance.setLate(1); //迟到
wgzAttendance.setLateTime(now);
wgzAttendance.setExceptionType("1,");
wgzAttendance.setPnchOsition(req.getPnchOsition());
}
return baseMapper.insert(wgzAttendance) > 0;
}
@ -527,6 +528,7 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
WgzAppPunchTheCalendarRecordThree sbb = new WgzAppPunchTheCalendarRecordThree().
setClockingTime(wa.getClockInTime()).
setPnchOsition(wa.getPnchOsition()).
setPnchOsitionX(wa.getPnchOsitionX()).
setClockingCondition(0); //正常
//判断是否请假
if (wa.getLeaveMarkId()!=null && wa.getLeaveMarkId()!=0) {