【底座】SysOrgApi增加getAncestorNodes接口,供其他地方调用

This commit is contained in:
xuyuxiang
2026-04-22 02:03:44 +08:00
parent 74070c77b5
commit 3810abb285
2 changed files with 13 additions and 0 deletions
@@ -88,4 +88,12 @@ public interface SysOrgApi {
* @date 2026/3/23 14:00
**/
List<String> getChildOrgIdListById(String orgId);
/**
* 根据orgId列表获取祖先路径节点(用于懒加载树回显)
*
* @author xuyuxiang
* @date 2026/4/22
**/
List<JSONObject> getAncestorNodes(List<String> orgIdList);
}
@@ -91,4 +91,9 @@ public class SysOrgApiProvider implements SysOrgApi {
return sysOrgService.getChildListById(sysOrgService.getAllOrgList(), orgId, true)
.stream().map(SysOrg::getId).collect(Collectors.toList());
}
@Override
public List<JSONObject> getAncestorNodes(List<String> orgIdList) {
return sysOrgService.getAncestorNodes(orgIdList);
}
}