查询角色分组接口补充查询参数

This commit is contained in:
陈维伟 2023-09-14 10:58:19 +08:00
parent 80140309ad
commit 627a5852c1
2 changed files with 12 additions and 0 deletions

View File

@ -36,6 +36,16 @@ public class SaasRoleGroupVO {
*/
private List<Long> roleIds;
/**
* 工作台id(自定义时传入)
*/
private Long workspaceId;
/**
* 单位id(自定义时传入)
*/
private Long ouId;
/**
* 排序
*/

View File

@ -85,6 +85,8 @@ public class SaasRoleGroupServiceImpl implements SaasRoleGroupService {
saasRoleGroup.setOuTypeCode(ouTypeCodeStr);
saasRoleGroup.setName(req.getName());
saasRoleGroup.setSort(req.getSort());
saasRoleGroup.setWorkspaceId(req.getWorkspaceId() != null ? req.getWorkspaceId():-1l);
saasRoleGroup.setOuId(req.getOuId() != null ? req.getOuId():-1l);
saasRoleGroupDao.saveOrUpdate(saasRoleGroup);
}