|
@@ -111,11 +111,11 @@ public class RolePrivilegeCloudServiceProvider extends ControllerSupport
|
|
|
@PostMapping("getPrivilegeList")
|
|
|
@Override
|
|
|
public GetPrivilegeListResp getPrivilegeList(@RequestBody GetPrivilegeListReq req) {
|
|
|
-
|
|
|
+ Long rootOrgId = req.getRootOrgId();
|
|
|
Long roleId = req.getRoleId();
|
|
|
|
|
|
List<RolePrivilegeRelationEntity> relationList = rolePrivilegeRelationRepo
|
|
|
- .findAllByRoleId(roleId);
|
|
|
+ .findAllByRoleIdAndRootOrgId(roleId, rootOrgId);
|
|
|
|
|
|
List<String> privilegeCodeList = Lists.newArrayList();
|
|
|
for (RolePrivilegeRelationEntity cur : relationList) {
|