1-3-3 后台任务处理临时本地订单详情
查询后台任务处理临时订单详情
查询后台任务列表
接口说明
url | http://test.birdsystem.com/client/Gearman-background-tasks/Get-Detail?id=xxxx | ||
接口功能 | 查询后台任务处理情况 | ||
支持格式 | text | 开发人员 |
|
请求方式 | GET | 发布日期 |
|
请求参数:
参数 | 必填 | 类型 | 说明 |
---|---|---|---|
id | 选填 | INT | 后台任务ID,为空默认查询所有后台任务 |
返回字段说明
返回字段 | 字段类型 | 说明 |
| INT | 查看后台运行任务列表ID |
| VARCHAR | 无效字段 |
| VARCHAR |
|
| INT | 站点ID |
| INT | 客户ID |
| VARCHAR | 用户类型:CLIENT |
| INT | 用户ID |
| INT | 任务计数 |
| VARCHAR | 任务名称: |
| VARCHAR | 处理结果 |
| datatime | 创建时间 |
| datatime | 更新时间 |
| datatime | 开始时间 |
| datatime | 完成时间 |
| VARCHAR | 状态 |
| VARCHAR | 主键:ID |
| VARCHAR | 用户(姓+名) |
| VARCHAR | 用户名 |
2、接口示例
接口请求示例
地址:
http://test.birdsystem.com/client/Gearman-Background-Tasks/?api_key=3726bea9879ed020fb78c184e969ee69&company_id=36
body-raw-json
{"id":23184912}
接口返回示例
{
"total": 1,
"data": [
{
"id": 23184912,
"parent_id": null,
"gearman_queue_unique_key": "c7f518fc11b087a034c3b5daa2af1e99",
"company_id": 36,
"client_id": 4790,
"user_type": "CLIENT",
"user_id": 786,
"sub_task_count": null,
"type": "BULK_ORDERS",
"note": "1 records processed, the number of error consignment: 0",
"note_internal": "YToxMjp7czo0OiJ0eXBlIjtzOjU6IkxPQ0FMIjtzOjk6Im1lcmdlVHlwZSI7TjtzOjE2OiJ0b3RhbENvbnNpZ25tZW50IjtpOjE7czo4OiJjYWNoZUtleSI7czozODoiVEVNUF9DT05TSUdOTUVOVF9DT05UUk9MTEVSX0NWXzM2XzQ3OTAiO3M6MTA6ImNvbXBhbnlfaWQiO3M6MjoiMzYiO3M6OToiY2xpZW50X2lkIjtzOjQ6IjQ3OTAiO3M6M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I2YmVhOTg3OWVkMDIwZmI3OGMxODRlOTY5ZWU2OSI7czoxMjoiACoAdGltZV96b25lIjtOO3M6MTU6IgAqAHRpbWVfem9uZV9pZCI7TjtzOjMxOiIAKgBpc19jaHJvbWVwaHBfaGFuZGxlcl9lbmFibGVkIjtzOjE6IjAiO3M6MjU6IgAqAGRpc2FsbG93ZWRQcm9wZXJ0eUxpc3QiO2E6MDp7fXM6MTI6IgAqAGV4dHJhRGF0YSI7YTo0OntzOjk6InRlbGVwaG9uZSI7TjtzOjExOiJpc19pbnRlcm5hbCI7czoxOiIxIjtzOjExOiJpc19leHRlcm5hbCI7czoxOiIwIjtzOjk6InNpdGVfbmFtZSI7czoyOiIzNiI7fXM6MjQ6IgAqAGNvbXBvc2l0ZUtleURlbGltaXRlciI7czoxOiJfIjt9IjtzOjEwOiJkb21haW5fa2V5IjtzOjIzOiJicmFuY2hfX2JpcmRzeXN0ZW1fX2NvbSI7fQ==",
"create_time": "2020-12-24 16:59:14",
"update_time": "2020-12-24 16:59:15",
"start_time": "2020-12-24 16:59:14",
"finish_time": "2020-12-24 16:59:15",
"status": "FINISH",
"primary_keys": [
"id"
],
"user_name": "star star",
"user_username": "star"
}
备注:
status状态有'QUEUE' (排队中),'RUNNING'(运行中),'FINISH' (已完成),'ERROR' (出错),'ABORTED' (已被人为中断)几种状态
只有当status为'FINISH'时, data, errorData才会有数据
data中返回的键值对分别是 临时本地订单id,销售跟踪号id
errorData中返回的键值对分别是 临时本地订单id, 错误信息