小组批量标志权限修改
This commit is contained in:
parent
8056617943
commit
960a62dd8c
Binary file not shown.
@ -1727,15 +1727,19 @@ public class CooperationWeb extends ActionWeb {
|
|||||||
|
|
||||||
//处理隐藏角色的权限复制,
|
//处理隐藏角色的权限复制,
|
||||||
CoeCooperationRoleModel originHideRole = api.queryCooperationTeamHideRole(teamId, userid);
|
CoeCooperationRoleModel originHideRole = api.queryCooperationTeamHideRole(teamId, userid);
|
||||||
api.removeCooperationRolePerms(teamId,originHideRole.getId());
|
if (null != originHideRole){
|
||||||
CoeCooperationRoleModel targetHideRole = api.queryCooperationTeamHideRole(teamId, targetUserid);
|
CoeCooperationRoleModel targetHideRole = api.queryCooperationTeamHideRole(teamId, targetUserid);
|
||||||
List<CoeCooperationRolePermModel> targetRolePerms = api.queryCooperationRoleDataPermList(teamId, targetHideRole.getId());
|
if (null != targetHideRole){
|
||||||
List<CoeCooperationRolePermModel> permModelList = new ArrayList<>();
|
api.removeCooperationRolePerms(teamId,originHideRole.getId());
|
||||||
for (CoeCooperationRolePermModel targetRolePerm : targetRolePerms) {
|
List<CoeCooperationRolePermModel> targetRolePerms = api.queryCooperationRoleDataPermList(teamId, targetHideRole.getId());
|
||||||
CoeCooperationRolePermModel permModel = new CoeCooperationRolePermModel(UUIDGener.getUUID(), teamId, originHideRole.getId(), targetRolePerm.getPalVersionId(), targetRolePerm.getActionPerm());
|
List<CoeCooperationRolePermModel> permModelList = new ArrayList<>();
|
||||||
permModelList.add(permModel);
|
for (CoeCooperationRolePermModel targetRolePerm : targetRolePerms) {
|
||||||
|
CoeCooperationRolePermModel permModel = new CoeCooperationRolePermModel(UUIDGener.getUUID(), teamId, originHideRole.getId(), targetRolePerm.getPalVersionId(), targetRolePerm.getActionPerm());
|
||||||
|
permModelList.add(permModel);
|
||||||
|
}
|
||||||
|
api.createCooperationRolePerms(permModelList);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
api.createCooperationRolePerms(permModelList);
|
|
||||||
|
|
||||||
return ro.toString();
|
return ro.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user