Authored by lijian

退货接口定义

#大数据报表
---------------------
## 销售统计
> 接口名:`/shop/getOrdersGoodsRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报20150306 月报201503 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,//订单商品金额
"allAmountRate": 29.56,//环比 乘100后的数据
"allNumber": 14747,//订单商品总数
"allNumberRate": 14//环比 100后的数据
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,//颜色_id
"colorName": "黑色",
"dateId": 20160518,//下单日期
"factoryCode": "VN0004PA1861",//厂家编号
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",//商品图片
"maxSortId": 6,//产品大类_id
"maxSortName": "鞋靴",//
"middleSortId": 44,//产品中类_id
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,// 吊牌价
"salesPrice": 665,//销售价
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 销售统计(给app调用)
> 接口名:`/shop/getOrdersGoodsRptForApi`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报 月报 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
---------------------
### 返回
``` json
请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,//订单商品金额
"allAmountRate": 29.56,//环比 乘100后的数据
"allNumber": 14747,//订单商品总数
"allNumberRate": 14//环比 100后的数据
"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"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptForApi"
}
```
## 退货统计
> 接口名:`/shop/getReturnGoodsRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报 月报 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 发货入库统计
> 接口名:`/shop/getStorageInRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 清退出库统计
> 接口名:`/shop/getStorageOutRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
#大数据报表
---------------------
## 销售统计
> 接口名:`/shop/getOrdersGoodsRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报20150306 月报201503 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,//订单商品金额
"allAmountRate": 29.56,//环比 乘100后的数据
"allNumber": 14747,//订单商品总数
"allNumberRate": 14//环比 100后的数据
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,//颜色_id
"colorName": "黑色",
"dateId": 20160518,//下单日期
"factoryCode": "VN0004PA1861",//厂家编号
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",//商品图片
"maxSortId": 6,//产品大类_id
"maxSortName": "鞋靴",//
"middleSortId": 44,//产品中类_id
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,// 吊牌价
"salesPrice": 665,//销售价
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 销售统计(给app调用)
> 接口名:`/shop/getOrdersGoodsRptForApi`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报 月报 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
---------------------
### 返回
``` json
请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,//订单商品金额
"allAmountRate": 29.56,//环比 乘100后的数据
"allNumber": 14747,//订单商品总数
"allNumberRate": 14//环比 100后的数据
"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"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptForApi"
}
```
## 退货统计
> 接口名:`/shop/getReturnGoodsRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报 月报 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 退货统计(给app调用)
> 接口名:`/shop/getReturnGoodsRptForApi`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|type|int|1|1 日 2 周 3 月|
|reqTime|string|20150306|日报 月报 日期|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
---------------------
### 返回
``` json
请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,//退货商品金额
"allAmountRate": 29.56,//环比 乘100后的数据
"allNumber": 14747,//退货商品总数
"allNumberRate": 14//环比 100后的数据
"lastAllAmount": 2977323.78,//上期金额总数
"lastAllNumber": 14746//上期商品总数
"returnAmountRate":12.12//退货率
"returnRingRate":1.1//退货率环比
},
"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"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptForApi"
}
```
## 发货入库统计
> 接口名:`/shop/getStorageInRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
## 清退出库统计
> 接口名:`/shop/getStorageOutRptList`
-------------------------
|属性名称|类型|例子|说明|
|--------|----|----|----|
|page|int|2|第几页|
|size|int|10|每页条数|
|beginTime|string|20150306|周报:开始日期|
|endTime|string|20150308|周报:结束日期|
|productSkn|int|1222|skn|
|productSkc|int|1222|skc|
|productSku|int|1222|sku|
|factoryCode|string|234234|出厂编号|
|sortId|int|12|产品分类 |
---------------------
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
},
"list": [
{
"brandId": 144,
"brandName": "VANS",
"buyNumber": 1,
"colorId": 2,
"colorName": "黑色",
"dateId": 20160518,
"factoryCode": "VN0004PA1861",
"goodsName": "VANS Sk8-Hi Lite 超轻来袭 ",
"imageUrl": "",
"maxSortId": 6,
"maxSortName": "鞋靴",
"middleSortId": 44,
"middleSortName": "休闲/运动鞋",
"orderAmount": 665,
"orderCode": 1605008704,
"productSkc": 371718,
"productSkn": 51227423,
"productSku": 1159909,
"retailPrice": 665,
"salesPrice": 665,
"shopName": "",
"sizeId": 125,
"sizeName": "42码",
"smallSortId": 147,
"smallSortName": "休闲/运动鞋"
}
],
"page": 1,
"size": 10,
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
}
```
\ No newline at end of file
... ...