Skip to content

后台管理订单

sfyr111 edited this page Feb 26, 2018 · 1 revision

GET 管理员获取订单详情

{{host}}/manage/order/detail?orderNum=1519573542074

request

orderNum

response

{
    "status": 0,
    "msg": "订单详情",
    "data": {
        "order": {
            "id": 34,
            "userId": 12,
            "orderNum": 1519573542074,
            "shippingId": 1,
            "payment": "48.62",
            "paymentType": "在线支付",
            "postage": 0,
            "status": 20,
            "paymentTime": "2018-02-26T06:44:44.000Z",
            "sendTime": null,
            "endTime": null,
            "closeTime": null,
            "createTime": "2018-02-25T15:44:10.000Z",
            "updateTime": "2018-02-25T15:44:10.000Z",
            "orderStatus": "已支付"
        },
        "orderItemList": [
            {
                "id": 52,
                "userId": 12,
                "orderNum": 1519573542074,
                "productId": 7,
                "productName": "产品名称4",
                "productImage": "url1",
                "currentUnitPrice": "12.16",
                "quantity": 2,
                "totalPrice": "24.32",
                "createTime": "2018-02-25T15:44:10.000Z",
                "updateTime": "2018-02-25T15:44:10.000Z"
            },
            {
                "id": 53,
                "userId": 12,
                "orderNum": 1519573542074,
                "productId": 6,
                "productName": "产品名称3",
                "productImage": "url1",
                "currentUnitPrice": "12.15",
                "quantity": 2,
                "totalPrice": "24.30",
                "createTime": "2018-02-25T15:44:10.000Z",
                "updateTime": "2018-02-25T15:44:10.000Z"
            }
        ],
        "shipping": {
            "id": 1,
            "userId": 12,
            "receiverName": "xiaoyang",
            "receiverPhone": "025-123",
            "receiverMobile": "12347777",
            "receiverProvince": "江苏",
            "receiverCity": "南京",
            "receiverDistrict": "江宁区",
            "receiverAddress": "一个小镇",
            "receiverZip": "210000",
            "createTime": "2018-02-19T19:01:49.000Z",
            "updateTime": "2018-02-26T09:50:11.000Z"
        },
        "host": "localhost:7071"
    }
}

GET 管理员获取订单列表

{{host}}/manage/order/list?pageNum=1&pageSize=10

request

pageNum
pageSize

response

{
    "status": 0,
    "msg": null,
    "data": {
        "list": [
            {
                "id": 41,
                "userId": 12,
                "orderNum": 1519639098998,
                "shippingId": 1,
                "payment": "36.48",
                "paymentType": "在线支付",
                "postage": 0,
                "status": 0,
                "paymentTime": null,
                "sendTime": null,
                "endTime": null,
                "closeTime": "2018-02-26T10:00:49.000Z",
                "createTime": "2018-02-26T09:32:12.000Z",
                "updateTime": "2018-02-26T09:32:12.000Z",
                "orderItemList": [
                    {
                        "id": 61,
                        "userId": 12,
                        "orderNum": 1519639098998,
                        "productId": 7,
                        "productName": "产品名称4",
                        "productImage": "url1",
                        "currentUnitPrice": "12.16",
                        "quantity": 3,
                        "totalPrice": "36.48",
                        "createTime": "2018-02-26T09:32:12.000Z",
                        "updateTime": "2018-02-26T09:32:12.000Z"
                    }
                ],
                "shipping": {
                    "id": 1,
                    "userId": 12,
                    "receiverName": "xiaoyang",
                    "receiverPhone": "025-123",
                    "receiverMobile": "12347777",
                    "receiverProvince": "江苏",
                    "receiverCity": "南京",
                    "receiverDistrict": "江宁区",
                    "receiverAddress": "一个小镇",
                    "receiverZip": "210000",
                    "createTime": "2018-02-19T19:01:49.000Z",
                    "updateTime": "2018-02-26T09:50:11.000Z"
                },
                "orderStatus": "已取消"
            }
        ],
        "pageNum": "1",
        "pageSize": "1",
        "total": 8,
        "host": "oss-cn-hangzhou.aliyuncs.com"
    }
}

