FIX: VaryingService returned wrong Point values
This commit is contained in:
parent
b9b5885b4e
commit
27155cdf19
@ -69,7 +69,7 @@ public class VaryingService {
|
||||
case MONTH -> varyingMonthRepository.findAllByIdSeriesIdAndIdDateGreaterThanEqualAndIdDateLessThanEqual(series.id, begin.date, end.date);
|
||||
case YEAR -> varyingYearRepository.findAllByIdSeriesIdAndIdDateGreaterThanEqualAndIdDateLessThanEqual(series.id, begin.date, end.date);
|
||||
};
|
||||
return graphPoints.stream().map(v -> new GraphPoint(v.getId().getDate(), v.getMax() - v.getMin())).toList();
|
||||
return graphPoints.stream().map(v -> new GraphPoint(v.getId().getDate(), v.getAvg())).toList();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user