mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-10 11:26:50 +08:00
修改 manageOrgIds 接口的处理
This commit is contained in:
@@ -210,14 +210,23 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
|
||||
uids.getPermissions().put(UserOrgIds.IsSystemAdminKey, isAdminNode.asBoolean());
|
||||
}
|
||||
}
|
||||
//根据最新接口修正20230622 result返回的两个数组,mainList ,readOnlyList,只是使用 mainList
|
||||
// if(rootNode.get("result")!=null & rootNode.get("result").isArray()) {
|
||||
// JsonNode result = rootNode.get("result");
|
||||
// Iterator<JsonNode> elements = result.elements();
|
||||
// while (elements.hasNext()){
|
||||
// orgIds.add(elements.next().toString());
|
||||
// }
|
||||
// }
|
||||
|
||||
if(rootNode.get("result")!=null & rootNode.get("result").isArray()) {
|
||||
JsonNode result = rootNode.get("result");
|
||||
if(rootNode.get("result")!=null & rootNode.get("result").get("mainList")!=null) {
|
||||
JsonNode result = rootNode.get("result").get("mainList");
|
||||
Iterator<JsonNode> elements = result.elements();
|
||||
while (elements.hasNext()){
|
||||
orgIds.add(elements.next().toString());
|
||||
}
|
||||
}
|
||||
|
||||
}catch (Exception e){
|
||||
log.error("获取当前用户有权限的机构id错误",e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user