>[warning] 使用前必须引入**Organization**模型
use app\common\model\sys\Organization as OrgModel;
#### getByOrgId()-获取指定的组织机构编码的组织结构信息
>[info] getByOrgId($orgId,$fields='*'){}
### 参数
* orgId:组织机构编号
* fields:需要返回的字段
>[success]返回值 array/false
获取数据成功返回的字段集合中**已经将字段名统一转换为小写**,失败则返回false。
### error
return false;
### success
```php
return array(
"orgid" => "80ee444d-b32b-475c-9ba3-cc4b80ecb53d"
"orgname" => "湖北XXX科技有限公司"
"parentorgid" => "Root"
"orgfullname" => "宜昌市XXX\湖北XXX科技有限公司"
"orglevel" => "0"
"orgorderno" => 99993000
"istmporg" => 0
"type" => "0"
"createdtime" => "2019-06-20 12:01:34"
"lastmodtime" => "2019-06-28 09:39:21"
"creator" => "admin"
"lastmodifier" => NULL
"thirdapppkid" => 140
"orggroup" => "APP"
)
```
- 空白目录
- 简介
- 前端
- 组件
- 文件上传
- 用户选择
- 组织机构选择
- 角色岗位选择
- 岗位选择
- 用户组选择
- 高拍仪上传
- 公共类库
- 组织机构
- 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