商品列表.md 6.94 KB

1、查询商品列表

查询商品列表(/SellerProductController/querySellerProductList)

请求参数(默认值都传null)

参数名称 参数类型 可否为空 示例 备注
shopId int 店铺id
brandId int 品牌d
productSkn int productSkn
factoryCode string 商家商品编码
isPublished int 1:是,0:否 是否发布过
shelfStatus int 1:上架,0:下架 上下架状态
auditStatus int 0:无状态,1:提出审核,2:审核驳回,3:审核通过 审核状态
skuFactoryCode string 商品条码
stock int 库存情况 无库存:0,有库存:1,都可以:null
maxSortId int maxSortId
middleSortId int middleSortId
smallSortId int smallSortId
productName string 商品名称
page int 页码
size int 每页个数

注意,通用的头部没有列出。

请求示例 http://127.0.0.1:8088/platform/SellerProductController/querySellerProductList?shopId=15

请求样例数据

正常返回:
{
    "code": 200,
    "data": {
        "list": [
            {
                "brandName": "团一",
                "maxSortName": "创意生活",
                "middleSortName": "文具",
                "productName": "新的商品名称111222211",
                "productSkn": 52000007,
                "retailPrice": 157,
                "salesPrice": 150,
                "searchAndLabel": "",
                "shelveTime": "2016-10-22 16:10",
                "status": 1,
                "stock": 1111
            },
            {
                "brandName": "得宝",
                "maxSortName": "上衣",
                "middleSortName": "POLO",
                "productName": "333",
                "productSkn": 51198412,
                "retailPrice": 500,
                "salesPrice": 59,
                "searchAndLabel": "",
                "status": 8,
                "stock": 0
            },
            {
                "brandName": "非自主",
                "maxSortName": "裤装",
                "productName": "创建的基础商品为什么找不到_审核通过",
                "productSkn": 51198397,
                "productUrl": "http://item.yohobuy.com/p356155.html",
                "retailPrice": 500,
                "salesPrice": 199,
                "searchAndLabel": "",
                "status": 8,
                "stock": 5
            },
            {
                "brandName": "ONLY",
                "maxSortName": "上衣",
                "middleSortName": "防风外套",
                "productName": "ONLY防风外套-testwss01",
                "productSkn": 51198395,
                "productUrl": "http://item.yohobuy.com/p356874.html",
                "retailPrice": 111,
                "salesPrice": 111,
                "searchAndLabel": "",
                "smallSortName": "防风外套",
                "status": 8,
                "stock": 2
            },
            {
                "brandName": "ONLY",
                "maxSortName": "创意生活",
                "productName": "ONLY通用玩偶",
                "productSkn": 51198391,
                "retailPrice": 1,
                "salesPrice": 1,
                "searchAndLabel": "",
                "status": 1,
                "stock": 2
            },
            {
                "brandName": "000000000000",
                "maxSortName": "裙装",
                "middleSortName": "连衣裙",
                "productName": "feng1111",
                "productSkn": 51198390,
                "retailPrice": 1799,
                "salesPrice": 365,
                "searchAndLabel": "",
                "smallSortName": "连衣裙",
                "status": 8,
                "stock": 0
            },
            {
                "brandName": "ONLY",
                "maxSortName": "裙装",
                "middleSortName": "半身裙",
                "productName": "ONLY半身裙",
                "productSkn": 51198386,
                "retailPrice": 500,
                "salesPrice": 108,
                "searchAndLabel": "",
                "smallSortName": "半身裙",
                "status": 8,
                "stock": 0
            },
            {
                "brandName": "ONLY",
                "maxSortName": "内衣/家居服",
                "middleSortName": "家居鞋",
                "picImgUrl": "http://img11.static.yhbimg.com/goodsimg/2016/08/19/10/014ed64b752448aeb4d13aba9690b5fbed.png?imageView2/0/w/78/h/78",
                "productName": "ONLY家居鞋",
                "productSkn": 51198382,
                "productUrl": "http://item.yohobuy.com/p500750.html",
                "retailPrice": 111,
                "salesPrice": 69,
                "searchAndLabel": "",
                "smallSortName": "家居鞋",
                "status": 8,
                "stock": 0
            },
            {
                "brandName": "ONLY",
                "middleSortName": "储物包",
                "productName": "ONLY专用储物包---testwss-01",
                "productSkn": 51198381,
                "retailPrice": 111,
                "salesPrice": 69,
                "searchAndLabel": "",
                "shelveTime": "2016-05-27 00:54",
                "smallSortName": "专用储物包",
                "status": 8,
                "stock": 30
            },
            {
                "brandName": "海澜之家",
                "maxSortName": "111",
                "middleSortName": "数码配件",
                "productName": "海澜之家数码配件",
                "productSkn": 51198380,
                "retailPrice": 111,
                "salesPrice": 69,
                "searchAndLabel": "",
                "status": 8,
                "stock": 0
            }
        ],
        "page": 1,
        "size": 10,
        "total": 77,
        "totalPage": 8
    },
    "md5": "d74ee37e1b673f055394d3f2ad19429c",
    "message": "NetSale Product List."
}

异常返回:

{
    "code": 500,
    "data": [],
    "md5": "8b233b3ba501d3563be331aa58d0fe0d",
    "message": "NetSale Product List error."
}

2、导出商品列表

查询商品列表(/SellerProductController/exportSellerProductList)

请求参数(默认值都传null)

参数名称 参数类型 可否为空 示例 备注
shopId int 店铺id
maxSortId int maxSortId
middleSortId int middleSortId
smallSortId int smallSortId

注意,通用的头部没有列出。

请求示例(需要登录才能调用) http://127.0.0.1:8088/platform/SellerProductController/exportSellerProductList?shopId=15

请求样例数据

正常返回:
商品导出_20170502145522.xlsx 和文件流

异常返回:

{
    "code": 200,
    "data": "没有需要导出的商品",
    "message": "success"
}

{
    "code": 200,
    "data": "最多可以导出2000个SKN",
    "message": "success"
}