Authored by qianjun

Update product_query.md

1 -## 1.获取商品可售平台设置列表(平台端商品管理:所有) 1 +# 线下店获取门店可售商品列表 #
  2 +原入口:platform/PurchaseAllocationController/storeSaleProductDetailList
2 3
3 -> 接口名: `/ProductSaleController/getProductSaleList.do` 4 +# 请求参数 #
  5 +| 参数名称 | 参数类型| 长度 |可否为空 |示例 |默认值 | 备注 |
  6 +| ---------|:--------:| --------:|-----:|------:|-----:|------:|
  7 +|storeId |int | 50 |否 |1| |门店id|
  8 +|productSkus |List<Integer> | 50 |是 | | |sku|
  9 +|productSkns |List<Integer> | 50 |是 | | |skn|
  10 +|productName |String | 50 |是 | | |商品名称|
  11 +|brandId |String | 50 |是 | | |品牌id|
  12 +|maxSortId |short | 50 |是 | | |商品大类id|
  13 +|gender |int | 50 |是 | | |性别|
  14 +|attribute |int | 50 |是 | | |商品属性|
  15 +|isShopOnSale |String | 50 |是 | | |是否本店在售|
  16 +|isAdvance |String | 50 |是 | | |是否预售|
  17 +|isLimited |String | 50 |是 | | |是否限量|
  18 +|isJit |String | 50 |是 | | |是否jit|
  19 +|shopsPageSize |int | 50 |是 | | |分页数|
