mirror of
https://gitee.com/xiaonuobase/snowy.git
synced 2026-10-06 06:52:58 +08:00
【底座】SysOrgApi增加getAncestorNodes接口,供其他地方调用
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
+5
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user