multi-system/src/main/java/com/gkhy/exam/system/service/impl/SysRoleServiceImpl.java
@@ -197,13 +197,13 @@ @Override public void checkRoleDataScope(Long... roleIds) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) if (!SecurityUtils.adminUser()) { for (Long roleId : roleIds) { SysRole role = new SysRole(); role.setRoleId(roleId); List<SysRole> roles = (List<SysRole>) SpringUtils.getAopProxy(this).selectRoleList(role); List<SysRole> roles = (List<SysRole>) SpringUtils.getAopProxy(this).selectRoleList(role).getList(); if (ObjectUtil.isEmpty(roles)) { throw new ApiException("没有权限访问角色数据!");