|
|
@@ -7,13 +7,12 @@ 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 com.railway.common.utils.LocalDateUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
-import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
/**
|
|
|
@@ -37,26 +36,25 @@ public class ChartController extends BaseController {
|
|
|
this.detailService = detailService;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "重要待办事项", notes = "重要待办事项")
|
|
|
+ @ApiOperation(value = "首页-重要待办事项", notes = "重要待办事项")
|
|
|
@GetMapping("/todoList")
|
|
|
- public AjaxResult todoList() {
|
|
|
- TodoListVO info = chartService.todoList();
|
|
|
+ public AjaxResult todoList(@RequestParam(value = "date", required = false) String date) {
|
|
|
+ TodoListVO info = chartService.todoList(date);
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
ajax.put("info", info);
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "地图图表", notes = "获取地图上的图表数据")
|
|
|
+ @ApiOperation(value = "首页-地图图表", notes = "获取地图上的图表数据")
|
|
|
@GetMapping("/map")
|
|
|
public AjaxResult getChartInMap() {
|
|
|
- String date = LocalDateUtil.dateTime(new Date());
|
|
|
- List<ChartVO> info = chartService.getChartInMap(date);
|
|
|
+ List<ChartVO> info = chartService.getChartInMap();
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
ajax.put("info", info);
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "地图表格", notes = "获取地图上的表格数据")
|
|
|
+ @ApiOperation(value = "首页-地图表格", notes = "获取地图上的表格数据")
|
|
|
@GetMapping("/map/table")
|
|
|
public AjaxResult getTableInMap() {
|
|
|
ChartVO info = chartService.getTableInMap();
|
|
|
@@ -65,7 +63,7 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "检修兑现情况", notes = "获取检修兑现情况图表数据")
|
|
|
+ @ApiOperation(value = "首页-检修兑现情况", notes = "获取检修兑现情况图表数据")
|
|
|
@GetMapping("/jxdxqk")
|
|
|
public AjaxResult getChartJxdxqk() {
|
|
|
ChartVO info = chartService.getChartJxdxqk();
|
|
|
@@ -92,7 +90,7 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "试验计划兑现情况", notes = "获取试验计划兑现情况图表数据")
|
|
|
+ @ApiOperation(value = "首页-试验计划兑现情况", notes = "获取试验计划兑现情况图表数据")
|
|
|
@GetMapping("/syjhdxqk")
|
|
|
public AjaxResult getChartSyjhdxqk() {
|
|
|
ChartVO info = chartService.getChartSyjhdxqk();
|
|
|
@@ -110,7 +108,7 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "电力远动调试", notes = "获取电力远动调试图表数据")
|
|
|
+ @ApiOperation(value = "首页-电力远动调试", notes = "获取电力远动调试图表数据")
|
|
|
@GetMapping("/dlydts")
|
|
|
public AjaxResult getChartDlydts() {
|
|
|
ChartVO info = chartService.getChartDlydts();
|
|
|
@@ -119,7 +117,7 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "电力受电线路", notes = "获取电力受电线路图表数据")
|
|
|
+ @ApiOperation(value = "首页-电力受电线路", notes = "获取电力受电线路图表数据")
|
|
|
@GetMapping("/dlsdxl")
|
|
|
public AjaxResult getChartDlsdxl() {
|
|
|
ChartVO info = chartService.getChartDlsdxl();
|
|
|
@@ -128,7 +126,7 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "电力变配电所", notes = "获取电力变配电所图表数据")
|
|
|
+ @ApiOperation(value = "首页-电力变配电所", notes = "获取电力变配电所图表数据")
|
|
|
@GetMapping("/dlbpds")
|
|
|
public AjaxResult getChartDlbpds() {
|
|
|
ChartVO info = chartService.getChartDlbpds();
|
|
|
@@ -191,10 +189,10 @@ public class ChartController extends BaseController {
|
|
|
return ajax;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "牵变、电力设备巡检兑现(本月)", notes = "获取牵变、电力设备巡检兑现(本月)图表数据")
|
|
|
+ @ApiOperation(value = "首页-牵变、电力设备巡检兑现(本月)", notes = "获取牵变、电力设备巡检兑现(本月)图表数据")
|
|
|
@GetMapping("/qbdlsbxjdx")
|
|
|
- public AjaxResult getChartQbdlsbxjdx() {
|
|
|
- ChartVO info = chartService.getChartQbdlsbxjdx();
|
|
|
+ public AjaxResult getChartQbdlsbxjdx(@RequestParam(value = "date", required = false) String date) {
|
|
|
+ ChartVO info = chartService.getChartQbdlsbxjdx(date);
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
|
ajax.put("info", info);
|
|
|
return ajax;
|