SUPPORT-9206: перенос корректировок бекенда из задачи по business-metrics
This commit is contained in:
parent
0d11d25b59
commit
7df41f9e69
2 changed files with 7 additions and 2 deletions
|
|
@ -93,6 +93,7 @@ public class RoundSingleChartDataSetService extends AbstractChartDatasetService
|
|||
List<SingleChartDataSetDto> datasets = new ArrayList<>();
|
||||
List<ChartLabelModel> centerLabelModels = new ArrayList<>();
|
||||
List<Object> labels = new ArrayList<>();
|
||||
List<List<Object>> dataLabels = new ArrayList<>();
|
||||
|
||||
for (Future<RoundChartDataSetDtoWrapper> future : dataSetFutures) {
|
||||
RoundChartDataSetDtoWrapper chartDataSetDto = future.get();
|
||||
|
|
@ -101,6 +102,7 @@ public class RoundSingleChartDataSetService extends AbstractChartDatasetService
|
|||
datasets.add(chartDataSetDto.getRoundChartDataSetDto());
|
||||
}
|
||||
labels.addAll(chartDataSetDto.getLabels());
|
||||
dataLabels.add(chartDataSetDto.getLabels());
|
||||
}
|
||||
executorService.shutdown();
|
||||
|
||||
|
|
@ -108,7 +110,7 @@ public class RoundSingleChartDataSetService extends AbstractChartDatasetService
|
|||
centerLabelModels.add(future.get());
|
||||
}
|
||||
|
||||
return new RoundChartDataDto(datasets, labels, centerLabelModels);
|
||||
return new RoundChartDataDto(datasets, labels, centerLabelModels, dataLabels);
|
||||
}
|
||||
catch (InterruptedException | ExecutionException e) {
|
||||
executorService.shutdownNow();
|
||||
|
|
|
|||
|
|
@ -12,13 +12,16 @@ import ru.micord.ervu_dashboard.model.chart.round.label.ChartLabelModel;
|
|||
public class RoundChartDataDto extends SingleChartDataDto {
|
||||
|
||||
public List<ChartLabelModel> centerLabels;
|
||||
public List<List<Object>> dataLabels;
|
||||
|
||||
public RoundChartDataDto(
|
||||
List<SingleChartDataSetDto> datasets,
|
||||
List<Object> labels,
|
||||
List<ChartLabelModel> centerLabels
|
||||
List<ChartLabelModel> centerLabels,
|
||||
List<List<Object>> dataLabels
|
||||
) {
|
||||
super(datasets, labels);
|
||||
this.centerLabels = centerLabels;
|
||||
this.dataLabels = dataLabels;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue