Blame view

商家端/销售统计.md 4.68 KB
马力 authored
1 2
## 1、查询销售统计报表##
马力 authored
3
查询销售统计报表(/seller/getOrdersGoodsRptList)
马力 authored
4 5 6 7 8 9 10

#### 请求参数
| 参数名称 | 参数类型 |  可否为空 | 示例 | 备注 | 
|:-------| -----:|-----:|-----:|----:| 
|page|int|是|2|第几页|
|size|int|是|10|每页条数|
|type|int|否|1|1 日 2 周 3 月|
马力 authored
11 12 13
|reqTime|int|type为1或者3必填|日报示例20160521 月报示例 201605|日报或者月报日期, 周报则通过以下两个字段传入|
|beginTime|string|type为2必传|20160521|周报:开始日期|
|endTime|string|type为2必传|20160527|周报:结束日期|
马力 authored
14 15 16
|productSkn|long|是|1222|skn|
|productSkc|long|是|1222|skc|
|productSku|long|是|1222|sku|
马力 authored
17
|factoryCode|string|是|234234|厂家编号|
马力 authored
18 19
|sortId|int|是|12|产品分类 最小的分类ID  如果用户只筛选一级品类传一级品类ID 如果用户筛选到二级品类传入二级品类ID,以此类推 |
|shopsId|int|否|17|店铺ID |
马力 authored
20 21 22

注意,通用的头部没有列出。  
请求示例
马力 authored
23
http://192.168.102.210:8088/platform/seller/getOrdersGoodsRptList
马力 authored
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

``` json
请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "additionInfo": {
     "allAmount": 2977818.56,//订单商品金额
马力 authored
39
      "allAmountRate": 29.56,//环比 乘100后的数据    页面直接用此数字后面加上%
马力 authored
40 41
      "allAmountRateFlag":true //是否有环比值 true  false 
      "allNumber": 14747,//订单商品总数
马力 authored
42
       "allNumberRate": 14//环比  100后的数据   页面直接用此数字后面加上%
马力 authored
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
       "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"
}
马力 authored
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147

{
  "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"
}

马力 authored
148 149 150 151 152 153 154 155 156
异常返回:
{
    "code": 405,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "getOrdersGoodsRptForApi"
}

```