最新公告
  • 新注册用户请前往个人中心绑定邮箱以便接收相关凭证邮件!!!点击前往个人中心
  • 从零到企业级SSM电商项目验收测试(六)订单模块测试

    1.创建订单

    /order/create.do

    [v_act]request[/v_act]

    shippingId
    

    [v_act]response[/v_act]
    success

    {
        "status": 0,
        "data": {
            "orderNo": 1485158223095,
            "payment": 2999.11,
            "paymentType": 1,
            "postage": 0,
            "status": 10,
            "paymentTime": null,
            "sendTime": null,
            "endTime": null,
            "closeTime": null,
            "createTime": 1485158223095,
            "orderItemVoList": [
                {
                    "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": "创建订单失败"
    }
    

    2.获取订单的商品信息

    /order/get_order_cart_product.do

    [v_act]request[/v_act]

    [v_act]response[/v_act]
    success

    {
        "status": 0,
        "data": {
            "orderItemVoList": [
                {
                    "orderNo": null,
                    "productId": 1,
                    "productName": "iphone7",
                    "productImage": "mmall/aa.jpg",
                    "currentUnitPrice": 7999,
                    "quantity": 10,
                    "totalPrice": 79990,
                    "createTime": ""
                }
            ],
            "imageHost": "http://img.happymmall.com/",
            "productTotalPrice": 79990
        }
    }
    


    fail

    {
        "status": 1,
        "msg": "用户未登录"
    }
    

    3.订单List

    /order/list.do
    [v_act]request[/v_act]

    pageSize(default=10)
    pageNum(default=1)
    

    [v_act]response[/v_act]
    success

    {
        "status": 0,
        "data": {
            "pageNum": 1,
            "pageSize": 10,
            "size": 1,
            "orderBy": null,
            "startRow": 1,
            "endRow": 1,
            "total": 1,
            "pages": 1,
            "list": [
                {
                    "orderNo": 1531131685129,
                    "payment": 82970,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2018-07-09 18:21:25",
                    "orderItemVoList": [
                        {
                            "orderNo": 1531131685129,
                            "productId": 26,
                            "productName": "三星洗衣机",
                            "productImage": "test.jpg",
                            "currentUnitPrice": 1000,
                            "quantity": 10,
                            "totalPrice": 10000,
                            "createTime": "2018-07-09 18:21:25"
                        },
                        {
                            "orderNo": 1531131685129,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 10,
                            "totalPrice": 32990,
                            "createTime": "2018-07-09 18:21:25"
                        },
                        {
                            "orderNo": 1531131685129,
                            "productId": 28,
                            "productName": "4+64G送手环/Huawei/华为 nova 手机P9/P10plus青春",
                            "productImage": "0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg",
                            "currentUnitPrice": 1999,
                            "quantity": 20,
                            "totalPrice": 39980,
                            "createTime": "2018-07-09 18:21:25"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                }
            ],
            "firstPage": 1,
            "prePage": 0,
            "nextPage": 0,
            "lastPage": 1,
            "isFirstPage": true,
            "isLastPage": true,
            "hasPreviousPage": false,
            "hasNextPage": false,
            "navigatePages": 8,
            "navigatepageNums": [
                1
            ]
        }
    }
    


    fail

    {
      "status": 10,
      "msg": "用户未登录,请登录"
    }
    
    
    或
    
    {
      "status": 1,
      "msg": "没有权限"
    }
    

    4.订单详情detail

    /order/detail.do

    [v_act]request[/v_act]

    orderNo
    

    [v_act]response[/v_act]
    success

    {
        "status": 0,
        "data": {
            "orderNo": 1531131685129,
            "payment": 82970,
            "paymentType": 1,
            "paymentTypeDesc": "在线支付",
            "postage": 0,
            "status": 10,
            "statusDesc": "未支付",
            "paymentTime": "",
            "sendTime": "",
            "endTime": "",
            "closeTime": "",
            "createTime": "2018-07-09 18:21:25",
            "orderItemVoList": [
                {
                    "orderNo": 1531131685129,
                    "productId": 26,
                    "productName": "三星洗衣机",
                    "productImage": "test.jpg",
                    "currentUnitPrice": 1000,
                    "quantity": 10,
                    "totalPrice": 10000,
                    "createTime": "2018-07-09 18:21:25"
                },
                {
                    "orderNo": 1531131685129,
                    "productId": 27,
                    "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                    "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                    "currentUnitPrice": 3299,
                    "quantity": 10,
                    "totalPrice": 32990,
                    "createTime": "2018-07-09 18:21:25"
                },
                {
                    "orderNo": 1531131685129,
                    "productId": 28,
                    "productName": "4+64G送手环/Huawei/华为 nova 手机P9/P10plus青春",
                    "productImage": "0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg",
                    "currentUnitPrice": 1999,
                    "quantity": 20,
                    "totalPrice": 39980,
                    "createTime": "2018-07-09 18:21:25"
                }
            ],
            "imageHost": "http://img.verynavi.com/",
            "shippingId": 29,
            "receiverName": "吉利",
            "shippingVo": {
                "receiverName": "吉利",
                "receiverPhone": null,
                "receiverMobile": "13800138000",
                "receiverProvince": "北京",
                "receiverCity": "北京",
                "receiverDistrict": "海淀区",
                "receiverAddress": "海淀区中关村",
                "receiverZip": "100000"
            }
        }
    }
    


    fail

    {
      "status": 1,
      "msg": "没有找到订单"
    }
    

    5.取消订单

    /order/cancel.do
    [v_act]request[/v_act]

    orderNo
    

    [v_act]response[/v_act]
    success

    {
      "status": 0
    }
    


    fail

    {
      "status": 1,
      "msg": "该用户没有此订单"
    }
    
    或
    {
      "status": 1,
      "msg": "此订单已付款,无法被取消"
    }
    

    [v_notice]下面是后台接口功能测试[/v_notice]

    1.订单List

    /manage/order/list.do
    [v_act]request[/v_act]

    pageSize(default=10)
    pageNum(default=1)
    

    [v_act]response[/v_act]
    success

    {
        "status": 0,
        "data": {
            "pageNum": 1,
            "pageSize": 10,
            "size": 10,
            "orderBy": null,
            "startRow": 1,
            "endRow": 10,
            "total": 16,
            "pages": 2,
            "list": [
                {
                    "orderNo": 1531131685129,
                    "payment": 82970,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 0,
                    "statusDesc": "已取消",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2018-07-09 18:21:25",
                    "orderItemVoList": [
                        {
                            "orderNo": 1531131685129,
                            "productId": 26,
                            "productName": "三星洗衣机",
                            "productImage": "test.jpg",
                            "currentUnitPrice": 1000,
                            "quantity": 10,
                            "totalPrice": 10000,
                            "createTime": "2018-07-09 18:21:25"
                        },
                        {
                            "orderNo": 1531131685129,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 10,
                            "totalPrice": 32990,
                            "createTime": "2018-07-09 18:21:25"
                        },
                        {
                            "orderNo": 1531131685129,
                            "productId": 28,
                            "productName": "4+64G送手环/Huawei/华为 nova 手机P9/P10plus青春",
                            "productImage": "0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg",
                            "currentUnitPrice": 1999,
                            "quantity": 20,
                            "totalPrice": 39980,
                            "createTime": "2018-07-09 18:21:25"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091141269,
                    "payment": 22894,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 20,
                    "statusDesc": "已付款",
                    "paymentTime": "2017-04-13 21:46:06",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:45:41",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091141269,
                            "productId": 26,
                            "productName": "Apple iPhone 7 Plus (A1661) 128G 玫瑰金色 移动联通电信4G手机",
                            "productImage": "241997c4-9e62-4824-b7f0-7425c3c28917.jpeg",
                            "currentUnitPrice": 6999,
                            "quantity": 1,
                            "totalPrice": 6999,
                            "createTime": "2017-04-13 21:45:41"
                        },
                        {
                            "orderNo": 1492091141269,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 1,
                            "totalPrice": 3299,
                            "createTime": "2017-04-13 21:45:41"
                        },
                        {
                            "orderNo": 1492091141269,
                            "productId": 29,
                            "productName": "Haier/海尔HJ100-1HU1 10公斤滚筒洗衣机全自动带烘干家用大容量 洗烘一体",
                            "productImage": "173335a4-5dce-4afd-9f18-a10623724c4e.jpeg",
                            "currentUnitPrice": 4299,
                            "quantity": 2,
                            "totalPrice": 8598,
                            "createTime": "2017-04-13 21:45:41"
                        },
                        {
                            "orderNo": 1492091141269,
                            "productId": 28,
                            "productName": "4+64G送手环/Huawei/华为 nova 手机P9/P10plus青春",
                            "productImage": "0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg",
                            "currentUnitPrice": 1999,
                            "quantity": 2,
                            "totalPrice": 3998,
                            "createTime": "2017-04-13 21:45:41"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091110004,
                    "payment": 8598,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 40,
                    "statusDesc": "已发货",
                    "paymentTime": "2017-04-13 21:55:16",
                    "sendTime": "2017-04-13 21:55:31",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:45:09",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091110004,
                            "productId": 29,
                            "productName": "Haier/海尔HJ100-1HU1 10公斤滚筒洗衣机全自动带烘干家用大容量 洗烘一体",
                            "productImage": "173335a4-5dce-4afd-9f18-a10623724c4e.jpeg",
                            "currentUnitPrice": 4299,
                            "quantity": 2,
                            "totalPrice": 8598,
                            "createTime": "2017-04-13 21:45:09"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091102371,
                    "payment": 3299,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:45:02",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091102371,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 1,
                            "totalPrice": 3299,
                            "createTime": "2017-04-13 21:45:02"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091096400,
                    "payment": 6598,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:44:56",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091096400,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 2,
                            "totalPrice": 6598,
                            "createTime": "2017-04-13 21:44:56"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091089794,
                    "payment": 6999,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:44:49",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091089794,
                            "productId": 26,
                            "productName": "Apple iPhone 7 Plus (A1661) 128G 玫瑰金色 移动联通电信4G手机",
                            "productImage": "241997c4-9e62-4824-b7f0-7425c3c28917.jpeg",
                            "currentUnitPrice": 6999,
                            "quantity": 1,
                            "totalPrice": 6999,
                            "createTime": "2017-04-13 21:44:49"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091083720,
                    "payment": 3299,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:44:43",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091083720,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 1,
                            "totalPrice": 3299,
                            "createTime": "2017-04-13 21:44:43"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091076073,
                    "payment": 4299,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:44:36",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091076073,
                            "productId": 29,
                            "productName": "Haier/海尔HJ100-1HU1 10公斤滚筒洗衣机全自动带烘干家用大容量 洗烘一体",
                            "productImage": "173335a4-5dce-4afd-9f18-a10623724c4e.jpeg",
                            "currentUnitPrice": 4299,
                            "quantity": 1,
                            "totalPrice": 4299,
                            "createTime": "2017-04-13 21:44:36"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091069563,
                    "payment": 3299,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:44:29",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091069563,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 1,
                            "totalPrice": 3299,
                            "createTime": "2017-04-13 21:44:29"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                },
                {
                    "orderNo": 1492091061513,
                    "payment": 6598,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 10,
                    "statusDesc": "未支付",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2017-04-13 21:44:21",
                    "orderItemVoList": [
                        {
                            "orderNo": 1492091061513,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 2,
                            "totalPrice": 6598,
                            "createTime": "2017-04-13 21:44:21"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                }
            ],
            "firstPage": 1,
            "prePage": 0,
            "nextPage": 2,
            "lastPage": 2,
            "isFirstPage": true,
            "isLastPage": false,
            "hasPreviousPage": false,
            "hasNextPage": true,
            "navigatePages": 8,
            "navigatepageNums": [
                1,
                2
            ]
        }
    }
    

    fail

    {
      "status": 10,
      "msg": "用户未登录,请登录"
    }
    
    
    或
    
    {
      "status": 1,
      "msg": "没有权限"
    }
    
    

    2.按订单号查询

    /manage/order/search.do
    [v_act]request[/v_act]

    orderNo
    

    [v_act]response[/v_act]
    success

    {
        "status": 0,
        "data": {
            "pageNum": 1,
            "pageSize": 1,
            "size": 1,
            "orderBy": null,
            "startRow": 0,
            "endRow": 0,
            "total": 1,
            "pages": 1,
            "list": [
                {
                    "orderNo": 1531131685129,
                    "payment": 82970,
                    "paymentType": 1,
                    "paymentTypeDesc": "在线支付",
                    "postage": 0,
                    "status": 0,
                    "statusDesc": "已取消",
                    "paymentTime": "",
                    "sendTime": "",
                    "endTime": "",
                    "closeTime": "",
                    "createTime": "2018-07-09 18:21:25",
                    "orderItemVoList": [
                        {
                            "orderNo": 1531131685129,
                            "productId": 26,
                            "productName": "三星洗衣机",
                            "productImage": "test.jpg",
                            "currentUnitPrice": 1000,
                            "quantity": 10,
                            "totalPrice": 10000,
                            "createTime": "2018-07-09 18:21:25"
                        },
                        {
                            "orderNo": 1531131685129,
                            "productId": 27,
                            "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                            "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                            "currentUnitPrice": 3299,
                            "quantity": 10,
                            "totalPrice": 32990,
                            "createTime": "2018-07-09 18:21:25"
                        },
                        {
                            "orderNo": 1531131685129,
                            "productId": 28,
                            "productName": "4+64G送手环/Huawei/华为 nova 手机P9/P10plus青春",
                            "productImage": "0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg",
                            "currentUnitPrice": 1999,
                            "quantity": 20,
                            "totalPrice": 39980,
                            "createTime": "2018-07-09 18:21:25"
                        }
                    ],
                    "imageHost": "http://img.verynavi.com/",
                    "shippingId": 29,
                    "receiverName": "吉利",
                    "shippingVo": {
                        "receiverName": "吉利",
                        "receiverPhone": null,
                        "receiverMobile": "13800138000",
                        "receiverProvince": "北京",
                        "receiverCity": "北京",
                        "receiverDistrict": "海淀区",
                        "receiverAddress": "海淀区中关村",
                        "receiverZip": "100000"
                    }
                }
            ],
            "firstPage": 1,
            "prePage": 0,
            "nextPage": 0,
            "lastPage": 1,
            "isFirstPage": true,
            "isLastPage": true,
            "hasPreviousPage": false,
            "hasNextPage": false,
            "navigatePages": 8,
            "navigatepageNums": [
                1
            ]
        }
    }
    


    fail

    {
      "status": 1,
      "msg": "没有找到订单"
    }
    

    3.订单详情

    /manage/order/detail.do
    [v_act]request[/v_act]

    orderNo
    

    [v_act]response[/v_act]

    success

    {
        "status": 0,
        "data": {
            "orderNo": 1531131685129,
            "payment": 82970,
            "paymentType": 1,
            "paymentTypeDesc": "在线支付",
            "postage": 0,
            "status": 0,
            "statusDesc": "已取消",
            "paymentTime": "",
            "sendTime": "",
            "endTime": "",
            "closeTime": "",
            "createTime": "2018-07-09 18:21:25",
            "orderItemVoList": [
                {
                    "orderNo": 1531131685129,
                    "productId": 26,
                    "productName": "三星洗衣机",
                    "productImage": "test.jpg",
                    "currentUnitPrice": 1000,
                    "quantity": 10,
                    "totalPrice": 10000,
                    "createTime": "2018-07-09 18:21:25"
                },
                {
                    "orderNo": 1531131685129,
                    "productId": 27,
                    "productName": "Midea/美的 BCD-535WKZM(E)冰箱双开门对开门风冷无霜智能电家用",
                    "productImage": "ac3e571d-13ce-4fad-89e8-c92c2eccf536.jpeg",
                    "currentUnitPrice": 3299,
                    "quantity": 10,
                    "totalPrice": 32990,
                    "createTime": "2018-07-09 18:21:25"
                },
                {
                    "orderNo": 1531131685129,
                    "productId": 28,
                    "productName": "4+64G送手环/Huawei/华为 nova 手机P9/P10plus青春",
                    "productImage": "0093f5d3-bdb4-4fb0-bec5-5465dfd26363.jpeg",
                    "currentUnitPrice": 1999,
                    "quantity": 20,
                    "totalPrice": 39980,
                    "createTime": "2018-07-09 18:21:25"
                }
            ],
            "imageHost": "http://img.verynavi.com/",
            "shippingId": 29,
            "receiverName": "吉利",
            "shippingVo": {
                "receiverName": "吉利",
                "receiverPhone": null,
                "receiverMobile": "13800138000",
                "receiverProvince": "北京",
                "receiverCity": "北京",
                "receiverDistrict": "海淀区",
                "receiverAddress": "海淀区中关村",
                "receiverZip": "100000"
            }
        }
    }
    


    fail

    {
      "status": 1,
      "msg": "没有找到订单"
    }
    

    4.订单发货

    /manage/order/send_goods.do

    [v_act]request[/v_act]

    orderNo
    

    [v_act]response[/v_act]
    success

    {
      "status": 0,
      "data": "发货成功"
    }
    

    fail

    {
      "status": 1,
      "msg": "发货失败"
    }
    
    本站所有文章均由网友分享,仅用于参考学习用,请勿直接转载,如有侵权,请联系网站客服删除相关文章。若由于商用引起版权纠纷,一切责任均由使用者承担
    极客文库 » 从零到企业级SSM电商项目验收测试(六)订单模块测试

    常见问题FAQ

    如果资源链接失效了怎么办?
    本站用户分享的所有资源都有自动备份机制,如果资源链接失效,请联系本站客服QQ:2580505920更新资源地址。
    如果用户分享的资源与描述不符怎么办?
    可以联系客服QQ:2580505920,如果要求合理可以安排退款或者退赞助积分。
    如何分享个人资源获取赞助积分或其他奖励?
    本站用户可以分享自己的资源,但是必须保证资源没有侵权行为。点击个人中心,根据操作填写并上传即可。资源所获收益完全归属上传者,每周可申请提现一次。
    如果您发现了本资源有侵权行为怎么办?
    及时联系客服QQ:2580505920,核实予以删除。

    参与讨论

    • 192会员总数(位)
    • 3737资源总数(个)
    • 0本周发布(个)
    • 0 今日发布(个)
    • 614稳定运行(天)

    欢迎加入「极客文库」,成为原创作者从这里开始!

    立即加入 了解更多
    成为赞助用户享有更多特权立即升级