企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
>[warning] 使用前必须引入**Organization**模型 use app\common\model\sys\Organization as OrgModel; #### getAllChildIds()-获取指定的组织机构节点下的所有的子组织机构节点的编号 >[info] getAllChildIds($orgId,&$res=array()){} ### 参数 * orgId:组织机构编号 * res:输出参数,结果集 >[success]示例代码 ```php $this->model = new OrgModel; $ids ='';//组织结构编号 $arrIds =array(); if($ids){ $this->model->getAllChildIds($ids,$arrIds); } ```