Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

批量转换临时订单 为 本地订单, 转换成功后, 本地订单的状态为 "待处理"

...

url

URL http://test.birdsystem.

...

com/client/Temp-Consignment-Info/Convert-Into-Consignment/?ids=12010436_12010437&type=LOCAL&start=0

...

Include Page

...

get

...

body

...

-

...

返回

[错误]
当没有指定邮递详情时会报错, errorIdList中存放了错误的id和信息.

Code Block
languagejs
{
    "numberOfTotalConsignmentsToProcess": 1,
    "numberOfConsignmentsProcessed": 1,
    "finished": true,
    "data": null,
    "errorIdList": [
        {
            "id": 12010439,
            "message": "找不到邮递服务,请检查相关选项"
        }
    ],
    "success": true,
    "refresh": false
}

...

Code Block
languagejs
{
    "numberOfTotalConsignmentsToProcess": 1,
    "numberOfConsignmentsProcessed": 1,
    "finished": true,
    "data": {
        "12010439": "1507310110000001"
    },
    "errorIdList": [],
    "success": true,
    "refresh": false
}

...

返回解释

...

numberOfTotalConsignmentsToProcess 一共有几条记录需要处理
numberOfConsignmentsProcessed 本次请求处理了几条
finished 是否处理完所有记录
data 批量订单id和订单id的键值对
现在系统中一次请求处理数量为25, 为常量, 不能根据参数修改, 不排除以后修改这个数字的可能, 所以请不要以为每次请求25个就会处理完, 请按照以下方法处理一次处理不完的批量订单.
当finished为false, 将start+=numberOfConsignmentsProcessed, 作为参数, 再次发送请求, 直至finished为true就处理完了.

...

参数

ids 批量订单的id, [非必填]
type 转换的类型, 值有3个LOCAL, RETURN, DIRECT [必填]
start 从第几个开始处理 [必填, 不填的话系统默认为0]

...

获取批量订单处理结果
获取批量订单处理结果