文档
测试

获取能耗趋势

POST
localhost:8083/api/jzyn/tongji/tenant/YongDianQuShi

接口描述

获取市平台级-用能情况

说明 / 示例

## 请求参数示例 ```json { "start": 1609430400000, "end": 1612108800000, "type": "day", "queryType":"2", "attribute": "electricity" } ``` 字段解释 - start:开始时间,如果type是day就传本月第一天,如果是month,就传本年的第一个月 - end:结束时间,如果type是day就传下个月第一天,如果是month,就传明年的第一个月 - type:默认传:month - attribute:传electricity ## 返回值示例 ```json { "electricity": { "2021-01-01": 79.59, "2021-01-02": 86.74, "2021-01-03": 132.02, "2021-01-04": 352.89, "2021-01-05": 340.15, "2021-01-06": 345.44, "2021-01-07": 378.75, "2021-01-08": 374.32, "2021-01-09": 129.95, "2021-01-10": 155.25, "2021-01-11": 373.53, "2021-01-12": 356, "2021-01-13": 394.91, "2021-01-14": 367.5, "2021-01-15": 329.87, "2021-01-16": 117.25, "2021-01-17": 119.01, "2021-01-18": 388.75, "2021-01-19": 371.35, "2021-01-20": 343.82, "2021-01-21": 329.95, "2021-01-22": 317.24, "2021-01-23": 120.12, "2021-01-24": 157.67, "2021-01-25": 327.97, "2021-01-26": 236.58, "2021-01-27": null, "2021-01-28": null, "2021-01-29": null, "2021-01-30": null, "2021-01-31": null } } ```