赵士淞
2023-05-06 d71c0df32ed6534ca42e8363b74fbea12bac7613
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/UserServiceImpl.java
@@ -792,4 +792,11 @@
        // 保存
        sysUserLevelOtherRepository.save(sysUserLevelOther);
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<UserDto> findByRoleLevel(Integer level) {
        // 根据角色等级查询用户
        return userMapper.toDto(userRepository.findByRoleLevel(level));
    }
}