getShopBusinessOverview
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额
> 接口名: `/bigdata/getShopBusinessOverview` 例子(http://127.0.0.1:8091/bigdata/bigdata/getShopBusinessOverview)
### 方法
> POST JSONRAW
### 入参
-------------------------
|属性名称|类型|例子|说明|是否必填|长度限制|
|--------|----|----|---|----|--------|
|brandId|number||品牌id|Y||
|dateId|number||日期|N|20160524|
### 对应SQL的操作库表
```xml
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="com.yoho.bigData.dal.reqdao.MgtKpiDao" >
select
<include refid="Base_Column_List" />
from management_kpi_hour
where 1=1
<include refid="Select_MgtKpi"/>
order by date_id desc limit 1
</select>
```
### 错误编码
-------------------------
|错误码code|消息|说明|
|--------|----|----|
|200| 查询成功!| |
|401| 参数错误!| |
### 返回
``` json
{
"alg": "SALT_MD5",
"code": 200,
"data": {
"hour" : "00:00:00",
"brandId": 1200,
"brandName": "wss",
"buyNumbers": 100,
"dateId": 20160523,
"orderAmount": 100,
"shopId": 431,
"shopName": "wss"
},
"md5": "1d143fd1d71504f9d7a82121202c4bfc",
"message": "shop business overview."
}
```