出入库报表接口.md 5.09 KB

1、查询入库报表

查询入库报表(/seller/getStorageInRptList)

请求参数

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

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

请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "additionInfo": {
            "allNumber": 8,
            "allAmount": 77
        },
        "total": 1,
        "size": 10,
        "totalPage": 1,
        "page": 1,
        "list": [
            {
                "factoryCode": "code",
                "colorName": "color",
                "sizeId": 22,
                "smallSortId": 77,
                "inStorageNums": 8,
                "colorId": 12,
                "maxSortId": 5,
                "shopName": "224",
                "purchasePrice": 12.11,
                "inStorageAmount": 77,
                "productSku": 1212,
                "sizeName": "size",
                "requisitionFormId": 12,
                "smallSortName": "small",
                "imageUrl": "url",
                "dateId": 20170611,
                "productSkn": 126767,
                "shopId": 224,
                "goodsName": "name",
                "maxSortName": "max",
                "productSkc": 1212,
                "brandName": "224",
                "middleSortId": 66,
                "brandId": 224,
                "middleSortName": "mid"
            }
        ]
    },
    "md5": "d5039db24fa514569b26780a59613e06",
    "message": "getStorageInRptList result"
}


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

2、查询出库报表

查询出库报表(/seller/getStorageOutRptList)

请求参数

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

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

请求样例:
{
"beginTime": "20160516",
"endTime": "20160528",
"type":2
}
正常返回:
{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "additionInfo": {
            "allNumber": 222,
            "allAmount": 222.66
        },
        "total": 1,
        "size": 10,
        "totalPage": 1,
        "page": 1,
        "list": [
            {
                "factoryCode": "厂家编号",
                "outFormId": 22,
                "colorName": "白色",
                "sizeId": 22,
                "smallSortId": 299,
                "outStorageNums": 222,
                "colorId": 1,
                "maxSortId": 6,
                "shopName": "店铺名称",
                "purchasePrice": 22,
                "productSku": 2028386,
                "sizeName": "XL",
                "smallSortName": "厚底鞋",
                "imageUrl": "0",
                "dateId": 20170611,
                "productSkn": 512588578,
                "shopId": 224,
                "outStorageAmount": 222.66,
                "goodsName": "商品名称",
                "maxSortName": "鞋靴",
                "productSkc": 681266,
                "brandName": "品牌名称",
                "middleSortId": 298,
                "brandId": 22,
                "middleSortName": "厚底鞋"
            }
        ]
    },
    "md5": "95f4c0c452aecadd8ac0e3f73042bd43",
    "message": "getStorageOutRptList result"
}


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