订单分包CRUD

地址: http://test.birdsystem.com/client/Consignment-Parcel-Piece


列名注释是否必填类型

id

系统ID


INT(10)

serial

包裹序列号

 必填

INT(4)

consignment_id

订单ID

 必填

BINGINT(16)

reference

产品类型

 可选

varchar(50)

delivery_reference跟踪号 可选varchar(50)
weight重量(g)必填decimal(10,2)
length长度(mm)必填decimal(10,2)
width宽度(mm)必填decimal(10,2)
depth高度(mm)必填decimal(10,2)
description描述可选varchar(50)

查询接口:

示例如下:

http://test.birdsystem.com/client/Consignment-Parcel-Piece?consignment_id=1901110360000310

返回:

{
    "total": 2,
    "data": [
        {
            "id": 13,
            "consignment_id": 1901110360000310,
            "serial": "0",
            "reference": null,
            "delivery_reference": null,
            "weight": "500.00",
            "length": "25.00",
            "width": "20.00",
            "depth": "15.00",
            "description": "table",
            "create_time": "2019-01-12 02:14:59",
            "primary_keys": [
                "id"
            ]
        },
        {
            "id": 14,
            "consignment_id": 1901110360000310,
            "serial": "1",
            "reference": null,
            "delivery_reference": null,
            "weight": "400.00",
            "length": "22.00",
            "width": "18.00",
            "depth": "13.00",
            "description": "chair",
            "create_time": "2019-01-12 02:14:59",
            "primary_keys": [
                "id"
            ]
        }
    ],
    "success": true,
    "moduleName": "client"
}