Authored by ZhongW

Update getShopBrandRank.md

1 -# 获取店铺的品牌排名,当前等级、排名、上升名词  
2 -  
3 -> 接口名: `/bigdata/getShopBrandRank` 例子(http://127.0.0.1:8091/bigdata/bigdata/getShopBrandRank)  
4 -  
5 -### 方法  
6 -  
7 -> POST JSONRAW  
8 -  
9 -### 入参  
10 -  
11 --------------------------  
12 -|属性名称|类型|例子|说明|是否必填|长度限制|  
13 -|--------|----|----|---|----|--------|  
14 -|brandId|number||品牌id|Y||  
15 -|dateId|number||日期|Y|20160524|  
16 -  
17 -  
18 -  
19 -  
20 -### 对应SQL的操作库表  
21 -  
22 -```xml  
23 - <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >  
24 - select  
25 - <include refid="Base_Column_List" />  
26 - from shop_brand_rank  
27 - where brand_id = #{brandId} order by date_id desc limit 1  
28 - </select>  
29 -```  
30 -  
31 -### 错误编码  
32 -  
33 --------------------------  
34 -|错误码code|消息|说明|  
35 -|--------|----|----|  
36 -|200| 查询成功!| |  
37 -|401| 参数错误!| |  
38 -  
39 -### 返回  
40 -  
41 -``` json  
42 -{  
43 - "alg": "SALT_MD5",  
44 - "code": 200,  
45 - "data": {  
46 - "brandId": 1200,  
47 - "brandMainCategory": 2,  
48 - "dateId": 20160524,  
49 - "rankChange": 5,  
50 - "rankLevel": 1,  
51 - "rankNow": 15  
52 - },  
53 - "md5": "64cdf0d30ba9174ddce76ecf71a91ad8",  
54 - "message": "shop business overview."  
55 -}  
56 - 1 +# 获取店铺的品牌排名,当前等级、排名、上升名词
  2 +
  3 +> 接口名: `/bigdata/getShopBrandRank` 例子(http://127.0.0.1:8091/bigdata/bigdata/getShopBrandRank)
  4 +
  5 +### 方法
  6 +
  7 +> POST JSONRAW
  8 +
  9 +### 入参
  10 +
  11 +-------------------------
  12 +|属性名称|类型|例子|说明|是否必填|长度限制|
  13 +|--------|----|----|---|----|--------|
  14 +|shopId|number||店铺id|Y||
  15 +|dateId|number||日期|N|20160524|
  16 +
  17 +
  18 +
  19 +
  20 +### 对应SQL的操作库表
  21 +
  22 +```xml
  23 + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.yoho.bigData.dal.reqdao.BrandRanksDao" >
  24 + select
  25 + <include refid="Base_Column_List" />
  26 + from shop_brand_rank
  27 + where 1=1
  28 + <include refid="Select_BrandRanks"/>
  29 + order by date_id desc limit 1
  30 + </select>
  31 +```
  32 +
  33 +### 错误编码
  34 +
  35 +-------------------------
  36 +|错误码code|消息|说明|
  37 +|--------|----|----|
  38 +|200| 查询成功!| |
  39 +|401| 参数错误!| |
  40 +
  41 +### 返回
  42 +
  43 +``` json
  44 +{
  45 + "alg": "SALT_MD5",
  46 + "code": 200,
  47 + "data": {
  48 + "brandId": 1200,
  49 + "brandMainCategory": 2,
  50 + "dateId": 20160524,
  51 + "rankChange": 5,
  52 + "rankLevel": 1,
  53 + "rankNow": 15
  54 + },
  55 + "md5": "64cdf0d30ba9174ddce76ecf71a91ad8",
  56 + "message": "shop business overview."
  57 +}
  58 +
57 ``` 59 ```