主题
查询服务的待办数量 3.4.3+
用于获取服务下的待办数量;
接口说明
请求URL:http[s]://{网关地址}/casp-tdc/task/queryTaskServiceIdNum
请求方式: POST
请求内容类型: application/json
响应内容类型: application/json
请求说明
请求体
| 字段名 | 参数名 | 必填 | 类型 | 描述 |
|---|---|---|---|---|
| 服务ID列表 | serviceIds | M | List<String> | 服务ID列表 |
| 用户工号 | userId | O | String(50) | 用户工号 |
请求示例
json
{
"serviceIds": ["###", "###"],
"userId": "###"
}1
2
3
4
2
3
4
响应说明
响应体
| 字段名 | 参数名 | 类型 | 描述 |
|---|---|---|---|
| 返回码 | errcode | String | 返回码 |
| 返回描述 | errmsg | String | 返回描述 |
| 返回的数据集合 | data | List<Model> | 返回的数据集合 |
| 字段名 | 参数名 | 类型 | 描述 |
|---|---|---|---|
| 服务ID | serviceId | String | 服务ID |
| 待办数量 | num | integer | 待办数量 |
响应示例
json
{
"errcode": "0",
"errmsg": "success",
"traceId": null,
"data": []
}1
2
3
4
5
6
2
3
4
5
6
错误码
| 错误码 | 描述 |
|---|---|
| 376999 | 系统异常,详细描述信息参见接口返回 |
| 999 | 统一错误码,详细描述信息参见接口返回 |
Demo
java
// 创建客户端
Client client = new DefaultClient(BASE_URL, APP_ID, APP_SECRET);
// 创建请求对象
QueryTaskServiceIdNumRequest request = new QueryTaskServiceIdNumRequest();
request.setServiceIds(Arrays.asList("xxx"));
request.setUserId("xxx");
QueryTaskServiceIdNumResponse response = client.execute(request);
//调用成功,则处理业务逻辑
if (response.isSuccess()) {
//.....
}1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11

