mirror of https://gitee.com/stylefeng/roses
【8.3.3】【role】根据公司id查询角色
parent
af6c2b2e4c
commit
f1c5c0b8ac
|
@ -486,6 +486,11 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
||||||
queryWrapper.eq(SysRole::getRoleCategoryId, sysRoleRequest.getRoleCategoryId());
|
queryWrapper.eq(SysRole::getRoleCategoryId, sysRoleRequest.getRoleCategoryId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 根据公司id查询角色
|
||||||
|
if (ObjectUtil.isNotEmpty(sysRoleRequest.getRoleCompanyId())) {
|
||||||
|
queryWrapper.eq(SysRole::getRoleCompanyId, sysRoleRequest.getRoleCompanyId());
|
||||||
|
}
|
||||||
|
|
||||||
// 排序字段
|
// 排序字段
|
||||||
queryWrapper.orderByAsc(SysRole::getRoleType);
|
queryWrapper.orderByAsc(SysRole::getRoleType);
|
||||||
queryWrapper.orderByAsc(SysRole::getRoleSort);
|
queryWrapper.orderByAsc(SysRole::getRoleSort);
|
||||||
|
|
Loading…
Reference in New Issue