打水机-机主-机主设备列表详情(在列表使用的)

打水机-机主-机主设备列表详情(在列表使用的)

请求路由:

route= plugin.yz-supply-water-machine.frontend.business.device.listdetail

请求参数说明:

参数名 类型 是否必需 说明
device_no string 设备号
date_type int 0日 1月

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "id": 8,
        "device_no": "863434084696407", //设备号
        "name": "测试",
        "status": "0",
        "address": "",
        "province": "",
        "city": "",
        "district": "",
        "street": "",
        "soft_ver": "9",
        "activate_status": 1,
        "latest_heartbeat": {
            "id": 742,
            "created_at": 1773280214,
            "updated_at": 1773280214,
            "IMEI": "863434084696407",
            "Data": {
                "RawTds": 0,
                "PureTds": 0,
                "TempVal": 27, //温度
                "TempValRes": 0,
                "WaterState": 0,
                "WaterAmount": 0,
                "SoftwareVer": 0,
                "HardwareVer": 0,
                "Cxf": 0,
                "Zsb": 0,
                "Qsd": 0,
                "Gzf": 0,
                "Ggd": 1,
                "O3s": 0,
                "Wks": 0,
                "Zwd": 0,
                "WaterLevel": 2, //  |3:高;2:中;1或0:低        | 
                "DiState": 0,
                "iccid": "",
                "rfid": "",
                "RemainAmount": 0,
                "imei": "863434084696407",
                "Type": 100,
                "CmdType": 0,
                "FlowSn": 0,
                "Csq": 0,
                "TankCapacity": 0,
                "SoftVer": 0,
                "PriceCalib": 0,
                "TimeOneYuan": 0,
                "TimeOneLiter": 0,
                "ErrCode": "",
                "ActivateFlag": null
            }
        },
        "time_start": "2026-03-12 00:00:00",
        "time_end": "2026-03-12 23:59:59",
        "scan_amount": "0.00",  //扫码金额
        "swipe_amount": "0.00", //刷卡金额
        "total_amount": "0.00",
        "scan_amount_cent": 0,
        "swipe_amount_cent": 0,
        "total_amount_cent": 0
    }
}