|
|
@@ -2,6 +2,7 @@ package com.railway.business.bi.controller;
|
|
|
|
|
|
import com.railway.business.bi.domain.vo.ChartVO;
|
|
|
import com.railway.business.bi.service.IChartService;
|
|
|
+import com.railway.business.bi.service.IDetailService;
|
|
|
import com.railway.common.core.controller.BaseController;
|
|
|
import com.railway.common.core.domain.AjaxResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -24,12 +25,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class ChartController extends BaseController {
|
|
|
|
|
|
private final IChartService chartService;
|
|
|
+ private final IDetailService detailService;
|
|
|
|
|
|
- public ChartController(IChartService chartService) {
|
|
|
+ public ChartController(IChartService chartService, IDetailService detailService) {
|
|
|
this.chartService = chartService;
|
|
|
+ this.detailService = detailService;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "地图", notes = "获取地图上的图表数据")
|
|
|
+ @ApiOperation(value = "地图图表", notes = "获取地图上的图表数据")
|
|
|
@GetMapping("/map")
|
|
|
public AjaxResult getChartInMap() {
|
|
|
ChartVO info = chartService.getChartInMap();
|
|
|
@@ -38,6 +41,15 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "地图表格", notes = "获取地图上的表格数据")
|
|
|
+ @GetMapping("/map/table")
|
|
|
+ public AjaxResult getTableInMap() {
|
|
|
+ ChartVO info = chartService.getTableInMap();
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
+ ajax.put("info", info);
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "检修兑现情况", notes = "获取检修兑现情况图表数据")
|
|
|
@GetMapping("/jxdxqk")
|
|
|
public AjaxResult getChartJxdxqk() {
|
|
|
@@ -56,6 +68,15 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "检修本月兑现情况描述", notes = "获取检修本月兑现情况描述")
|
|
|
+ @GetMapping("/jxdxqkby/detail")
|
|
|
+ public AjaxResult getChartJxdxqkbyDetail() {
|
|
|
+ ChartVO info = detailService.getChartJxdxqkbyDetail();
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
+ ajax.put("info", info);
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "试验计划兑现情况", notes = "获取试验计划兑现情况图表数据")
|
|
|
@GetMapping("/syjhdxqk")
|
|
|
public AjaxResult getChartSyjhdxqk() {
|
|
|
@@ -110,6 +131,15 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "电力远动调试本月兑现情况描述", notes = "获取电力远动调试本月兑现情况描述")
|
|
|
+ @GetMapping("/dlydtsby/detail")
|
|
|
+ public AjaxResult getChartDlydtsbyDetail() {
|
|
|
+ ChartVO info = detailService.getChartDlydtsbyDetail();
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
+ ajax.put("info", info);
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "电力受电线路本月兑现情况", notes = "获取电力受电线路本月兑现情况图表数据")
|
|
|
@GetMapping("/dlsdxlby")
|
|
|
public AjaxResult getChartDlsdxlby() {
|
|
|
@@ -119,6 +149,15 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "电力受电线路本月兑现情况描述", notes = "获取电力受电线路本月兑现情况描述")
|
|
|
+ @GetMapping("/dlsdxlby/detail")
|
|
|
+ public AjaxResult getChartDlsdxlbyDetail() {
|
|
|
+ ChartVO info = detailService.getChartDlsdxlbyDetail();
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
+ ajax.put("info", info);
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "电力变配电所本月兑现情况", notes = "获取电力变配电所本月兑现情况图表数据")
|
|
|
@GetMapping("/dlbpdsby")
|
|
|
public AjaxResult getChartDlbpdsby() {
|
|
|
@@ -128,6 +167,15 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "电力变配电所本月兑现情况描述", notes = "获取电力变配电所本月兑现情况描述")
|
|
|
+ @GetMapping("/dlbpdsby/detail")
|
|
|
+ public AjaxResult getChartDlbpdsbyDetail() {
|
|
|
+ ChartVO info = detailService.getChartDlbpdsbyDetail();
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
+ ajax.put("info", info);
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "牵变、电力设备巡检兑现(本月)", notes = "获取牵变、电力设备巡检兑现(本月)图表数据")
|
|
|
@GetMapping("/qbdlsbxjdx")
|
|
|
public AjaxResult getChartQbdlsbxjdx() {
|