>[warning] 使用前必須引入**Organization**模型
use app\common\model\sys\Organization as OrgModel;
#### getParents()-獲取指定的組織結構節點的父級節點信息
>[info] getParents($orgId,$fields='*'){}
### 參數
* orgId:組織機構節點編號
* fields:需要查詢返回的字段集合,支持數組和字符串
>[success]返回值 array/false
獲取數據成功返回數組,失敗則返回false。
### error
return false;
### success
```php
return array(
"OrgId" => "017402b1-50c3-43e5-967e-b8cc26523955",
""OrgName => "綜合科",
.....
)
```
- 空白目錄
- 簡介
- 前端
- 組件
- 文件上傳
- 用戶選擇
- 組織機構選擇
- 角色崗位選擇
- 崗位選擇
- 用戶組選擇
- 高拍儀上傳
- 公共類庫
- 組織機構
- bindToOrg
- bindusertoremote
- getAncestors
- getAllChildIds
- getByOrgId
- getByThirdAppPkId
- getChilds
- getChildsCount
- getMasterOrg
- getOrgUserById
- getOrgUser
- getOrgRoleData
- getOrgRoleQuota
- getOrgRoleUserCount
- getParents
- getPosteritys
- getTreeArray
- getUserOrgs
- getUserOrgCount
- getUserOrgRoleInfo
- hasChild
- hasMasterOrg
- hasBind
- isOrgUser
- updateOrg
- 用戶管理
- getAuthorInfo
- getByDuty
- getByGroup
- getByMobile
- getByOrg
- getByUserId
- getByUserName
- getByRole
- getByToken
- getByThirdUserId
- getUserOrgs
- getUserRoles
- getUserList
- 統一待辦
- createTodo
- createHandle
- createRead
- removeTodo
- getTodoList
- setReaded