BAOLH
2025-10-16 ee756969610b6b0aaa39df85cebcdd0c8cef960e
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/UserServiceImpl.java
@@ -580,11 +580,16 @@
        if (!resources.getEnabled()) {
            onlineUserService.kickOutForUsername(resources.getUsername());
        }
        // 如果用户被登录禁用,则清除用户登录信息
        if (!resources.getLoginEnabled()) {
            onlineUserService.kickOutForUsername(resources.getUsername());
        }
        // 临时旧用户级别ID
        Long tempOldLevelId = user.getLevelId();
        user.setUsername(resources.getUsername());
        user.setEmail(resources.getEmail());
        user.setEnabled(resources.getEnabled());
        user.setLoginEnabled(resources.getLoginEnabled());
        user.setRoles(resources.getRoles());
        user.setDept(resources.getDept());
        user.setJobs(resources.getJobs());
@@ -829,7 +834,8 @@
        List<SysConfigHoliday> holidayConfigurationList = sysConfigHolidayRepository.findAll();
        for (SysConfigHoliday holidayConfiguration : holidayConfigurationList) {
            if (holidayConfiguration.getDateType().equals(Constant.DATE_TYPE_LEGAL_HOLIDAYS)
                    || holidayConfiguration.getDateType().equals(Constant.DATE_TYPE_HOLIDAYS)) {
                    || holidayConfiguration.getDateType().equals(Constant.DATE_TYPE_HOLIDAYS)
                    || holidayConfiguration.getDateType().equals(Constant.DATE_TYPE_WEEKEND)) {
                holiday.add(sdf.format(holidayConfiguration.getHolidayDate()));
            }
        }