Showing
1 changed file
with
58 additions
and
0 deletions
api-doc/shopsReport/getShopBusinessOverview
0 → 100644
1 | +# 获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额 | ||
2 | + | ||
3 | +> 接口名: `/bigdata/getShopBusinessOverview` 例子(http://127.0.0.1:8080/bigData/bigdata/getShopBusinessOverview) | ||
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 management_kpi | ||
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 | + "brandName": "wss", | ||
48 | + "buyNumbers": 100, | ||
49 | + "dateId": 20160523, | ||
50 | + "orderAmount": 100, | ||
51 | + "shopId": 431, | ||
52 | + "shopName": "wss" | ||
53 | + }, | ||
54 | + "md5": "1d143fd1d71504f9d7a82121202c4bfc", | ||
55 | + "message": "shop business overview." | ||
56 | +} | ||
57 | + | ||
58 | +``` |
-
Please register or login to post a comment