创建订单

1.创建订单

/order/create.do

引用已存在的收货地址id http://localhost:8080/order/create.do?shippingId=5

request

shippingId

response

success

{
    "status": 0,
    "data": { //这个对应的就应该是Order表了
        "orderNo": 1485158223095,
        "payment": 2999.11,
        "paymentType": 1,
        "postage": 0,
        "status": 10,
        "paymentTime": null,
        "sendTime": null,
        "endTime": null,
        "closeTime": null,
        "createTime": 1485158223095,
        "orderItemVoList": [
            {//这个对应的是OrderItem表
                "orderNo": 1485158223095,
                "productId": 2,
                "productName": "oppo R8",
                "productImage": "mainimage.jpg",
                "currentUnitPrice": 2999.11,
                "quantity": 1,
                "totalPrice": 2999.11,
                "createTime": null
            }
        ],
        "shippingId": 5,
        "shippingVo": null
    }
}

 

fail

{
    "status": 1,
    "msg": "创建订单失败"
}

 

posted @ 2017-09-10 20:12  随意随性  阅读(626)  评论(0编辑  收藏  举报