|
@@ -1,6 +1,12 @@
|
|
|
package com.sky.ioc.controller.dashboard;
|
|
|
|
|
|
+import com.sky.ioc.service.energy.EnergyService;
|
|
|
+import com.sky.ioc.tool.ReturnMsg;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -9,8 +15,43 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* 智能看板 ---- 用电
|
|
|
*/
|
|
|
|
|
|
+
|
|
|
+@Api("智能看板----用电")
|
|
|
@Slf4j
|
|
|
@RestController
|
|
|
@RequestMapping("electricity")
|
|
|
public class ElectricityController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private EnergyService energyService;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("查询智能看板统计画像的用电核心指标")
|
|
|
+ @GetMapping("getElectricityCoreIndicators")
|
|
|
+ public ReturnMsg getElectricityCoreIndicators(){
|
|
|
+ return energyService.getElectricityCoreIndicators();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("查询智能看板统计画像的用电信息报表")
|
|
|
+ @GetMapping("getElectricityInfoList")
|
|
|
+ public ReturnMsg getElectricityInfoList(){
|
|
|
+ return energyService.getElectricityInfoList();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("查询智能看板统计画像的用电圆形信息报表")
|
|
|
+ @GetMapping("getElectricityCircleInfoList")
|
|
|
+ public ReturnMsg getElectricityCircleInfoList(){
|
|
|
+ return energyService.getElectricityCircleInfoList();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|