4 20
5 -### 入参  
6 21
7 --------------------------  
8 -|属性名称|类型|例子|说明|是否必填|  
9 -|--------|----|----|----|--------|  
10 -|productSkn|Integer|51198438|产品SKN号|否|  
11 -|productName|string|商品名称|产品名称|否|  
12 -|brandId|Short|1234|品牌ID|否|  
13 -|shopId|Short|1234|店铺ID|否|  
14 -|maxSortId|Short|1234|产品一级分类ID|否|  
15 -|middleSortId|Short|1234|产品二级分类ID|否|  
16 -|smallSortId|Short|1234|产品三级分类ID|否|  
17 -|sortId|Short|1234|产品四级分类ID|否|  
18 -|gender|string|1|性别(1男、2女、3通用)|否|  
19 -|isAdvance|string|Y|是否预售,Y:是,N:否|否|  
20 -|isJit|string|Y|是否jit商品,Y:是,N:否|否|  
21 -|isOutLets|string|'B'|'Y','N','B' 是否奥莱,默认品牌设置|否|  
22 -|founderName|String|111|创建人名称|否|  
23 -|salePlatform|int|1|1、线上线下均可售 2、仅线上可售 3、仅线下可售|否|  
24 -|storeId|int|1|线下门店Id|否|  
25 -|isAutoAllocation|int|0|0、关闭自动生成调拨单状态 1、开启自动生成调拨单状态|否|  
26 -|isOnline|int|0|0、不是线上展示 1、是线上展示|否|  
27 -|page|int|1|当前页|是|  
28 -|size|int|10|每页显示条数|是|  
29 ----------------------  
30 22
31 -### 接口返回消息体  
32 -```json  
33 -{  
34 - "code": 200,  
35 - "data": {  
36 - "list": [  
37 - {  
38 - "ageLevel": "1",  
39 - "attribute": 1,  
40 - "auditFailTime": 0,  
41 - "auditPassId": 2794,  
42 - "auditPassName": "wxtest1",  
43 - "auditPassTime": 1458647086,  
44 - "baseGoodList": [  
45 - {  
46 - "colorId": 90,  
47 - "createTime": 1458647027,  
48 - "factoryCode": "1221",  
49 - "factoryGoodsName": "21",  
50 - "goodsColorImage": "http://img12.static.yhbimg.com\goodsimg/2016/03/22/19/0257a05ae92dd665f3a42894a4e7135896.jpg",  
51 - "goodsName": "jpgs(+)",  
52 - "goodsSizeList": [  
53 - {  
54 - "barCode": "12",  
55 - "createTime": 1458647027,  
56 - "isSuppled": "N",  
57 - "marketPrice": 21,  
58 - "presaleStorageNum": 0,  
59 - "productSkc": 336352,  
60 - "productSkn": 51198439,  
61 - "productSku": 1047563,  
62 - "salePrice": 21,  
63 - "sizeId": 267,  
64 - "updateTime": 1458647027  
65 - }  
66 - ],  
67 - "productSkc": 336352,  
68 - "productSkn": 51198439,  
69 - "updateTime": 1458647027  
70 - }  
71 - ],  
72 - "brandFolder": 0,  
73 - "brandId": 1555,  
74 - "brandName": "请不要用我的品牌,谢谢",  
75 - "createTime": 1458647027,  
76 - "editTime": 1458647027,  
77 - "expectArrivalTime": 0,  
78 - "expectShelfTime": 1458595500,  
79 - "factoryCode": "",  
80 - "founder": 2794,  
81 - "founderName": "wxtest1",  
82 - "gender": "1",  
83 - "goodsSeason": 0,  
84 - "goodsYears": 2016,  
85 - "grade": "0",  
86 - "isAdvance": "N",  
87 - "isAuditing": 200,  
88 - "isJit": "N",  
89 - "isLimitbuy": "N",  
90 - "isLimited": "N",  
91 - "isMainPush": "N",  
92 - "isOutLets": "B",  
93 - "isPromotionalGifts": "N",  
94 - "isSupplied": 2,  
95 - "isVip": "B",  
96 - "limitEndTime": 0,  
97 - "limitStartTime": 0,  
98 - "maxSortId": 1,  
99 - "maxSortName": "上衣",  
100 - "middleSortId": 12,  
101 - "middleSortName": "衬衫",  
102 - "operateInfo": "wxtest1 2016-03-22 19:44:46",  
103 - "productName": "请不要用我的品牌,谢谢衬衫",  
104 - "productSkn": 51198439,  
105 - "productTag": "12122121",  
106 - "rejectReason": "",  
107 - "retailPrice": 21,  
108 - "salesPrice": 21,  
109 - "seasons": "",  
110 - "seriesId": 0,  
111 - "shopId": 0,  
112 - "sizeMaxSortId": 0,  
113 - "sizeMiddleSortId": 0,  
114 - "sizeSmallSortId": 0,  
115 - "smallSortId": 115,  
116 - "smallSortName": "衬衫",  
117 - "sortId": 0,  
118 - "supplierId": 0,  
119 - "yohoCoin": 0  
120 - }  
121 - ],  
122 - "page": 1,  
123 - "size": 10,  
124 - "total": 119,  
125 - "totalPage": 12  
126 - },  
127 - "md5": "23163c6c8ac58fc85f9cad364c165483",  
128 - "message": "获取列表成功."  
129 -}  
130 -```  
  23 +**返回参数**
  24 +
  25 +code为200即为成功,否则是失败。 响应JSON格式如下所示:
  26 +
  27 + {
  28 + "code": 200,
  29 + "message": "success",
  30 + "data": [
  31 + {
  32 + "productSkn": 70,
  33 + "productSku": "1385336",
  34 + "productSkc": 0,
  35 + "productName": 70,
  36 + "brandName": "1385336",
  37 + "brandId": 145,
  38 + "maxSortName": 0,
  39 + "smallSortName": 70,
  40 + "middleSortName": "1385336",
  41 + "colorName": 145,
  42 + "sizeName": 0,
  43 + "gender": 70,
  44 + "imageUrl": "1385336",
  45 + "replenishSwitch": 145,
  46 + "attribute": 0,
  47 + "isJit": 70,
  48 + "isLimited": "1385336",
  49 + "isAdvance": 145,
  50 + "isSpecial": 0,
  51 + "shelveTime": 70,
  52 + "salesPrice": "1385336",
  53 + "marketPrice": 145,
  54 + "auditState": 0
  55 + }
  56 + ]
  57 + }