BAOLH
2026-11-10 c5dfc09145e4e10f99dbf388a4a1433b5c2973e5
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceGoOutServiceImpl.java
@@ -187,7 +187,7 @@
                }
                LocalDateTime goOutStartTime = localDate.atStartOfDay();
                LocalDateTime goOutEndTime = localDate.atTime(LocalTime.MAX);
                LocalDateTime goOutEndTime = localDate.atTime(23, 59, 59);
                if (localDate.equals(endDate)) {
                    goOutEndTime = localDate.atTime(endTime);
                }
@@ -282,7 +282,7 @@
        User user1 = userRepository.getOne(SecurityUtils.getCurrentUserId());
        Role role = user1.getRoles().iterator().next();
        //除超管、总经理只能修改自己信息
        if (role.getId() != Constant.ROLE_LEVEL_SUPER && role.getId() != Constant.ROLE_LEVEL_GENERAL) {
        if (!Constant.SUPER_LEVEL_LIST.contains(Long.valueOf(role.getLevel()))) {
            if (!Long.valueOf(resources.getUserId()).equals(SecurityUtils.getCurrentUserId())) {
                throw new BadRequestException("只能修改自己的记录");
            }
@@ -454,11 +454,11 @@
                throw new BadRequestException("审核通过或退回的不能进行删除");
            }
            //获取当前登入人信息
            // 获取当前登入人信息
            User user = userRepository.getOne(SecurityUtils.getCurrentUserId());
            Role role = user.getRoles().iterator().next();
            //除超管、总经理只能删除自己信息
            if (role.getId() != Constant.ROLE_LEVEL_SUPER && role.getId() != Constant.ROLE_LEVEL_GENERAL) {
            // 除超管、总经理只能删除自己信息
            if (!Constant.SUPER_LEVEL_LIST.contains(Long.valueOf(role.getLevel()))) {
                if (!Long.valueOf(attendanceGoOut.get().getUserId()).equals(SecurityUtils.getCurrentUserId())) {
                    throw new BadRequestException("只能删除自己的记录");
                }