|
@@ -112,6 +112,8 @@ public class ChartServiceImpl implements IChartService {
|
|
|
|
|
|
|
|
List<DlycDTO> bdycList = bdycMapper.totalByDay();
|
|
List<DlycDTO> bdycList = bdycMapper.totalByDay();
|
|
|
List<DlycDTO> dlycList = dlycMapper.totalByDay();
|
|
List<DlycDTO> dlycList = dlycMapper.totalByDay();
|
|
|
|
|
+ DlycDTO bdyc = bdycMapper.totalBpdxsdByDay();
|
|
|
|
|
+ DlycDTO dlyc = dlycMapper.totalDlwxdByDay();
|
|
|
Map<String, DlycDTO> bdycMap = bdycList.stream()
|
|
Map<String, DlycDTO> bdycMap = bdycList.stream()
|
|
|
.collect(Collectors.toMap(DlycDTO::getGq, v -> v, (p1, p2) -> p1));
|
|
.collect(Collectors.toMap(DlycDTO::getGq, v -> v, (p1, p2) -> p1));
|
|
|
Map<String, DlycDTO> dlycMap = dlycList.stream()
|
|
Map<String, DlycDTO> dlycMap = dlycList.stream()
|
|
@@ -121,6 +123,11 @@ public class ChartServiceImpl implements IChartService {
|
|
|
if (gqFlag.contains(bdDto.getGq())) {
|
|
if (gqFlag.contains(bdDto.getGq())) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (bdDto.getGq().equals("变配电修试队")){
|
|
|
|
|
+ bdDto.setDj1(bdyc.getDj1());
|
|
|
|
|
+ bdDto.setDj2(bdyc.getDj2());
|
|
|
|
|
+ bdDto.setDj3(bdyc.getDj3());
|
|
|
|
|
+ }
|
|
|
gqFlag.add(bdDto.getGq());
|
|
gqFlag.add(bdDto.getGq());
|
|
|
DlycDTO dlDto = dlycMap.get(bdDto.getGq());
|
|
DlycDTO dlDto = dlycMap.get(bdDto.getGq());
|
|
|
List<SeriesDTO> series = listSeries(xAxis, bdDto, dlDto);
|
|
List<SeriesDTO> series = listSeries(xAxis, bdDto, dlDto);
|
|
@@ -131,6 +138,11 @@ public class ChartServiceImpl implements IChartService {
|
|
|
if (gqFlag.contains(dlDto.getGq())) {
|
|
if (gqFlag.contains(dlDto.getGq())) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (dlDto.getGq().equals("电力维修队")){
|
|
|
|
|
+ dlDto.setDj1(dlyc.getDj1());
|
|
|
|
|
+ dlDto.setDj2(dlyc.getDj2());
|
|
|
|
|
+ dlDto.setDj3(dlyc.getDj3());
|
|
|
|
|
+ }
|
|
|
gqFlag.add(dlDto.getGq());
|
|
gqFlag.add(dlDto.getGq());
|
|
|
DlycDTO bdDto = bdycMap.get(dlDto.getGq());
|
|
DlycDTO bdDto = bdycMap.get(dlDto.getGq());
|
|
|
List<SeriesDTO> series = listSeries(xAxis, bdDto, dlDto);
|
|
List<SeriesDTO> series = listSeries(xAxis, bdDto, dlDto);
|