文档
测试

查询电表数据

POST
{{host}}/api/data_electricity_meter/limitByLevel

请求参数

参数名
类型
描述
必填
level_id
int
层级ID(配电箱ID,eg:104)
必填

响应参数

参数名
类型
描述
必填
ret
int
返回码:0-正常,非0-失败
必填
msg
string
返回消息
必填
result
array
返回数据
必填
energy_level_id
int
分项层级ID
必填
energy_level_name
int
分项层级名称
必填
power_level_id
string
电能层级ID
必填
power_level_name
int
电能层级名称
必填
data_id
time
数据ID
必填
device_id
string
设备ID
必填
device_type
string
设备类型
必填
task_id
int
定时任务ID
必填
create_time
datetime
数据创建时间
必填
电能参数
详见:https://xxhy1a.yuque.com/xxhy1a/rlra35/kryiad/edit#kz1T
可选

说明 / 示例

###### 示例代码 ```javascript //请求 let res = await post("api/data_electricity_meter/limitByLevel", { level_id: 1 }) //返回 res = { "ret": 0, "msg": "查询成功", "result": [ { "energy_level_id": 189, "energy_level_name": "电", "power_level_id": 186, "power_level_name": "出线总表", "data_id": 3, "device_id": 1253, "device_type": "ThreePhase_DistributionRoom", "task_id": 31, "create_time": "2021-07-06T02:06:19.000Z", "P": 11.01, "Pa": 11.01, "Pb": 11.01, "Pc": 11.01, "U": 11.01, "Ua": 11.01, "Ub": 11.01, "Uc": 11.01, "I": 11.01, "Ia": 11.01, "Ib": 11.01, "Ic": 11.01, "In": 22.02, "Q": 11.01, "Qa": 11.01, "Qb": 11.01, "Qc": 11.01, "S": 11.01, "Sa": 11.01, "Sb": 11.01, "Sc": 11.01, "Pf": 11.01, "Pfa": 11.01, "Pfb": 11.01, "Pfc": 11.01, "Uab": 11.01, "Ubc": 11.01, "Uca": 11.01, "Fr": 11.01, "Fra": 11.01, "Frb": 11.01, "Frc": 11.01, "P+": 11.01, "P-": 11.01, "Q+": 11.01, "Q-": 11.01, "P+high": null, "P+low": null, "P-high": null, "P-low": null, "Q+high": null, "Q+low": null, "Q-high": null, "Q-low": null }, { "energy_level_id": 189, "energy_level_name": "电", "power_level_id": 187, "power_level_name": "地源热泵空调", "data_id": 7, "device_id": 2, "device_type": "SinglePhase_DistributionRoom", "task_id": 31, "create_time": "2021-07-05T16:06:19.000Z", "P": 1, "Pa": null, "Pb": null, "Pc": null, "U": 1, "Ua": null, "Ub": null, "Uc": null, "I": 1, "Ia": null, "Ib": null, "Ic": null, "In": 22.02, "Q": 1, "Qa": null, "Qb": null, "Qc": null, "S": 1, "Sa": null, "Sb": null, "Sc": null, "Pf": 1, "Pfa": null, "Pfb": null, "Pfc": null, "Uab": null, "Ubc": null, "Uca": null, "Fr": 1, "Fra": null, "Frb": null, "Frc": null, "P+": 1, "P-": 1, "Q+": 1, "Q-": 1, "P+high": null, "P+low": null, "P-high": null, "P-low": null, "Q+high": null, "Q+low": null, "Q-high": null, "Q-low": null } ] } ```