|
@@ -5,10 +5,12 @@ import com.railway.business.bi.domain.dto.SeriesDTO;
|
|
|
import com.railway.business.bi.domain.vo.ChartVO;
|
|
import com.railway.business.bi.domain.vo.ChartVO;
|
|
|
import com.railway.business.bi.domain.vo.SbxjVO;
|
|
import com.railway.business.bi.domain.vo.SbxjVO;
|
|
|
import com.railway.business.bi.domain.vo.TodoListVO;
|
|
import com.railway.business.bi.domain.vo.TodoListVO;
|
|
|
-import com.railway.business.bi.domain.vo.YdtsTotalVO;
|
|
|
|
|
|
|
+import com.railway.business.bi.domain.vo.QuarterTotalVO;
|
|
|
import com.railway.business.bi.mapper.ShowBdycMapper;
|
|
import com.railway.business.bi.mapper.ShowBdycMapper;
|
|
|
import com.railway.business.bi.mapper.ShowBpdjxjhMapper;
|
|
import com.railway.business.bi.mapper.ShowBpdjxjhMapper;
|
|
|
import com.railway.business.bi.mapper.ShowDlycMapper;
|
|
import com.railway.business.bi.mapper.ShowDlycMapper;
|
|
|
|
|
+import com.railway.business.bi.mapper.ShowGsdMapper;
|
|
|
|
|
+import com.railway.business.bi.mapper.ShowGsyMapper;
|
|
|
import com.railway.business.bi.mapper.ShowSbxjMapper;
|
|
import com.railway.business.bi.mapper.ShowSbxjMapper;
|
|
|
import com.railway.business.bi.mapper.ShowYdtsMapper;
|
|
import com.railway.business.bi.mapper.ShowYdtsMapper;
|
|
|
import com.railway.business.bi.service.IChartService;
|
|
import com.railway.business.bi.service.IChartService;
|
|
@@ -39,14 +41,19 @@ public class ChartServiceImpl implements IChartService {
|
|
|
private final ShowBpdjxjhMapper bpdjxjhMapper;
|
|
private final ShowBpdjxjhMapper bpdjxjhMapper;
|
|
|
private final ShowSbxjMapper sbxjMapper;
|
|
private final ShowSbxjMapper sbxjMapper;
|
|
|
private final ShowYdtsMapper ydtsMapper;
|
|
private final ShowYdtsMapper ydtsMapper;
|
|
|
|
|
+ private final ShowGsdMapper gsdMapper;
|
|
|
|
|
+ private final ShowGsyMapper gsyMapper;
|
|
|
|
|
|
|
|
public ChartServiceImpl(ShowBdycMapper bdycMapper, ShowDlycMapper dlycMapper,
|
|
public ChartServiceImpl(ShowBdycMapper bdycMapper, ShowDlycMapper dlycMapper,
|
|
|
- ShowBpdjxjhMapper bpdjxjhMapper, ShowSbxjMapper sbxjMapper, ShowYdtsMapper ydtsMapper) {
|
|
|
|
|
|
|
+ ShowBpdjxjhMapper bpdjxjhMapper, ShowSbxjMapper sbxjMapper, ShowYdtsMapper ydtsMapper,
|
|
|
|
|
+ ShowGsdMapper gsdMapper, ShowGsyMapper gsyMapper) {
|
|
|
this.bdycMapper = bdycMapper;
|
|
this.bdycMapper = bdycMapper;
|
|
|
this.dlycMapper = dlycMapper;
|
|
this.dlycMapper = dlycMapper;
|
|
|
this.bpdjxjhMapper = bpdjxjhMapper;
|
|
this.bpdjxjhMapper = bpdjxjhMapper;
|
|
|
this.sbxjMapper = sbxjMapper;
|
|
this.sbxjMapper = sbxjMapper;
|
|
|
this.ydtsMapper = ydtsMapper;
|
|
this.ydtsMapper = ydtsMapper;
|
|
|
|
|
+ this.gsdMapper = gsdMapper;
|
|
|
|
|
+ this.gsyMapper = gsyMapper;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -321,26 +328,8 @@ public class ChartServiceImpl implements IChartService {
|
|
|
@Override
|
|
@Override
|
|
|
public ChartVO getChartDlydts() {
|
|
public ChartVO getChartDlydts() {
|
|
|
List<String> xAxis = createYearAxis();
|
|
List<String> xAxis = createYearAxis();
|
|
|
-
|
|
|
|
|
- YdtsTotalVO ydtsTotal = ydtsMapper.getYdtsTotal();
|
|
|
|
|
- List<Integer> jhData = new ArrayList<>();
|
|
|
|
|
- jhData.add(ydtsTotal.getPlan1());
|
|
|
|
|
- jhData.add(ydtsTotal.getPlan2());
|
|
|
|
|
- jhData.add(ydtsTotal.getPlan3());
|
|
|
|
|
- jhData.add(ydtsTotal.getPlan4());
|
|
|
|
|
-
|
|
|
|
|
- List<Integer> wcData = new ArrayList<>();
|
|
|
|
|
- wcData.add(ydtsTotal.getActual1());
|
|
|
|
|
- wcData.add(ydtsTotal.getActual2());
|
|
|
|
|
- wcData.add(ydtsTotal.getActual3());
|
|
|
|
|
- wcData.add(ydtsTotal.getActual4());
|
|
|
|
|
-
|
|
|
|
|
- List<SeriesDTO> series = new ArrayList<>();
|
|
|
|
|
- SeriesDTO jh = createSeriesDTO(xAxis, jhData, "计划");
|
|
|
|
|
- SeriesDTO wc = createSeriesDTO(xAxis, wcData, "完成");
|
|
|
|
|
- series.add(jh);
|
|
|
|
|
- series.add(wc);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ QuarterTotalVO ydtsTotal = ydtsMapper.getYdtsTotal();
|
|
|
|
|
+ List<SeriesDTO> series = getChartQuarterTotal(xAxis, ydtsTotal);
|
|
|
String name = "电力远动调试";
|
|
String name = "电力远动调试";
|
|
|
return createChartVO(xAxis, series, name);
|
|
return createChartVO(xAxis, series, name);
|
|
|
}
|
|
}
|
|
@@ -352,27 +341,9 @@ public class ChartServiceImpl implements IChartService {
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public ChartVO getChartDlsdxl() {
|
|
public ChartVO getChartDlsdxl() {
|
|
|
- // TODO
|
|
|
|
|
List<String> xAxis = createYearAxis();
|
|
List<String> xAxis = createYearAxis();
|
|
|
-
|
|
|
|
|
- List<Integer> jhData = new ArrayList<>();
|
|
|
|
|
- jhData.add(9);
|
|
|
|
|
- jhData.add(10);
|
|
|
|
|
- jhData.add(15);
|
|
|
|
|
- jhData.add(6);
|
|
|
|
|
-
|
|
|
|
|
- List<Integer> wcData = new ArrayList<>();
|
|
|
|
|
- wcData.add(9);
|
|
|
|
|
- wcData.add(11);
|
|
|
|
|
- wcData.add(13);
|
|
|
|
|
- wcData.add(5);
|
|
|
|
|
-
|
|
|
|
|
- List<SeriesDTO> series = new ArrayList<>();
|
|
|
|
|
- SeriesDTO jh = createSeriesDTO(xAxis, jhData, "计划");
|
|
|
|
|
- SeriesDTO wc = createSeriesDTO(xAxis, wcData, "完成");
|
|
|
|
|
- series.add(jh);
|
|
|
|
|
- series.add(wc);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ QuarterTotalVO gsdTotal = gsdMapper.getGsdTotal();
|
|
|
|
|
+ List<SeriesDTO> series = getChartQuarterTotal(xAxis, gsdTotal);
|
|
|
String name = "电力受电线路";
|
|
String name = "电力受电线路";
|
|
|
return createChartVO(xAxis, series, name);
|
|
return createChartVO(xAxis, series, name);
|
|
|
}
|
|
}
|
|
@@ -384,29 +355,32 @@ public class ChartServiceImpl implements IChartService {
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
public ChartVO getChartDlbpds() {
|
|
public ChartVO getChartDlbpds() {
|
|
|
- // TODO
|
|
|
|
|
List<String> xAxis = createYearAxis();
|
|
List<String> xAxis = createYearAxis();
|
|
|
|
|
+ QuarterTotalVO gsyTotal = gsyMapper.getGsyTotal();
|
|
|
|
|
+ List<SeriesDTO> series = getChartQuarterTotal(xAxis, gsyTotal);
|
|
|
|
|
+ String name = "电力变配电所";
|
|
|
|
|
+ return createChartVO(xAxis, series, name);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ private List<SeriesDTO> getChartQuarterTotal(List<String> xAxis, QuarterTotalVO total){
|
|
|
List<Integer> jhData = new ArrayList<>();
|
|
List<Integer> jhData = new ArrayList<>();
|
|
|
- jhData.add(6);
|
|
|
|
|
- jhData.add(7);
|
|
|
|
|
- jhData.add(7);
|
|
|
|
|
- jhData.add(6);
|
|
|
|
|
|
|
+ jhData.add(total.getPlan1());
|
|
|
|
|
+ jhData.add(total.getPlan2());
|
|
|
|
|
+ jhData.add(total.getPlan3());
|
|
|
|
|
+ jhData.add(total.getPlan4());
|
|
|
|
|
|
|
|
List<Integer> wcData = new ArrayList<>();
|
|
List<Integer> wcData = new ArrayList<>();
|
|
|
- wcData.add(6);
|
|
|
|
|
- wcData.add(8);
|
|
|
|
|
- wcData.add(6);
|
|
|
|
|
- wcData.add(3);
|
|
|
|
|
|
|
+ wcData.add(total.getActual1());
|
|
|
|
|
+ wcData.add(total.getActual2());
|
|
|
|
|
+ wcData.add(total.getActual3());
|
|
|
|
|
+ wcData.add(total.getActual4());
|
|
|
|
|
|
|
|
List<SeriesDTO> series = new ArrayList<>();
|
|
List<SeriesDTO> series = new ArrayList<>();
|
|
|
SeriesDTO jh = createSeriesDTO(xAxis, jhData, "计划");
|
|
SeriesDTO jh = createSeriesDTO(xAxis, jhData, "计划");
|
|
|
SeriesDTO wc = createSeriesDTO(xAxis, wcData, "完成");
|
|
SeriesDTO wc = createSeriesDTO(xAxis, wcData, "完成");
|
|
|
series.add(jh);
|
|
series.add(jh);
|
|
|
series.add(wc);
|
|
series.add(wc);
|
|
|
-
|
|
|
|
|
- String name = "电力变配电所";
|
|
|
|
|
- return createChartVO(xAxis, series, name);
|
|
|
|
|
|
|
+ return series;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|