简要描述:
打水机-机主-消费记录
请求域名:
- http://xx.com
请求路由:
route=plugin.yz-supply-water-machine.frontend.business.device.consumption&page=1&page_size=1
请求参数说明:
| 参数名 | 类型 | 是否必需 | 说明 |
|---|---|---|---|
| page | int | 是 | |
| page_size | int | 是 | |
| start_time | string | 年-月-日 | |
| end_time | string | 年-月-日 | |
| device_no | string | 是 | 设备号 |
| card_no | string | 会员卡号 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"device_id": "868909070679587",
"list": [
{
"id": 1054,
"created_at": 1763796505,
"updated_at": 1763796505,
"device_id": "868909070679587",
"card_no": "000000000001",
"purchase_id": 7,
"uid": 7,
"status": 0,
"consume_type": 2,
"mall_id": 0,
"operation_center_id": 4,
"amount": "10.00",
"card_balance": "282.07",
"water_volume": 0,
"machine": {
"id": 247,
"created_at": 1766981480,
"updated_at": 1771056300,
"center_id": 0,
"device_id": "868909070679587",
"sim_id": 0,
"device_name": "",
"device_type_id": 0,
"imei": "868909070679587",
"purchase_id": 0,
"mall_id": 0,
"manufacturer_id": 0,
"maintainers": null,
"province": "",
"city": "",
"district": "",
"street": "",
"address": "",
"longitude": 0,
"latitude": 0,
"status": "1",
"activate_status": 0,
"spend_limit_one_time": 0,
"spend_limit_one_day": 0,
"time_one_yuan": 0,
"time_one_liter": 0,
"flow_type": 0,
"light_start_time": "",
"light_stop_time": "",
"soft_ver": "7",
"ActivateFlag": 0,
"filter_pp_cotton_1um": 30000,
"filter_activated_carbon": 30000,
"filter_pp_cotton_5um": 30000,
"filter_ro_membrane": 60000,
"filter_resin_t33": 20000,
"filter_alkaline": 20000,
"filter_taste": 20000,
"filter_integrated_cotton": 20000,
"filter_pp_cotton_1um_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_activated_carbon_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_pp_cotton_5um_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_ro_membrane_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_resin_t33_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_alkaline_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_taste_expiry_at": "2026-06-27T12:11:20+08:00",
"filter_integrated_cotton_expiry_at": "2026-06-27T12:11:20+08:00",
"today_amount": 0,
"month_amount": 0,
"Manufacturer": {
"id": 0,
"created_at": null,
"updated_at": null,
"name": "",
"brand": "",
"member_id": 0
},
"Purchase": {
"id": 0,
"created_at": null,
"updated_at": null,
"memberId": 0,
"appSecret": "",
"is_check_sign": 0,
"banlist": 0,
"is_multi_shop": 0,
"app_level_id": 0,
"applicationLevel": {
"id": 0,
"created_at": null,
"updated_at": null,
"sort": 0,
"levelName": "",
"serverRadio": 0,
"equityServerRadio": 0,
"lian_lian_server_radio": 0,
"numMax": 0,
"is_display": 0
},
"call_back_link_validity": 0,
"call_back_link": "",
"pet_supplier_id": 0,
"app_name": "",
"match_address_source": ""
},
"Mall": {
"id": 0,
"created_at": null,
"updated_at": null,
"application_id": 0,
"shop_name": "",
"callback_link": "",
"app_secret": ""
},
"DeviceTypeInfo": {
"id": 0,
"created_at": null,
"updated_at": null,
"name": ""
},
"SimCardInfo": {
"id": 0,
"created_at": null,
"updated_at": null,
"sim_no": "",
"status": "",
"operator": "",
"month_usage": 0,
"device_no": "",
"amount": 0,
"valid_period": 0,
"expire_at": -62135596800
},
"LatestHeartbeat": {
"id": 0,
"created_at": null,
"updated_at": null,
"IMEI": "",
"Data": {
"RawTds": 0,
"PureTds": 0,
"TempVal": 0,
"TempValRes": 0,
"WaterState": 0,
"WaterAmount": 0,
"SoftwareVer": 0,
"HardwareVer": 0,
"Cxf": 0,
"Zsb": 0,
"Qsd": 0,
"Gzf": 0,
"Ggd": 0,
"O3s": 0,
"Wks": 0,
"Zwd": 0,
"WaterLevel": 0,
"DiState": 0,
"iccid": "",
"rfid": "",
"RemainAmount": 0,
"imei": "",
"Type": 0,
"CmdType": 0,
"FlowSn": 0,
"Csq": 0,
"TankCapacity": 0,
"SoftVer": 0,
"PriceCalib": 0,
"TimeOneYuan": 0,
"TimeOneLiter": 0,
"ErrCode": "",
"ActivateFlag": null
}
},
"CenterInfo": {
"id": 0,
"created_at": null,
"updated_at": null,
"name": "",
"member_id": 0,
"data_perm": null,
"machine_count": 0,
"maintainer_count": 0,
"member": {
"id": 0,
"updated_at": null,
"created_at": null,
"mobile": "",
"avatar": "",
"username": "",
"password": "",
"nickname": "",
"status": 0,
"uuid": "00000000-0000-0000-0000-000000000000",
"level_id": 0,
"parent_id": 0,
"temporary_parent_id": 0,
"qr_code": "",
"invite_code": "",
"wx_username": "",
"user_level": {
"id": 0,
"created_at": null,
"updated_at": null,
"discount": 0,
"name": "",
"level": 0
},
"wx_openid": "",
"wx_mini_openid": "",
"wx_unionid": "",
"is_permanent": 0,
"UpgradeAt": null,
"validity_at": null,
"validity": "",
"full_name": "",
"id_card": "",
"ali_account": "",
"remark": "",
"thousands_prices_id": 0,
"is_follow": 0
}
}
},
"purchase": {
"id": 7,
"app_name": "慧妍优选平台",
"member_id": 0,
"company_name": "慧妍优选平台",
"user": {
"id": 0,
"mobile": "",
"username": "",
"nickname": "",
"avatar": ""
}
},
"mall": {
"id": 0,
"application_id": 0,
"shop_name": "",
"callback_link": "",
"call_back_link_validity": 0,
"app_secret": "",
"is_message_pool": 0
},
"amount": "10.00", //消费金额
"card_balance": "282.07", //消费后会员卡余额
"device_name": "测试修改", //设备名称
"device_no": "868909070679587",//设备号
"amount_cent": 1000,
"card_balance_cent": 28207,
"water_volume_l": "0.00", 出水量(单位:毫升)
"consume_type_text": "刷卡支付",
"consume_type": 2, 消费类型 1 无卡,2 有卡
"holder_member_id": 1, //会员id
"holder_member_nickname": "18*******58", //会员
"holder_text": "[1]18*******58"//会员
}
],
"page": 1,
"page_size": 1,
"total": 206,
"total_consume_amount": 5015.08,
"total_consume_amount_cent": 501508
}
}
返回参数说明:
| 参数名 | 类型 | 说明 |
|---|---|---|
| data.card_no | string | 会员卡号 |
| data.amount | string | 消费金额) |
| data.card_balance | string | 消费后会员卡余额 ) |
| data.water_volume | string | 出水量(单位:毫升) |