fix(REQ-2300): 记录角色code

This commit is contained in:
李昆鹏 2024-07-30 14:25:58 +08:00
parent 0a00c2fb39
commit ef36265460
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,10 @@ public class DataObjectRuleBO {
* 岗位/角色id
*/
private List<Long> relationId;
/**
* 岗位code
*/
private List<String> relationCodes;
/**
* 岗位列表
*/

View File

@ -447,6 +447,7 @@ public class DataObjectServiceImpl implements DataObjectService {
if (CollUtil.isNotEmpty(scopeList1)) {
List<Long> relationIdList = scopeList1.stream().map(DataObjectRuleScope::getRelationId).collect(Collectors.toList());
e.setRelationId(relationIdList);
e.setRelationCodes(scopeList1.stream().map(DataObjectRuleScope::getRelationCode).filter(StringUtils::isNotBlank).collect(Collectors.toList()));
}
});
}