用电分析_2 websocket测试 POST localhost:8083/api/jzyn/tongji/YongDianFenXi_2 接口描述 按年月日查询单位面积能耗,人均能耗。或者查询人均水耗 说明 / 示例 ## 请求参数示例 ```json { "type": "month", "attribute": "electricity" } ``` 字段解释 - type:按日查:day;按月查:month;按年查:year - attribute:传`electricity`则查询单位面积能耗和人均能耗。传`water`则查询人均水耗 ## 查询单位面积能耗和人均能耗示例 ```json { "yearBeforeLastAreaAvg": 0, "lastYearAreaAvg": 0, "yearAreaAvg": 0.61, "yearBeforeLastConsumptionAvg": 0, "lastYearConsumptionAvg": 0, "yearConsumptionAvg": 1002.06, "yearBeforeLastTotal": 0, "lastYearTotal": 0, "yearTotal": 7014.3985742187504 } ``` 字段解释 - yearBeforeLastAreaAvg:前年的面积单耗/水耗 - lastYearAreaAvg:去年的面积单耗/水耗 - yearAreaAvg:今年的面积单耗/水耗 - yearBeforeLastConsumptionAvg:前年的人均耗能/水耗 - lastYearConsumptionAvg:去年的人均耗能/水耗 - yearConsumptionAvg:今年的人均耗能/水耗 - yearBeforeLastTotal:前年的总能耗/水耗 - lastYearTotal:去年的总能耗/水耗 - yearTotal:今年的总能耗/水耗
## 请求参数示例 ```json { "type": "month", "attribute": "electricity" } ``` 字段解释 - type:按日查:day;按月查:month;按年查:year - attribute:传`electricity`则查询单位面积能耗和人均能耗。传`water`则查询人均水耗 ## 查询单位面积能耗和人均能耗示例 ```json { "yearBeforeLastAreaAvg": 0, "lastYearAreaAvg": 0, "yearAreaAvg": 0.61, "yearBeforeLastConsumptionAvg": 0, "lastYearConsumptionAvg": 0, "yearConsumptionAvg": 1002.06, "yearBeforeLastTotal": 0, "lastYearTotal": 0, "yearTotal": 7014.3985742187504 } ``` 字段解释 - yearBeforeLastAreaAvg:前年的面积单耗/水耗 - lastYearAreaAvg:去年的面积单耗/水耗 - yearAreaAvg:今年的面积单耗/水耗 - yearBeforeLastConsumptionAvg:前年的人均耗能/水耗 - lastYearConsumptionAvg:去年的人均耗能/水耗 - yearConsumptionAvg:今年的人均耗能/水耗 - yearBeforeLastTotal:前年的总能耗/水耗 - lastYearTotal:去年的总能耗/水耗 - yearTotal:今年的总能耗/水耗