biz.merchants.get.order.statistics
按条件统计订单数量、金额
- 请求路由:
biz.merchants.get.order.statistics- 交互模型:
Response Stream- 访问限制: 无
请求
RSocket.rs({
"route" : "biz.merchants.get.order.statistics",
"args" : {
"merchantId" : "HTL10022",
"type" : "2",
"search" : {
"from" : "2022-12-01",
"to" : "2023-01-01"
}
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
type | String | 否 | 0-按天 1-按周 2-按月 |
merchantId | String | 否 | 商户id |
search | Object | 否 | 条件 |
search.keyword | String | 否 | 模糊匹配关键字 |
search.from | String | 否 | 查询起始时间,时间样式为RFC3339格式,如:2019-04-18T00:13:39.649Z |
search.to | String | 否 | 查询终止时间,时间样式为RFC3339格式,如:2019-04-19T00:13:39.649Z |
返回
订单数量、金额统计数据
[
{
"date" : "2022-12",
"price" : 0.0,
"orderCount" : 0
},
{
"date" : "2023-01",
"price" : 0.0,
"orderCount" : 0
}
]
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
date | String | 日期 年月日 |
price | Number | 总价 |
orderCount | Number | 订单总数 |