获取用能情况 websocket测试 POST localhost:8083/api/jzyn/tongji/tenant/YongNengQingKuang 接口描述 获取市平台级-用能情况 说明 / 示例 # 请求参数示例 ```json { "start": 1609430400000, "end": 1640966400000, "type": "month", "attribute": "electricity" } ``` 参数解释: - start:开始时间戳,传今年的第一天 - end:结束时间戳,传明年的第一天 - type:固定传`month` - attribute:查询的能耗种类,水:water;电:electricity;气:tianranqiqitai; # 返回值示例 ```json { "dayEnergy": 209.23, "monthEnergy": 6999.27, "yearEnergy": 6999.27, "dayEnergyCompared": 327.97, "monthEnergyCompared": 0, "yearEnergyCompared": 0, "dayEnergyPrice": 0, "monthEnergyPrice": 8399.12, "yearEnergyPrice": 8399.12, "dayEnergyPriceCompared": 0, "monthEnergyPriceCompared": 0, "yearEnergyPriceCompared": 0, "coalRatioYearEnergy": 0, "coalRatioMonthEnergy": 0, "coalRatioDayEnergy": 0, "coalRatioYearEnergyCompared": 0, "coalRatioMonthEnergyCompared": 0, "coalRatioDayEnergyCompared": 0 } ``` 字段解释 - dayEnergy:今日用电数 - monthEnergy:本月用电数 - yearEnergy:本年用电数 - dayEnergyCompared:昨日用电数,用与计算同期增长情况,公式:`(今日用电数-昨日用电数)/昨日用电数` - monthEnergyCompared:上月用电数,用与计算同期增长情况,公式:`(本月用电数-上月用电数)/上月用电数` - yearEnergyCompared:去年用电数,用与计算同期增长情况,公式:`(本年用电数-去年用电数)/去年用电数` - dayEnergyPrice:今日用电费用 - monthEnergyPrice:本月用电费用 - yearEnergyPrice:本年用电费用 - dayEnergyPriceCompared:昨日用电费用,用与计算同期增长情况,公式:`(今日用电费用-昨日用电费用)/昨日用电费用` - monthEnergyPriceCompared:上月用电费用,用与计算同期增长情况,公式:`(本月用电费用-上月用电费用)/上月用电数` - yearEnergyPriceCompared:去年用电费用,用与计算同期增长情况,公式:`(本年用电费用-去年用电费用)/去年用电费用` - coalRatioYearEnergy:今年折标媒 - coalRatioMonthEnergy:本月折标媒 - coalRatioDayEnergy:今日折标媒 - coalRatioYearEnergyCompared:去年折标媒,用与计算同期增长情况,公式:`(本年折标媒-去年折标媒)/去年折标媒` - coalRatioMonthEnergyCompared:上月折标媒,用与计算同期增长情况,公式:`(本月折标媒-上月折标媒)/上月折标媒` - coalRatioDayEnergyCompared:昨日折标媒,用与计算同期增长情况,公式:`(今日折标媒-昨日折标媒)/昨日折标媒`
# 请求参数示例 ```json { "start": 1609430400000, "end": 1640966400000, "type": "month", "attribute": "electricity" } ``` 参数解释: - start:开始时间戳,传今年的第一天 - end:结束时间戳,传明年的第一天 - type:固定传`month` - attribute:查询的能耗种类,水:water;电:electricity;气:tianranqiqitai; # 返回值示例 ```json { "dayEnergy": 209.23, "monthEnergy": 6999.27, "yearEnergy": 6999.27, "dayEnergyCompared": 327.97, "monthEnergyCompared": 0, "yearEnergyCompared": 0, "dayEnergyPrice": 0, "monthEnergyPrice": 8399.12, "yearEnergyPrice": 8399.12, "dayEnergyPriceCompared": 0, "monthEnergyPriceCompared": 0, "yearEnergyPriceCompared": 0, "coalRatioYearEnergy": 0, "coalRatioMonthEnergy": 0, "coalRatioDayEnergy": 0, "coalRatioYearEnergyCompared": 0, "coalRatioMonthEnergyCompared": 0, "coalRatioDayEnergyCompared": 0 } ``` 字段解释 - dayEnergy:今日用电数 - monthEnergy:本月用电数 - yearEnergy:本年用电数 - dayEnergyCompared:昨日用电数,用与计算同期增长情况,公式:`(今日用电数-昨日用电数)/昨日用电数` - monthEnergyCompared:上月用电数,用与计算同期增长情况,公式:`(本月用电数-上月用电数)/上月用电数` - yearEnergyCompared:去年用电数,用与计算同期增长情况,公式:`(本年用电数-去年用电数)/去年用电数` - dayEnergyPrice:今日用电费用 - monthEnergyPrice:本月用电费用 - yearEnergyPrice:本年用电费用 - dayEnergyPriceCompared:昨日用电费用,用与计算同期增长情况,公式:`(今日用电费用-昨日用电费用)/昨日用电费用` - monthEnergyPriceCompared:上月用电费用,用与计算同期增长情况,公式:`(本月用电费用-上月用电费用)/上月用电数` - yearEnergyPriceCompared:去年用电费用,用与计算同期增长情况,公式:`(本年用电费用-去年用电费用)/去年用电费用` - coalRatioYearEnergy:今年折标媒 - coalRatioMonthEnergy:本月折标媒 - coalRatioDayEnergy:今日折标媒 - coalRatioYearEnergyCompared:去年折标媒,用与计算同期增长情况,公式:`(本年折标媒-去年折标媒)/去年折标媒` - coalRatioMonthEnergyCompared:上月折标媒,用与计算同期增长情况,公式:`(本月折标媒-上月折标媒)/上月折标媒` - coalRatioDayEnergyCompared:昨日折标媒,用与计算同期增长情况,公式:`(今日折标媒-昨日折标媒)/昨日折标媒`