• 暂时停更一段时间!
  • 近期网站将陆续进行前端页面改造!
  • 招募网站编辑,联系站长!

从零到企业级SSM电商项目验收测试(六)订单模块测试

文章目录[隐藏]

1.创建订单

/order/create.do

request
shippingId

response

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

request

response

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

request

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

response

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

request
orderNo

response

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

request

orderNo

response

success

{
  "status": 0
}


fail

{
  "status": 1,
  "msg": "该用户没有此订单"
}

或
{
  "status": 1,
  "msg": "此订单已付款,无法被取消"
}
下面是后台接口功能测试

1.订单 List

/manage/order/list.do

request

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

response

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

request

orderNo

response

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

request

orderNo
response

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

request
orderNo

response

success

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

fail

{
  "status": 1,
  "msg": "发货失败"
}

丨极客文库, 版权所有丨如未注明 , 均为原创丨
本网站采用知识共享署名-非商业性使用-相同方式共享 3.0 中国大陆许可协议进行授权
转载请注明原文链接:从零到企业级 SSM 电商项目验收测试(六)订单模块测试
喜欢 (0)
[247507792@qq.com]
分享 (0)

邀请您免费 注册账号 登录 即可参与讨论!