1.system/accessPermission/get 大促期间检测功能是否关闭
post
{
access_name: 'orderStat'
}
返回:
{code: "0", data: {permission: 1}} //1 打开 0关闭
2.shipment/unShip/waitShip/skuList/get 获取订单统计商品列表
{
platform_name: //平台名称
start_time: //成团开始时间
end_time: //成团结束时间
is_note: //是否有备注
}
或者
{
shipmentStatus = 'WAIT_SHIP'
}
返回:
{
"code": "0",
"data": {
"goods_list": [
{
"platform_names": ["taobao"],//平台 taobao 淘宝 pingduoduo 平多多 manu手工订单
"shop_ids": [300039], //店铺
"goods_id": 400285, //商品ID
"goods_name": "\u6d4b\u8bd5\u6570\u636e", //商品名称
"platform_goods_id": 590302818396, //平台商品ID
"goods_outer_id": "11", //商品编码
"image_url": "https:\/\/img.alicdn.com\/bao\/uploaded\/i2\/2200727651482\/O1CN01lmtf4H1MonTmajnME_!!2200727651482.jpg", //图片地址
"sku_list": [{
"sku_id": 402550,
"sku_outer_id": "400285_402550", //sku商品编码
"style_value": "",//规格名称
"goods_num": "1" //数量
}],
"goods_quantity": "1", //总计
"class": "two"
}],
"total_num": 20,//未发货单量
"total_goods_num": 11 //商品总数
}
}
本页面的特殊处理,因为有合并行的需求,所以需要进行计算;
原本的goodsList
[{
"platform_names": ["pinduoduo"],
"shop_ids": [100066, 200051],
"goods_id": 117090,
"goods_name": "KT与女孩",
"platform_goods_id": 118715990,
"goods_outer_id": "KT与女孩",
"image_url": "http://t00img.yangkeduo.com/goods/images/2018-09-18/85d6fd43369c328f2189455891289196.jpeg",
"sku_list": [{
"sku_id": 328943, //skuId
"sku_outer_id": "kt011", //规格商品编码
"style_value": "3只装(随机发香味)", //规格名称
"goods_num": "8" //商品数量
}, {
"sku_id": 328946,
"sku_outer_id": "kt006",
"style_value": "20只装(共1200g 每种各2只)",
"goods_num": "1"
}, ],
"goods_quantity": 9, //商品总数
"class": "one"
}]
处理后的goodsList
[{
"platform_names": ["pinduoduo"],
"shop_ids": [100066, 200051],
"platform_goods_id": 118715990,
"goods_id": 117090,
"goods_outer_id": "KT与女孩",
"goods_name": "KT与女孩",
"image_url": "http://t00img.yangkeduo.com/goods/images/2018-09-18/85d6fd43369c328f2189455891289196.jpeg",
"goods_quantity": 35,
"style_value": "3只装(随机发香味)", //规格名称
"goods_num": "8" //商品数量
}, {
"platform_names": ["pinduoduo"],
"shop_ids": [100066, 200051],
"platform_goods_id": 118715990,
"goods_id": 117090,
"goods_outer_id": "KT与女孩",
"goods_name": "KT与女孩",
"image_url": "http://t00img.yangkeduo.com/goods/images/2018-09-18/85d6fd43369c328f2189455891289196.jpeg",
"goods_quantity": 35,
"style_value": "20只装(共1200g 每种各2只)",
"goods_num": "1"
}]
Comp
含义:标题需要合并0行,第二个商品需要合并9行,第三个商品需要合并33行
[0,9,33,38,50,68,75,76,78,81,91,93,94,101,112,113,115,138,139,141,163,171,175,185,186,187,191,196,197,198,200,201,202,203,211,213,219,228,230,232,233,235,237,239,240,245]
网友评论