Authored by tanling

Update ShopReportController.md

... ... @@ -31,35 +31,31 @@
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.sales
## 请求样例数据
```json
``` json
请求样例:
{
"page": 1,
"size": 2
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977123.6,
"allAmountRate": 0,
"allNumber": 14749,
"allNumberRate": 0,
"lastAllAmount": 2977323.78,
"lastAllNumber": 14746
"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": 2970434.16,//汇总金额
"allNums": 14731,//汇总商品数
"dateId": "20160518"//日期
},
{
"allAmounts": 295.04,
... ... @@ -67,23 +63,22 @@ code为200即为成功,否则是失败。
"dateId": "20160525"
}
],
"page": 1,
"size": 1,
"total": 1,
"totalPage": 1
"page": 0,
"size": 0,
"total": 0,
"totalPage": 0
},
"md5": "6bed08aeaa2b44e6238f889d007c358d",
"message": "getOrdersGoodsRptForApi result"
}
```
```json
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
"message": "getOrdersGoodsRptForApi"
}
```
... ... @@ -120,73 +115,56 @@ code为200即为成功,否则是失败。
http://192.168.102.217:8080/gateway?method=app.shops.refund
## 请求样例数据
```json
``` json
请求样例:
{
"page": 1,
"size": 2
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"additionInfo": {
"allAmount": 2977818.56,
"allAmountRate": 2977817.56,
"allNumber": 14747,
"allNumberRate": 14746
"allAmount": 2977818.56,//退货商品金额
"allAmountRate": 29.56,//环比 乘100后的数据
"allNumber": 14747,//退货商品总数
"allNumberRate": 14//环比 100后的数据
"lastAllAmount": 2977323.78,//上期金额总数
"lastAllNumber": 14746//上期商品总数
"returnAmountRate":12.12//退货率
"returnRingRate":1.1//退货率环比
},
"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": "休闲/运动鞋"
"allAmounts": 2970434.16,//汇总金额
"allNums": 14731,//汇总商品数
"dateId": "20160518"//日期
},
{
"allAmounts": 295.04,
"allNums": 4,
"dateId": "20160525"
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
"page": 0,
"size": 0,
"total": 0,
"totalPage": 0
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
"md5": "6bed08aeaa2b44e6238f889d007c358d",
"message": "getOrdersGoodsRptForApi result"
}
```
```json
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
"message": "getOrdersGoodsRptForApi"
}
```
## 3、查询进库统计报表##
... ... @@ -206,32 +184,25 @@ code为200即为成功,否则是失败。
|:-------| -----:|-----:|-----:|----:|
|page|int||是|2|第几页|
|size|int|是|10|每页条数|
|type|int|是|1|1 日 2 周 3 月|
|beginTime|string|是|20150306|周报:开始日期|
|endTime|string|是|20150308|周报:结束日期|
|productSkn|int|是|1222|skn|
|productSkc|int|是|1222|skc|
|productSku|int|是|1222|sku|
|factoryCode|string|是|234234|出厂编号|
|sortId|int|是|12|产品分类 |
|shopId|int|否|17|是|店铺ID |
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.storagein
## 请求样例数据
```json
### 返回
``` json
请求样例:
{
"page": 1,
"size": 2
}
```
正常返回:
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
{
"alg": "SALT_MD5",
"code": 200,
... ... @@ -244,44 +215,21 @@ code为200即为成功,否则是失败。
},
"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": "休闲/运动鞋"
"dateId": 20160518,//日期
"inStorageNums": 665,//数量
"requisitionFormId": 1605008704,//单号
"inStorageAmount": 2342//金额
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
}
```
```json
异常返回:
{
"code": 405,
"data": [],
... ... @@ -307,32 +255,21 @@ code为200即为成功,否则是失败。
|:-------| -----:|-----:|-----:|----:|
|page|int||是|2|第几页|
|size|int|是|10|每页条数|
|type|int|是|1|1 日 2 周 3 月|
|beginTime|string|是|20150306|周报:开始日期|
|endTime|string|是|20150308|周报:结束日期|
|productSkn|int|是|1222|skn|
|productSkc|int|是|1222|skc|
|productSku|int|是|1222|sku|
|factoryCode|string|是|234234|出厂编号|
|sortId|int|是|12|产品分类 |
|shopId|int|否|17|是|店铺ID |
注意,通用的头部没有列出。
请求示例
http://192.168.102.217:8080/gateway?method=app.shops.storageout
## 请求样例数据
```json
``` json
请求样例:
{
"page": 1,
"size": 2
}
```
### 响应
code为200即为成功,否则是失败。
响应JSON格式如下所示:
```json
正常返回:
{
"alg": "SALT_MD5",
"code": 200,
... ... @@ -345,50 +282,28 @@ code为200即为成功,否则是失败。
},
"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": "休闲/运动鞋"
"outStorageNums": 665,
"outFormId": 1605008704,
"outStorageAmount": 2342
}
],
"page": 1,
"size": 10,
"total": 1,
"totalPage": 1
"total": 14612,
"totalPage": 1462
},
"md5": "ce4964c1e6defece5035c81b63c3c51d",
"message": "getOrdersGoodsRptList result"
"message": "result"
}
```
```json
异常返回:
{
"code": 405,
"data": [],
"md5": "d751713988987e9331980363e24189ce",
"message": "getOrdersGoodsRptList"
"message": "getStorageOutRptForApi"
}
```
## 5、获取店铺的品牌排名,当前等级、排名、上升名词##
... ...