@myyzs
        
        2018-08-20T08:07:05.000000Z
        字数 1293
        阅读 26
    /api/erp-api/get-parent-dept-list?access_token=ACCESS_TOKEN
POST
| 参数 | 类型 | 说明 | 
|---|---|---|
| dept_guid | 字符串 | 部门的guid | 
| tenant_id | 字符串 | 企业的tenant_id | 
正常结果
{
"success": 1,
"data": [
    {
        "dept_guid": "11b11db4-e907-4f1f-8835-b9daab6e1f23",
        "dept_name": "开发环境",
        "parent_guid": "",
        "is_company": "1",
        "is_end_company": "0",
        "butype": "0",
        "order_hierarchy_code": "0001",
        "yzs_order_hierarchy_code": "10000"
    },
    {
        "dept_guid": "1eadc74d-e67f-46e8-b289-99e025484642",
        "dept_name": "华中区域",
        "parent_guid": "11b11db4-e907-4f1f-8835-b9daab6e1f23",
        "is_company": "1",
        "is_end_company": "0",
        "butype": "0",
        "order_hierarchy_code": "0001.0040",
        "yzs_order_hierarchy_code": "10000.10020"
    },
    {
        "dept_guid": "894af324-afc5-46a4-b600-d4f782bf0aec",
        "dept_name": "区域_公司1",
        "parent_guid": "1eadc74d-e67f-46e8-b289-99e025484642",
        "is_company": "1",
        "is_end_company": "1",
        "butype": "0",
        "order_hierarchy_code": "0001.0040.0001",
        "yzs_order_hierarchy_code": "10000.10020.10000"
    },
    {
        "dept_guid": "0f4e6454-42ef-4558-8942-70965c078058",
        "dept_name": "部门003",
        "parent_guid": "894af324-afc5-46a4-b600-d4f782bf0aec",
        "is_company": "0",
        "is_end_company": "0",
        "butype": "1",
        "order_hierarchy_code": "0001.0040.0001.0005",
        "yzs_order_hierarchy_code": "10000.10020.10000.10003"
    }
]
}
异常结果
  {
        "success": 0,
        "data": {
            "errcode": 100,
            "msg": "此接口只支持从ERP初始化而来的租户"
        }
    }
