|
@@ -295,6 +295,7 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|
|
commitData.put(ATTENDANCE_TABLE_LONGITUDE, dto.getLongitude());
|
|
|
commitData.put(ATTENDANCE_TABLE_LATITUDE, dto.getLatitude());
|
|
|
commitData.put(ATTENDANCE_USER_ID, SecurityUtils.getUserId());
|
|
|
+ commitData.put(ATTENDANCE_DEPT_ID, AuthUtils.getLoginUser().getSysUser().getDeptId());
|
|
|
Timestamp currentTime = new Timestamp(System.currentTimeMillis());
|
|
|
// 是否请假
|
|
|
if (checkIsLeave()) {
|
|
@@ -302,6 +303,7 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|
|
}
|
|
|
|
|
|
UpdateDto updateDto = new UpdateDto();
|
|
|
+ //如果是更新
|
|
|
JSONObject commitDataUpdate = new JSONObject();
|
|
|
if (GO_TO_WORK_TYPE == type) {
|
|
|
if (checkIsLate(currentTime,type)) {
|