文档
测试

销量统计

POST
/api/restaurant_machine/index/salesInfo

请求头

参数名
类型
描述
必填
token
string
token
必填

请求参数

application/json
参数名
类型
描述
必填
chooseLevelId
long
选中的ID
必填
chooseLevel
int
选中的级别
必填
startTime
String
开始时间
可选
endTime
String
结束时间
可选
orderNo
memberPhone
订单号
可选
paymentType
int
支付方式 1:支付宝 ,2:微信,3:现金,4:会员
可选
memberPhone
memberPhone
会员手机号
可选
sort
string
排序 asc 升序 desc 降序
可选

说明 / 示例

```{ "total": 0, "code": 0, "data": { "turnover": "4008.8",//营业额 "orderCount": "111",//订单数 "statisticalSales": [// { "ranking": 1, "name": "姜鸭面", "images": "http://192.168.0.186:8199/d.jpg", "orderCount": "49", "totalPrice": "1435.2" }, { "ranking": 2, "name": "红烧牛肉面", "images": "http://192.168.0.186:8199/a.jpg", "orderCount": "36", "totalPrice": "1709.0" }, { "ranking": 3, "name": "生椒牛肉面", "images": "http://192.168.0.186:8199/e.jpg", "orderCount": "17", "totalPrice": "523.6" }, { "ranking": 4, "name": "青椒肉丝盖饭", "images": "http://192.168.0.186:8199/f.jpg", "orderCount": "3", "totalPrice": "54.0" }, { "ranking": 5, "name": "牛杂火锅面", "images": "http://192.168.0.186:8199/c.jpg", "orderCount": "3", "totalPrice": "152.0" }, { "ranking": 6, "name": "招牌豌杂面", "images": "http://192.168.0.186:8199/b.jpg", "orderCount": "3", "totalPrice": "135.0" } ] }, "message": "success" }