|
@ -110,16 +110,6 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|
|
queryWrapper.like(SysRole::getCode, sysRoleParam.getCode());
|
|
|
}
|
|
|
}
|
|
|
//查询角色列表时,如果当前登录用户不是超级管理员,则查询自己拥有的
|
|
|
if (!LoginContextHolder.me().isSuperAdmin()) {
|
|
|
|
|
|
//查询自己拥有的
|
|
|
List<String> loginUserRoleIds = LoginContextHolder.me().getLoginUserRoleIds();
|
|
|
if (ObjectUtil.isEmpty(loginUserRoleIds)) {
|
|
|
return new PageResult<>();
|
|
|
}
|
|
|
queryWrapper.in(SysRole::getId, loginUserRoleIds);
|
|
|
}
|
|
|
|
|
|
queryWrapper.eq(SysRole::getStatus, CommonStatusEnum.ENABLE.getCode());
|
|
|
//根据排序升序排列,序号越小越在前
|