库存报表接口.md 2.7 KB

1、查询库存报表

查询库存报表(/seller/getStorageStatisticsList)

请求参数

参数名称 参数类型 可否为空 示例 备注
page int 2 第几页
size int 10 每页条数
productSkn long 1222 skn
productSku long 1222 sku
factoryCode string 234234 厂家编号
sortId int 12 产品分类 最小的分类ID 如果用户只筛选一级品类传一级品类ID 如果用户筛选到二级品类传入二级品类ID,以此类推
shopId int 17 店铺ID

注意,通用的头部没有列出。
请求示例 http://192.168.102.210:8088/platform/seller/getStorageStatisticsList

请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "additionInfo": {
            "dateId": 20170611,               // 报表统计的日期
            "storageTotalMoney": 66.33,       库存总金额(元)
            "onSaleTotalNum": 1,              // 上架数             (无上架则无此节点)
            "storageTotalNum": 2,              // 库存总数量
            "preSaleTotalNum":1,               //待上架数           (无待上架则无此节点)
            "outSaleTotalNum":1               // 下架数            (无下架则无此节点)
        },
        "total": 1,
        "size": 10,
        "totalPage": 1,
        "page": 1,
        "list": [
            {
                "factoryCode": "厂家编号",
                "maxSortName": "鞋靴",
                "productSkc": 681266,
                "colorName": "白色",
                "sizeId": 22,
                "brandName": "brand名称",
                "smallSortId": 299,
                "colorId": 1,
                "storageAmount": 66.33,                 // 库存金额
                "maxSortId": 6,
                "shopName": "shopName",
                "middleSortId": 298,
                "purchasePrice": 22,
                "productSku": 2028386,
                "sizeName": "XL",
                "smallSortName": "厚底鞋",
                "brandId": 422,
                "dateId": 20170611,
                "storeNums": 2,                          // 库存数量
                "middleSortName": "厚底鞋",
                "productSkn": 512588578,
                "shopId": 222,
                "goodsName": "商品名称",
                "status": "1"
            }
        ]
    },
    "md5": "549ea7ea8118c8f7527010b8434469a3",
    "message": "storage statistics list"
}


异常返回:
{
    "code": 405,
    "data": [],
    "md5": "d751713988987e9331980363e24189ce",
    "message": "getOrdersGoodsRptForApi"
}