|
|
# 获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额
|
|
|
|
|
|
> 接口名: `/bigdata/getShopBusinessOverview` 例子(http://127.0.0.1:8091/bigdata/bigdata/getShopBusinessOverview)
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|---|----|--------|
|
|
|
|brandId|number||品牌id|Y||
|
|
|
|dateId|number||日期|Y|20160524|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from management_kpi
|
|
|
where brand_id = #{brandId} order by date_id desc limit 1
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 查询成功!| |
|
|
|
|401| 参数错误!| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"brandId": 1200,
|
|
|
"brandName": "wss",
|
|
|
"buyNumbers": 100,
|
|
|
"dateId": 20160523,
|
|
|
"orderAmount": 100,
|
|
|
"shopId": 431,
|
|
|
"shopName": "wss"
|
|
|
},
|
|
|
"md5": "1d143fd1d71504f9d7a82121202c4bfc",
|
|
|
"message": "shop business overview."
|
|
|
}
|
|
|
|
|
|
# 获取店铺的经营指标:一个自然日内有效订单商品件数、有效订单商品 金额
|
|
|
|
|
|
> 接口名: `/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": {
|
|
|
"brandId": 1200,
|
|
|
"brandName": "wss",
|
|
|
"buyNumbers": 100,
|
|
|
"dateId": 20160523,
|
|
|
"orderAmount": 100,
|
|
|
"shopId": 431,
|
|
|
"shopName": "wss"
|
|
|
},
|
|
|
"md5": "1d143fd1d71504f9d7a82121202c4bfc",
|
|
|
"message": "shop business overview."
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|