ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的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); } ```