orders_goods.md 10.2 KB

#大数据报表

销售统计

接口名:/shop/getOrdersGoodsRptList


属性名称 类型 例子 说明
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 产品分类

返回

请求样例:
{
  "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/getOrdersGoodsRptForApi


属性名称 类型 例子 说明
type int 1 1 日 2 周 3 月
reqTime string 20150306 日报 月报 日期
beginTime string 20150306 周报:开始日期
endTime string 20150308 周报:结束日期

返回

请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
  "alg": "SALT_MD5",
  "code": 200,
  "data": {
    "additionInfo": {
      "allAmount": 2977123.6,
      "allAmountRate": 0,
      "allNumber": 14749,
      "allNumberRate": 0,
      "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 产品分类

返回

请求样例:
{
  "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 产品分类

返回

请求样例:
{
  "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 产品分类

返回

请求样例:
{
  "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"
}