请求地址
/v2/webservice/apply/check-rebuild-table-apply
请求方法
Post
请求参数为数组, 数组元素参数说明
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| apply_id | id | 是 | 单据ID |
| auto_execute_task | boolean | 否 | 是否自动执行任务 |
请求示例
[{
apply_id:1,
auto_execute_task: true,
}]
返回参数, data字段为数组,数组元素结构说明
| 参数名称 | 类型 | 说明 |
|---|---|---|
| apply_id | number | |
| task_id | number |
成功返回
{
"code": 0,
"request_id": "7c875dc8-02f5-4409-bd39-7b50aace03f6",
"data": [
{
"apply_id": 34890,
"set_id": 1,
"app_id": 5,
"zone_id": "11",
"table_name": "ItemAttri",
"table_type": 0,
"table_maxnum": 0,
"fmt_type": "TDR",
"task_id": 25893,
"result": 0,
"msg": "审核成功, 请查看生成的任务"
}
]
}
失败返回, (非待审核状态的单据)
{
"request_id": "74042829-2bd8-4e4b-9228-d893b6cddfa2",
"code": 102,
"message": "单据不是待执行状态, 不能执行",
"debug_message": [
{
"apply_id": 34890,
"execute_status": 1,
"zone_id": "11",
"table_type": 0,
"table_name": "ItemAttri",
"apply_type": 3
}
]
}