Authored by lingmin

Update pda-interface-doc.md

... ... @@ -526,4 +526,156 @@
```
> 如果确认的盘点数量和货架商品数量一致,服务端自动设置状态成完成
# 获取门店库存位置数量 #
入口:LineShopsController/getStorageLocation
# 请求参数 #
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|------:|
|storeId |int | 50 |否 |1| |门店id|
|productSkus |String | 50 |否 |1 | |sku,多个,","隔开|
**请求示例**
注意,通用的头部没有列出。
http://192.168.102.210:8080/portal-gateway/LineShopsController/getStorageLocation
{
"storeId": "10",
"productSkus": "102004,102005",
}
**响应**
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"code": 200,
"message": "success",
"data": [
{
"storeId": 70,
"productSku": "1385336",
"goodsShelvesStock": 145,
"destroyStock": 0
},
{
"storeId": 70,
"productSku": "1385330",
"goodsShelvesStock": 195,
"destroyStock": 0
}
]
}
# 根据skus获取商品详情 #
入口:LineShopsProductController.getProductInfoBySkuList()
# 请求参数 #
| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
| ---------|:--------:| --------:|-----:|------:|-----:|------:|
|storeId |int | 50 |否 |1| |门店id|
|productSkus |String | 50 |否 |1 | |多个,","隔开|
**请求示例**
注意,通用的头部没有列出。
http://192.168.102.210:8080/portal-gateway/LineShopsProductController/getProductInfoBySkuList
{
"storeId": "10",
"productSkus": "1385336,1385330",
}
**响应**
code为200即为成功,否则是失败。 响应JSON格式如下所示:
{
"code": 200,
"message": "success",
"data": [
{
"productId": 512581796,
"productSkn": 512581796,
"productSku": 1385330,
"productSkc": 534360,
"sizeName": "L",
"colorName": "黑色",
"imageUrl": "http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png",
"productName": "blkheimei通用的男女卫衣给线下店用",
"brandName": "BLK黑莓",
"shelveTime": "2016-09-14 15:13",
"maxSortId": 0,
"maxSortName": "上衣",
"middleSortName": "卫衣",
"smallSortName": "卫衣",
"genderStr": "通用",
"attribute": "普通商品",
"isShopCanSale": "是",
"isShopOnSale": null,
"isAdvance": "否",
"isSpecial": null,
"isLimited": "否",
"isJit": "是",
"marketPrice": "1.0",
"salesPrice": 1,
"grossRate": null,
"replenishSwitch": 0,
"shopStock": 0,
"allStock": 0,
"goodsShelvesStock": 0,
"destroyStock": 0,
"imageUrls": null,
"skcColor": "534360(黑色)",
"genderAttribute": "通用/普通商品",
"saleAttribute": "本店可售/JIT",
"goodsShelvesCode": "1-B1-100-B1-02-H-142"
},
{
"productId": 512581796,
"productSkn": 512581796,
"productSku": 1385336,
"productSkc": 534362,
"sizeName": "M",
"colorName": "绿色",
"imageUrl": "http://img01.yohoboys.com/staticimg/2016/05/19/15/01091c21f2317a64f123f1649fbbccf7ba.png",
"productName": "blkheimei通用的男女卫衣给线下店用",
"brandName": "BLK黑莓",
"shelveTime": "2016-09-14 15:13",
"maxSortId": 0,
"maxSortName": "上衣",
"middleSortName": "卫衣",
"smallSortName": "卫衣",
"genderStr": "通用",
"attribute": "普通商品",
"isShopCanSale": "是",
"isShopOnSale": null,
"isAdvance": "否",
"isSpecial": null,
"isLimited": "否",
"isJit": "是",
"marketPrice": "1.0",
"salesPrice": 1,
"grossRate": null,
"replenishSwitch": 0,
"shopStock": 0,
"allStock": 0,
"goodsShelvesStock": 0,
"destroyStock": 0,
"imageUrls": null,
"skcColor": "534362(绿色)",
"genderAttribute": "通用/普通商品",
"saleAttribute": "本店可售/JIT",
"goodsShelvesCode": "1-2-C-148"
}
]
}
... ...