文档
测试

营业收入

POST
/api/restaurant_machine/index/businessincome

请求头

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

请求示例

``` { "type":4,//类型 1 本日 2 本周 3 本月 4 本年 必传 "chooseLevelId":1, // 选中的ID 必传 "chooseLevel":1 //选中的级别 必传 }

说明 / 示例

```{ "total": 0, "code": 0, "data": { "businessIncome": "5527.3",//营业收入 "turnover": "5089.6",//营业额 "memberConsumption": "162.3",//会员消费 "memberPrepaid": "700",//会员充值 "giving": "100", //充值赠送 "statisticalSales": [ { "ranking": 1, "name": "红烧牛肉面", "images": "http://192.168.0.186:8199/a.jpg", "orderCount": "28", "totalPrice": "1347.0" }, { "ranking": 2, "name": "生椒牛肉面", "images": "http://192.168.0.186:8199/e.jpg", "orderCount": "13", "totalPrice": "400.4" }, { "ranking": 3, "name": "姜鸭面", "images": "http://192.168.0.186:8199/d.jpg", "orderCount": "12", "totalPrice": "349.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/b.jpg", "orderCount": "2", "totalPrice": "88.0" } ] }, "message": "success" }