功能说明:获取成本中心信息列表
请求方式:POST(HTTPS)multipart/form-data
请求地址:https://qwif.do1.com.cn/qwcgi/api/remiApi/getCenterCostList.do?token=token&corpId=corpId
无
ReimApi api = QwSdkUtil.getInter(ReimApi.class); // 调用接口 ApiReimGetCenterCostResult s = api.getCenterCostList( QwSdkUtil.getCacheToken(), SdkConfig.getString("corpId")); // 表单id System.out.println(JSONUtil.stringify(s));
{ "code":"0", "data": { "data": { "children": [ { "id":"fa27513514364b60a14a0fb4d91955bb", "name":"分支流程测试", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"9bf521032710e572f5a4c68f21313318", "principalName":"啊宇", "status":"1" }, { "id":"b79ef030ff88436f99eee73601c4c659", "name":"测试dqdp升级", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"a6fe281d056087bbe814b29954f61972", "principalName":"啊林", "status":"0" }, { "id":"d4e98d3ea4124771bae7393dfe70ee35", "name":"测试成本中心", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"9bf521032710e572f5a4c68f21313318", "principalName":"啊宇", "status":"0" }, { "children": [ { "endTime":"2018-03-31", "id":"4c346eb876fb412987e961c15aae66fc", "name":"产品部门成本中心", "parentId":"85a51a0c84fa4e47900379b51d335951", "principalIds":"9bf521032710e572f5a4c68f21313318", "principalName":"啊宇", "startTime":"2018-03-13", "status":"0" } ], "id":"85a51a0c84fa4e47900379b51d335951", "name":"开发部门成本中心", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"9bf521032710e572f5a4c68f21313318", "principalName":"啊宇", "relevantUserIds":"0139275fb68c1054fd8761c1de1850ed", "relevantUserName":"啊豪,", "status":"0" }, { "endTime":"2018-03-22", "id":"b107470c686d4816a661f0891a2c6858", "name":"测试1", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"0139275fb68c1054fd8761c1de1850ed", "principalName":"啊薛", "startTime":"2018-03-01", "status":"0" }, { "id":"1bcfcbd51c7c4bf3a33ae49dbf1358b0", "name":"测试", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"98c40e0e3fc2628d0fdd6d88f3f98900", "principalName":"阿桂", "status":"1" }, { "id":"1c7ee4128c974c739118e535b1d040bc", "name":"二级测试", "parentId":"b8ba7af350f040aab68378a0d981dce6", "principalIds":"a6fe281d056087bbe814b29954f61972", "principalName":"潘改", "status":"0" }, { "children": [ { "id":"c945a53a77e543b5a6de8da75dc3bae8", "name":"三级成本中心", "parentId":"9016edf386a94b7d912003c5d99095f7", "principalIds":"a6fe281d056087bbe814b29954f61972,432dc47ec73dc57ab360f6930c367079,0139275fb68c1054fd8761c1de1850ed", "principalName":"潘有,陈已,薛为", "status":"0" } ], "id":"9016edf386a94b7d912003c5d99095f7", "name":"二级成本中心", "parentId":"b8ba7af350f040aab68378a0d981dce6", "status":"0" } ], "id":"b8ba7af350f040aab68378a0d981dce6", "name":"道一云测试", "parentId":"0", "principalIds":"a6fe281d056087bbe814b29954f61972,9bf521032710e572f5a4c68f21313318", "principalName":"潘y,苏y", "status":"0" } }, "desc":"成功" }
参数 |
说明 |
---|---|
code |
0成功,其他,失败 |
desc |
返回具体失败原因 |
data |
成本中心信息 |
data参数 |
说明 |
---|---|
id |
成本中心ID |
name |
成本中心名称 |
parentId |
父成本中心ID(一级成本中心父ID为0) |
principalIds |
负责人ID(多个以,分割) |
principalName |
负责人名称(多个以,分割) |
relevantUserIds |
相关人ID(多个以,分割) |
relevantUserName |
相关人名称(多个以,分割) |
startTime |
有效开始时间(YYYY-MM-DD) |
endTime |
有效结束时间(YYYY-MM-DD) |
status |
状态(0.启用,1,禁用) |
children |
子成本中心集合 |