Authored by qianjun

Update product_query.md

... ... @@ -16,9 +16,8 @@
localRemnantNum:本店可售库存
totalRemnantNum:线上全部可售库存(包括总仓和各个线下店)
# localRemnantNum:本店可售库存
# 线下店获取门店可售商品列表 #
原入口:platform/PurchaseAllocationController/storeSaleProductDetailList
# 1. 线下店获取门店可售商品列表(线下店商品管理(本店可售(上架,线下可售),本店在售(调拨审核通过的商品),南京) #
接口名:/PurchaseAllocationController/storeSaleProductDetailList
# 请求参数 #
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
... ... @@ -26,112 +25,107 @@
|storeId |int | 50 |否 |1| |门店id|
|productSkus |List<Integer> | 50 |是 | | |sku|
|productSkns |List<Integer> | 50 |是 | | |skn|
|brandIds | List<Integer>| 50 |是 | | |品牌ID|
|productName |String | 50 |是 | | |商品名称|
|brandId |String | 50 |是 | | |品牌id|
|maxSortId |short | 50 |是 | | |商品大类id|
|gender |int | 50 |是 | | |性别|
|attribute |int | 50 |是 | | |商品属性|
|isShopOnSale |String | 50 |是 | | |是否本店在售|
|isShopOnSale |int | 0 |是 | | |是否本店在售 0 不是本店在售 1 是本店在售|
|isAdvance |String | 50 |是 | | |是否预售|
|isLimited |String | 50 |是 | | |是否限量|
|isJit |String | 50 |是 | | |是否jit|
|shopsPageSize |int | 50 |是 | | |分页数|
|page |int | 1 |是 | | |第几页|
|size |int | 20 |是 | | |每页条数(默认一页10条 )|
|shopsPageSize |int | 50 |是 | | |只是一个分页的标志,如果不分页,需要传0 |
**返回参数**
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"code": 200,
"message": "success",
"data": [
{
"productSkn": 70,
"productSku": "1385336",
"productSkc": 0,
"productName": 70,
"brandName": "1385336",
"brandId": 145,
"maxSortName": 0,
"smallSortName": 70,
"middleSortName": "1385336",
"colorName": 145,
"sizeName": 0,
"gender": 70,
"imageUrl": "1385336",
"replenishSwitch": 145,
"attribute": 0,
"isJit": 70,
"isLimited": "1385336",
"isAdvance": 145,
"isSpecial": 0,
"shelveTime": 70,
"salesPrice": "1385336",
"marketPrice": 145,
"auditState": 0
}
]
}
```json
{
"code": 200,
"message": "success",
"data": [
{
"productSkn": 70,
"productSku": "1385336",
"productSkc": 0,
"productName": 70,
"brandName": "1385336",
"brandId": 145,
"maxSortName": 0,
"smallSortName": 70,
"middleSortName": "1385336",
"colorName": 145,
"sizeName": 0,
"gender": 70,
"imageUrl": "1385336",
"replenishSwitch": 145,
"attribute": 0,
"isJit": 70,
"isLimited": "1385336",
"isAdvance": 145,
"isSpecial": 0,
"shelveTime": 70,
"salesPrice": "1385336",
"marketPrice": 145,
"isShopOnSale": 0
}
]
}
```
# 线下店获取门店可售商品列表(线下店商品管理(本店可售(上架,线下可售),本店在售(调拨审核通过的商品),南京) #
# 3.线下店获取门店可售商品列表(线下店商品管理(本店可售(上架,线下可售),本店在售(调拨审核通过的商品),南京) #
接口名:/PurchaseAllocationController/storeSaleProductDetailList
# 请求参数 #
```json
{
"productSkus": [102002,102078]
}
```
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|------:|
|storeId |int | 50 |否 |1| |门店id|
|productSkus |List<Integer> | 50 |是 | | |sku|
|productSkns |List<Integer> | 50 |是 | | |skn|
|brandIds | List<Integer>| 50 |是 | | |品牌ID|
|productName |String | 50 |是 | | |商品名称|
|maxSortId |short | 50 |是 | | |商品大类id|
|gender |int | 50 |是 | | |性别|
|attribute |int | 50 |是 | | |商品属性|
|isShopOnSale |int | 0 |是 | | |是否本店在售 0 不是本店在售 1 是本店在售|
|isAdvance |String | 50 |是 | | |是否预售|
|isLimited |String | 50 |是 | | |是否限量|
|isJit |String | 50 |是 | | |是否jit|
|page |int | 1 |是 | | |第几页|
|size |int | 20 |是 | | |每页条数(默认一页10条 )|
|shopsPageSize |int | 50 |是 | | |只是一个分页的标志,如果不分页,需要传0 |
|productSkus |List<Integer> | [102002,102078] |是 | | |sku|
**返回参数**
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"code": 200,
"message": "success",
"data": [
{
"productSkn": 70,
"productSku": "1385336",
"productSkc": 0,
"productName": 70,
"brandName": "1385336",
"brandId": 145,
"maxSortName": 0,
"smallSortName": 70,
"middleSortName": "1385336",
"colorName": 145,
"sizeName": 0,
"gender": 70,
"imageUrl": "1385336",
"replenishSwitch": 145,
"attribute": 0,
"isJit": 70,
"isLimited": "1385336",
"isAdvance": 145,
"isSpecial": 0,
"shelveTime": 70,
"salesPrice": "1385336",
"marketPrice": 145,
//是否本店在售 0 不是本店在售 1 是本店在售
"isShopOnSale": 0
}
]
}
\ No newline at end of file
```json
{
"code": 200,
"data": [
{
"attribute": "1",
"brandId": 119,
"brandName": "REVELATOR",
"colorName": "绿色",
"factoryCode": "VN0003Z6KM2104500M",
"gender": "1",
"imageUrl": "http://img13.static.yhbimg.com/goodsimg/2012/03/02/14/02ea70da41df2d162fe1ec1c5d53367086.jpg",
"isAdvance": "N",
"isLimited": "N",
"marketPrice": 255,
"maxSortId": 1,
"maxSortName": "上衣",
"middleSortId": 11,
"middleSortName": "T恤",
"productName": "REVELATORTHER 短袖T恤",
"productSkc": 3241,
"productSkn": 50004331,
"productSku": 102001,
"salesPrice": 99,
"sizeId": 201,
"sizeName": "L",
"smallSortId": 114,
"smallSortName": "T恤",
"sortId": 0,
//给pda冗余字段
"templatePic": "http://img13.static.yhbimg.com/goodsimg/2012/03/02/14/02ea70da41df2d162fe1ec1c5d53367086.jpg"
}
],
"message": "操作成功"
}
```
\ No newline at end of file
... ...