fix(REQ-2300): 记录角色code
This commit is contained in:
parent
0a00c2fb39
commit
ef36265460
@ -39,6 +39,10 @@ public class DataObjectRuleBO {
|
||||
* 岗位/角色id
|
||||
*/
|
||||
private List<Long> relationId;
|
||||
/**
|
||||
* 岗位code
|
||||
*/
|
||||
private List<String> relationCodes;
|
||||
/**
|
||||
* 岗位列表
|
||||
*/
|
||||
|
||||
@ -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()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user