Przeglądaj źródła

【CHG】增加测试数据

zhaomn 2 lat temu
rodzic
commit
86a52b5098

+ 5 - 4
railway-business/src/main/java/com/railway/business/bi/controller/ChartController.java

@@ -1,5 +1,6 @@
 package com.railway.business.bi.controller;
 
+import com.railway.business.bi.domain.vo.ChartMsgVO;
 import com.railway.business.bi.domain.vo.ChartVO;
 import com.railway.business.bi.domain.vo.TodoListVO;
 import com.railway.business.bi.service.IChartService;
@@ -82,7 +83,7 @@ public class ChartController extends BaseController {
   @ApiOperation(value = "检修本月兑现情况描述", notes = "获取检修本月兑现情况描述")
   @GetMapping("/jxdxqkby/detail")
   public AjaxResult getChartJxdxqkbyDetail() {
-    ChartVO info = detailService.getChartJxdxqkbyDetail();
+    ChartMsgVO info = detailService.getChartJxdxqkbyDetail();
     AjaxResult ajax = AjaxResult.success();
     ajax.put("info", info);
     return ajax;
@@ -145,7 +146,7 @@ public class ChartController extends BaseController {
   @ApiOperation(value = "电力远动调试本月兑现情况描述", notes = "获取电力远动调试本月兑现情况描述")
   @GetMapping("/dlydtsby/detail")
   public AjaxResult getChartDlydtsbyDetail() {
-    ChartVO info = detailService.getChartDlydtsbyDetail();
+    ChartMsgVO info = detailService.getChartDlydtsbyDetail();
     AjaxResult ajax = AjaxResult.success();
     ajax.put("info", info);
     return ajax;
@@ -163,7 +164,7 @@ public class ChartController extends BaseController {
   @ApiOperation(value = "电力受电线路本月兑现情况描述", notes = "获取电力受电线路本月兑现情况描述")
   @GetMapping("/dlsdxlby/detail")
   public AjaxResult getChartDlsdxlbyDetail() {
-    ChartVO info = detailService.getChartDlsdxlbyDetail();
+    ChartMsgVO info = detailService.getChartDlsdxlbyDetail();
     AjaxResult ajax = AjaxResult.success();
     ajax.put("info", info);
     return ajax;
@@ -181,7 +182,7 @@ public class ChartController extends BaseController {
   @ApiOperation(value = "电力变配电所本月兑现情况描述", notes = "获取电力变配电所本月兑现情况描述")
   @GetMapping("/dlbpdsby/detail")
   public AjaxResult getChartDlbpdsbyDetail() {
-    ChartVO info = detailService.getChartDlbpdsbyDetail();
+    ChartMsgVO info = detailService.getChartDlbpdsbyDetail();
     AjaxResult ajax = AjaxResult.success();
     ajax.put("info", info);
     return ajax;

+ 33 - 0
railway-business/src/main/java/com/railway/business/bi/domain/vo/ChartMsgVO.java

@@ -0,0 +1,33 @@
+package com.railway.business.bi.domain.vo;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.Serializable;
+import java.util.List;
+import lombok.Data;
+
+/**
+ * 大屏展示-兑现情况描述
+ *
+ * @author ZhaoMn 2023-02-06
+ */
+@Data
+@ApiModel("大屏展示-兑现情况描述")
+public class ChartMsgVO implements Serializable {
+
+  @ApiModelProperty(value = "本月已完成数")
+  private Integer byywc;
+
+  @ApiModelProperty(value = "本月未完成数")
+  private Integer bywwc;
+
+  @ApiModelProperty(value = "下月计划完成数")
+  private Integer xyjhwc;
+
+  @ApiModelProperty(value = "年度剩余数")
+  private Integer ndsys;
+
+  @ApiModelProperty(value = "未完成明细")
+  private List<String> wwcmx;
+
+}

+ 5 - 4
railway-business/src/main/java/com/railway/business/bi/service/IDetailService.java

@@ -1,5 +1,6 @@
 package com.railway.business.bi.service;
 
+import com.railway.business.bi.domain.vo.ChartMsgVO;
 import com.railway.business.bi.domain.vo.ChartVO;
 
 /**
@@ -16,24 +17,24 @@ public interface IDetailService {
      * 获取检修本月兑现情况描述
      * @return 图表数据对象
      */
-    ChartVO getChartJxdxqkbyDetail();
+    ChartMsgVO getChartJxdxqkbyDetail();
 
     /**
      * 获取电力远动调试本月兑现情况描述
      * @return 图表数据对象
      */
-    ChartVO getChartDlydtsbyDetail();
+    ChartMsgVO getChartDlydtsbyDetail();
 
     /**
      * 获取电力受电线路本月兑现情况描述
      * @return 图表数据对象
      */
-    ChartVO getChartDlsdxlbyDetail();
+    ChartMsgVO getChartDlsdxlbyDetail();
 
     /**
      * 获取电力变配电所本月兑现情况描述
      * @return 图表数据对象
      */
-    ChartVO getChartDlbpdsbyDetail();
+    ChartMsgVO getChartDlbpdsbyDetail();
 
 }

+ 89 - 37
railway-business/src/main/java/com/railway/business/bi/service/impl/DetailServiceImpl.java

@@ -1,7 +1,9 @@
 package com.railway.business.bi.service.impl;
 
-import com.railway.business.bi.domain.vo.ChartVO;
+import com.railway.business.bi.domain.vo.ChartMsgVO;
 import com.railway.business.bi.service.IDetailService;
+import java.util.ArrayList;
+import java.util.List;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 
@@ -17,44 +19,94 @@ import org.springframework.stereotype.Service;
 @Service
 public class DetailServiceImpl implements IDetailService {
 
-    /**
-     * 获取检修本月兑现情况描述
-     *
-     * @return 图表数据对象
-     */
-    @Override
-    public ChartVO getChartJxdxqkbyDetail() {
-        return null;
-    }
+  /**
+   * 获取检修本月兑现情况描述
+   *
+   * @return 图表数据对象
+   */
+  @Override
+  public ChartMsgVO getChartJxdxqkbyDetail() {
+    ChartMsgVO chartMsg = new ChartMsgVO();
+    chartMsg.setByywc(4);
+    chartMsg.setBywwc(3);
+    chartMsg.setXyjhwc(0);
+    chartMsg.setNdsys(0);
+    List<String> wwcmx = new ArrayList<>();
+    wwcmx.add("长春西牵引变电所");
+    wwcmx.add("英安河AT所");
+    wwcmx.add("珲春分区所");
+    chartMsg.setWwcmx(wwcmx);
+    return chartMsg;
+  }
 
-    /**
-     * 获取电力远动调试本月兑现情况描述
-     *
-     * @return 图表数据对象
-     */
-    @Override
-    public ChartVO getChartDlydtsbyDetail() {
-        return null;
-    }
+  /**
+   * 获取电力远动调试本月兑现情况描述
+   *
+   * @return 图表数据对象
+   */
+  @Override
+  public ChartMsgVO getChartDlydtsbyDetail() {
+    ChartMsgVO chartMsg = new ChartMsgVO();
+    chartMsg.setByywc(4);
+    chartMsg.setBywwc(8);
+    chartMsg.setXyjhwc(0);
+    chartMsg.setNdsys(0);
+    List<String> wwcmx = new ArrayList<>();
+    wwcmx.add("吉蛟03号箱变(吉林隧道)");
+    wwcmx.add("吉蛟13号箱变(吉林隧道)");
+    wwcmx.add("吉蛟12号箱变(草木沟隧道)");
+    wwcmx.add("吉蛟33号箱变(草木沟隧道)");
+    wwcmx.add("吉蛟56号箱变(草木沟隧道)");
+    wwcmx.add("吉蛟20号箱变(拉法山隧道)");
+    wwcmx.add("吉蛟21号箱变(拉法山隧道)");
+    wwcmx.add("吉蛟22号箱变(拉法山隧道)");
+    chartMsg.setWwcmx(wwcmx);
+    return chartMsg;
+  }
 
-    /**
-     * 获取电力受电线路本月兑现情况描述
-     *
-     * @return 图表数据对象
-     */
-    @Override
-    public ChartVO getChartDlsdxlbyDetail() {
-        return null;
-    }
+  /**
+   * 获取电力受电线路本月兑现情况描述
+   *
+   * @return 图表数据对象
+   */
+  @Override
+  public ChartMsgVO getChartDlsdxlbyDetail() {
+    ChartMsgVO chartMsg = new ChartMsgVO();
+    chartMsg.setByywc(0);
+    chartMsg.setBywwc(7);
+    chartMsg.setXyjhwc(12);
+    chartMsg.setNdsys(12);
+    List<String> wwcmx = new ArrayList<>();
+    wwcmx.add("四平东10KV配电所(一面城线)");
+    wwcmx.add("公主岭南10KV配电所(岭南线)");
+    wwcmx.add("龙嘉10KV配电所(东湖)");
+    wwcmx.add("安图西10KV配电所");
+    wwcmx.add("长春10KV配电所");
+    wwcmx.add("图门北10KV配电所");
+    wwcmx.add("双击10KV配电所");
+    chartMsg.setWwcmx(wwcmx);
+    return chartMsg;
+  }
 
-    /**
-     * 获取电力变配电所本月兑现情况描述
-     *
-     * @return 图表数据对象
-     */
-    @Override
-    public ChartVO getChartDlbpdsbyDetail() {
-        return null;
-    }
+  /**
+   * 获取电力变配电所本月兑现情况描述
+   *
+   * @return 图表数据对象
+   */
+  @Override
+  public ChartMsgVO getChartDlbpdsbyDetail() {
+    ChartMsgVO chartMsg = new ChartMsgVO();
+    chartMsg.setByywc(0);
+    chartMsg.setBywwc(4);
+    chartMsg.setXyjhwc(0);
+    chartMsg.setNdsys(0);
+    List<String> wwcmx = new ArrayList<>();
+    wwcmx.add("长春西动车所1号10kV配电所");
+    wwcmx.add("长春西动车所2号10kV配电所");
+    wwcmx.add("长白山动车库配电所");
+    wwcmx.add("扶余北10kV配电所");
+    chartMsg.setWwcmx(wwcmx);
+    return chartMsg;
+  }
 
 }