|
|
|
@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import com.ruoyi.common.core.constant.UserConstants;
|
|
|
|
|
import com.ruoyi.common.core.exception.ServiceException;
|
|
|
|
|
import com.ruoyi.common.core.utils.SpringUtils;
|
|
|
|
|
import com.ruoyi.common.mybatis.core.page.PageQuery;
|
|
|
|
|
import com.ruoyi.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.satoken.utils.LoginHelper;
|
|
|
|
@ -102,7 +101,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public List<SysRole> selectRoleAll() {
|
|
|
|
|
return SpringUtils.getAopProxy(this).selectRoleList(new SysRole());
|
|
|
|
|
return this.selectRoleList(new SysRole());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -183,7 +182,7 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
|
|
|
|
if (!LoginHelper.isAdmin()) {
|
|
|
|
|
SysRole role = new SysRole();
|
|
|
|
|
role.setRoleId(roleId);
|
|
|
|
|
List<SysRole> roles = SpringUtils.getAopProxy(this).selectRoleList(role);
|
|
|
|
|
List<SysRole> roles = this.selectRoleList(role);
|
|
|
|
|
if (CollUtil.isEmpty(roles)) {
|
|
|
|
|
throw new ServiceException("没有权限访问角色数据!");
|
|
|
|
|
}
|
|
|
|
|