| | |
| | | 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());
|
| | |
| | | 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()));
|
| | | }
|
| | | }
|