BAOLH
2025-08-13 9e0d260cd08e8a70801eeb989ae600324ec40100
因打卡未闭环导致的工资计算问题修改
1 files modified
13 ■■■■■ changed files
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java 13 ●●●●● patch | view | raw | blame | history
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/quartz/service/impl/WeComServiceImpl.java
@@ -582,6 +582,19 @@
            updateAttendanceRecord(null, attendance, Constant.ATTENDANCE_STATE_LEAVE, day, leaveStartDuration, leaveEndDuration);
        }
        // TODO:20250813修改 增加打卡时间判断,打卡时间需要闭环
        Boolean actualTimeLoopFlag = ObjectUtils.isNotEmpty(attendance.getActualWorkStartTime()) == ObjectUtils.isNotEmpty(attendance.getActualWorkEndTime());
        if (!actualTimeLoopFlag) {
            if (ObjectUtils.isEmpty(attendance.getActualWorkStartTime())) {
                attendance.setStartClockResults(Constant.ATTENDANCE_STATE_NOTSIGNED);
                attendance.setStartLocationResults(Constant.LOCATION_RESULTS_NOTSIGNED);
            }
            if (ObjectUtils.isEmpty(attendance.getActualWorkEndTime())) {
                attendance.setEndClockResults(Constant.ATTENDANCE_STATE_NOTSIGNED);
                attendance.setEndLocationResults(Constant.LOCATION_RESULTS_NOTSIGNED);
            }
        }
//        // 查询考勤请假表
//        List<AttendanceLeave> attendanceLeaveList = attendanceLeaveRepository.findByUserIdAndDate(user.getId(), startDate.toLocalDateTime(), endDate.toLocalDateTime());
//        Double leaveDuration = new Double(0.00);//计算的总时长