GET 后台管理员搜索订单号

{{host}}/manage/order/search?pageNum=1&pageSize=10&orderNum=1519615927414

request

orderNum
pageNum
pageSize

response

{
    "status": 0,
    "msg": null,
    "data": {
        "list": [
            {
                "id": 37,
                "userId": 13,
                "orderNum": 1519615927414,
                "shippingId": 6,
                "payment": "12.15",
                "paymentType": "在线支付",
                "postage": 0,
                "status": 10,
                "paymentTime": null,
                "sendTime": null,
                "endTime": null,
                "closeTime": null,
                "createTime": "2018-02-26T03:31:36.000Z",
                "updateTime": "2018-02-26T03:31:36.000Z",
                "orderItemList": [
                    {
                        "id": 57,
                        "userId": 13,
                        "orderNum": 1519615927414,
                        "productId": 6,
                        "productName": "产品名称3",
                        "productImage": "url1",
                        "currentUnitPrice": "12.15",
                        "quantity": 1,
                        "totalPrice": "12.15",
                        "createTime": "2018-02-26T03:31:36.000Z",
                        "updateTime": "2018-02-26T03:31:36.000Z"
                    }
                ],
                "shipping": {
                    "id": 6,
                    "userId": 13,
                    "receiverName": "xiaoyang1",
                    "receiverPhone": "025-123",
                    "receiverMobile": "125",
                    "receiverProvince": "江苏",
                    "receiverCity": "南京",
                    "receiverDistrict": "江宁区",
                    "receiverAddress": "一个小镇",
                    "receiverZip": "210000",
                    "createTime": "2018-02-26T03:24:36.000Z",
                    "updateTime": "2018-02-26T03:24:36.000Z"
                },
                "orderStatus": "未支付"
            }
        ],
        "pageNum": "1",
        "pageSize": "10",
        "total": 1,
        "host": "oss-cn-hangzhou.aliyuncs.com"
    }
}

PUT 后台管理员操作订单发货

{{host}}/manage/order/sendGood

request

orderNum

response

{
    "status": 0,
    "msg": "发货成功",
    "data": {
        "order": {
            "id": 39,
            "userId": 12,
            "orderNum": 1519628012048,
            "shippingId": 1,
            "payment": "36.45",
            "paymentType": "在线支付",
            "postage": 0,
            "status": 40,
            "paymentTime": "2018-02-26T06:55:42.000Z",
            "sendTime": "2018-02-26T10:15:14.186Z",
            "endTime": null,
            "closeTime": null,
            "createTime": "2018-02-26T06:48:26.000Z",
            "updateTime": "2018-02-26T06:48:26.000Z",
            "orderStatus": "已发货"
        },
        "orderItemList": [
            {
                "id": 59,
                "userId": 12,
                "orderNum": 1519628012048,
                "productId": 6,
                "productName": "产品名称3",
                "productImage": "url1",
                "currentUnitPrice": "12.15",
                "quantity": 3,
                "totalPrice": "36.45",
                "createTime": "2018-02-26T06:48:26.000Z",
                "updateTime": "2018-02-26T06:48:26.000Z"
            }
        ],
        "shipping": {
            "id": 1,
            "userId": 12,
            "receiverName": "xiaoyang",
            "receiverPhone": "025-123",
            "receiverMobile": "12347777",
            "receiverProvince": "江苏",
            "receiverCity": "南京",
            "receiverDistrict": "江宁区",
            "receiverAddress": "一个小镇",
            "receiverZip": "210000",
            "createTime": "2018-02-19T19:01:49.000Z",
            "updateTime": "2018-02-26T09:50:11.000Z"
        },
        "host": "localhost:7071"
    }
}