根据上级部门ID查询部门信息

1 请求地址

https://open-api.lebanban.com/dept/get-dept-info

2 请求方式

POST方式

3 接口说明

该接口用于根据上级部门ID查询部门信息,只支持查询上级的部门的下一级部门

4 输入输出参数

输入参数

字段名称类型是否必填字段说明
compRootIdString企业ID
compIdString分公司ID
parentIdString上级部门ID 如果没有值为0

输出参数

分公司ID
字段名称类型字段说明
compRootIdString企业ID
compIdString
deptIdString部门ID
parentIdString上级部门ID
nameString部门名称

5 输入输出报文

输入报文

{ "accessKeyId": "8823158db9203ad486f1a0f1f7616616", "saltStr": "8823158db9203ad486f1a0f1f7616617", "timestamp": 1550122509539, "sign": "ad458baec712f8fe3d810511950f5935", "compRootId": "9562daf9df1647a0", "compId": "9562daf9df1647a0", "parentId":"0" }

输出报文

{ "code": "0", "list": [ { "compId": 1695, "compRootId": 1695, "deptId": 49, "name": "人力资源部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 50, "name": "行政部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 51, "name": "财务部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 52, "name": "销售部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 53, "name": "客服部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 54, "name": "运营部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 55, "name": "产品部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 56, "name": "设计部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 57, "name": "研发部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 58, "name": "市场部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 59, "name": "公关部", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 60, "name": "总裁办", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 89, "name": "未分配部门", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 100, "name": "lizhonglinces123", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 101, "name": "lizhonglinceshi", "parentId": 0 }, { "compId": 1695, "compRootId": 1695, "deptId": 102, "name": "开发一部", "parentId": 0 } ] }