first(); } /** * 根据path获取指定科室的所有下级 */ public function getAllSubDept($path) { return self::where('dept_path', 'like', $path . '%')->get()->toArray(); } }