|
@@ -168,13 +168,21 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|
|
Map<String, Object> map = new HashMap<>(5);
|
|
|
Object attendanceTableWork = jsonObject.get("attendance_table_work");
|
|
|
Object attendanceTableOffWork = jsonObject.get("attendance_table_offwork");
|
|
|
+ Object attendanceTableWorkPm = jsonObject.get("attendance_table_work_pm");
|
|
|
+ Object attendanceTableOffWorkPm = jsonObject.get("attendance_table_offwork_pm");
|
|
|
map.put("attendanceTableWork", "未打卡");
|
|
|
map.put("attendanceTableOffWork", "未打卡");
|
|
|
if (isNotEmpty(attendanceTableWork)) {
|
|
|
- map.put("attendanceTableWork", attendanceTableWork + "已打卡");
|
|
|
+ map.put("attendanceTableWork", attendanceTableWork + " 已打卡");
|
|
|
}
|
|
|
if (isNotEmpty(attendanceTableOffWork)) {
|
|
|
- map.put("attendanceTableWork", attendanceTableOffWork + "已打卡");
|
|
|
+ map.put("attendanceTableWork", attendanceTableOffWork + " 已打卡");
|
|
|
+ }
|
|
|
+ if (isNotEmpty(attendanceTableWorkPm)) {
|
|
|
+ map.put("attendanceTableWorkPm", attendanceTableWorkPm + " 已打卡");
|
|
|
+ }
|
|
|
+ if (isNotEmpty(attendanceTableOffWorkPm)) {
|
|
|
+ map.put("attendanceTableOffWorkPm", attendanceTableOffWorkPm + " 已打卡");
|
|
|
}
|
|
|
|
|
|
map.put("dateTime", jsonObject.get("attendance_table_week") + " " + jsonObject.get("attendance_table_todaytime"));
|
|
@@ -292,6 +300,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()) {
|
|
@@ -299,6 +308,7 @@ public class AttendanceServiceImpl implements AttendanceService {
|
|
|
}
|
|
|
|
|
|
UpdateDto updateDto = new UpdateDto();
|
|
|
+ //如果是更新
|
|
|
JSONObject commitDataUpdate = new JSONObject();
|
|
|
if (GO_TO_WORK_TYPE == type) {
|
|
|
if (checkIsLate(currentTime,type)) {
|