feat:(REQ-2545) 菜单资源配置角色时,pgroupPermissionRelation增加featureType和type信息
This commit is contained in:
parent
f9e394f62b
commit
5ee96d4003
@ -29,6 +29,11 @@ public class FeatureRoleRelationReq {
|
|||||||
/** 功能Id **/
|
/** 功能Id **/
|
||||||
private Long featureId;
|
private Long featureId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 菜单资源的类型
|
||||||
|
*/
|
||||||
|
private Integer featureType;
|
||||||
|
|
||||||
/** 应用的角色Id列表 **/
|
/** 应用的角色Id列表 **/
|
||||||
private List<Long> roleIds;
|
private List<Long> roleIds;
|
||||||
|
|
||||||
|
|||||||
@ -112,6 +112,8 @@ import java.util.function.Function;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import static cn.axzo.tyr.server.repository.entity.SaasPgroupPermissionRelation.NEW_FEATURE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 角色
|
* 角色
|
||||||
*
|
*
|
||||||
@ -1349,6 +1351,8 @@ public class RoleServiceImpl extends ServiceImpl<SaasRoleMapper, SaasRole>
|
|||||||
relation.setFeatureId(item.getFeatureId());
|
relation.setFeatureId(item.getFeatureId());
|
||||||
relation.setGroupId(groupId);
|
relation.setGroupId(groupId);
|
||||||
relation.setCreateBy(operatorId);
|
relation.setCreateBy(operatorId);
|
||||||
|
relation.setFeatureType(item.getFeatureType());
|
||||||
|
relation.setType(NEW_FEATURE);
|
||||||
insertRelation.add(relation);
|
insertRelation.add(relation);
|
||||||
});
|
});
|
||||||
saasPgroupPermissionRelationDao.saveBatch(insertRelation);
|
saasPgroupPermissionRelationDao.saveBatch(insertRelation);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user