|
|
## 1、查询销售统计报表##
|
|
|
|
|
|
查询销售统计报表(/seller/getOrdersGoodsRptList)
|
|
|
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|----:|
|
|
|
|page|int|是|2|第几页|
|
|
|
|size|int|是|10|每页条数|
|
|
|
|type|int|否|1|1 日 2 周 3 月|
|
|
|
|reqTime|int|type为1或者3必填|日报示例20160521 月报示例 201605|日报或者月报日期, 周报则通过以下两个字段传入|
|
|
|
|beginTime|string|type为2必传|20160521|周报:开始日期|
|
|
|
|endTime|string|type为2必传|20160527|周报:结束日期|
|
|
|
|productSkn|long|是|1222|skn|
|
|
|
|productSkc|long|是|1222|skc|
|
|
|
|productSku|long|是|1222|sku|
|
|
|
|factoryCode|string|是|234234|厂家编号|
|
|
|
|sortId|int|是|12|产品分类 最小的分类ID 如果用户只筛选一级品类传一级品类ID 如果用户筛选到二级品类传入二级品类ID,以此类推 |
|
|
|
|shopsId|int|否|17|店铺ID |
|
|
|
|
|
|
注意,通用的头部没有列出。
|
|
|
请求示例
|
|
|
http://192.168.102.210:8088/platform/seller/getOrdersGoodsRptList
|
|
|
|
|
|
``` json
|
|
|
请求样例:
|
|
|
{
|
|
|
"beginTime": "20160516",
|
|
|
"endTime": "20160528",
|
|
|
"type":2
|
|
|
}
|
|
|
正常返回:
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"additionInfo": {
|
|
|
"allAmount": 2977818.56,//订单商品金额
|
|
|
"allAmountRate": 29.56,//环比 乘100后的数据 页面直接用此数字后面加上%
|
|
|
"allAmountRateFlag":true //是否有环比值 true 是 false 否
|
|
|
"allNumber": 14747,//订单商品总数
|
|
|
"allNumberRate": 14//环比 乘100后的数据 页面直接用此数字后面加上%
|
|
|
"allNumberRateFlag":true //是否有环比值 true 是 false 否
|
|
|
"lastAllAmount": 2977323.78,//上期金额总数
|
|
|
"lastAllNumber": 14746//上期商品总数
|
|
|
},
|
|
|
"list": [
|
|
|
{
|
|
|
"allAmounts": 2970434.16,//汇总金额
|
|
|
"allNums": 14731,//汇总商品数
|
|
|
"dateId": "20160518"//日期
|
|
|
},
|
|
|
{
|
|
|
"allAmounts": 295.04,
|
|
|
"allNums": 4,
|
|
|
"dateId": "20160525"
|
|
|
}
|
|
|
],
|
|
|
"page": 0,
|
|
|
"size": 0,
|
|
|
"total": 0,
|
|
|
"totalPage": 0
|
|
|
},
|
|
|
"md5": "6bed08aeaa2b44e6238f889d007c358d",
|
|
|
"message": "getOrdersGoodsRptForApi result"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"additionInfo": {
|
|
|
"allAmount": 2977818.56,//订单商品金额
|
|
|
"allAmountRate": 29.56,//环比 乘100后的数据 页面直接用此数字后面加上%
|
|
|
"allAmountRateFlag":true //是否有环比值 true 是 false 否
|
|
|
"allNumber": 14747,//订单商品总数
|
|
|
"allNumberRate": 14//环比 乘100后的数据 页面直接用此数字后面加上%
|
|
|
"allNumberRateFlag":true //是否有环比值 true 是 false 否
|
|
|
"lastAllAmount": 2977323.78,//上期金额总数
|
|
|
"lastAllNumber": 14746//上期商品总数
|
|
|
},
|
|
|
"list": [
|
|
|
{
|
|
|
"factoryCode": "厂家编号",
|
|
|
"colorName": "红色",
|
|
|
"sizeId": 12,
|
|
|
"smallSortId": 114,
|
|
|
"buyNumber": 12, // 数量
|
|
|
"colorId": 1,
|
|
|
"salesPrice": 22.33,
|
|
|
"maxSortId": 1,
|
|
|
"productSku": 2027406,
|
|
|
"orderAmount": 121.33, // 金额
|
|
|
"hour": 8,
|
|
|
"sizeName": "XL",
|
|
|
"smallSortName": "小分类",
|
|
|
"imageUrl": "http://img10.static.yhbimg.com/goodsimg/2017/05/03/18/011ccd8e9165f042754a34ffd937cd7659.jpg", // 图片的绝对路径
|
|
|
"dateId": 20170504,
|
|
|
"productSkn": 512588002,
|
|
|
"shopId": 792,
|
|
|
"goodsName": "商品名称",
|
|
|
"maxSortName": "大分类",
|
|
|
"productSkc": 680588,
|
|
|
"brandName": "Nike",
|
|
|
"middleSortId": 14,
|
|
|
"brandId": 748,
|
|
|
"middleSortName": "中分类",
|
|
|
"retailPrice": 22.22
|
|
|
},
|
|
|
{
|
|
|
"factoryCode": "厂家编号",
|
|
|
"colorName": "红色",
|
|
|
"sizeId": 12,
|
|
|
"smallSortId": 114,
|
|
|
"buyNumber": 12,
|
|
|
"colorId": 1,
|
|
|
"salesPrice": 22.33,
|
|
|
"maxSortId": 1,
|
|
|
"productSku": 2027406,
|
|
|
"orderAmount": 121.33,
|
|
|
"hour": 8,
|
|
|
"sizeName": "XL",
|
|
|
"smallSortName": "小分类",
|
|
|
"imageUrl": "",
|
|
|
"dateId": 20170504,
|
|
|
"productSkn": 512588002,
|
|
|
"shopId": 792,
|
|
|
"goodsName": "商品名称",
|
|
|
"maxSortName": "大分类",
|
|
|
"productSkc": 680588,
|
|
|
"brandName": "Nike",
|
|
|
"middleSortId": 14,
|
|
|
"brandId": 748,
|
|
|
"middleSortName": "中分类",
|
|
|
"retailPrice": 22.22
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 1,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"md5": "cba04123ab80e44c69c53f7dd41c1756",
|
|
|
"message": "getOrdersGoodsRptList result"
|
|
|
}
|
|
|
|
|
|
|
|
|
异常返回:
|
|
|
{
|
|
|
"code": 405,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "getOrdersGoodsRptForApi"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|