mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(fix) 同环比计算为null时最新日期的数据被覆盖前端显示一直为0
This commit is contained in:
@@ -117,8 +117,12 @@ public class MetricRatioCalcProcessor implements ExecuteResultProcessor {
|
||||
|
||||
CompletableFuture.allOf(metricInfoRoll, metricInfoOver).join();
|
||||
|
||||
metricInfo.setName(metricInfoRoll.get().getName());
|
||||
metricInfo.setValue(metricInfoRoll.get().getValue());
|
||||
if (metricInfoRoll.get().getName() != null) {
|
||||
metricInfo.setName(metricInfoRoll.get().getName());
|
||||
}
|
||||
if (metricInfoOver.get().getValue() != null) {
|
||||
metricInfo.setValue(metricInfoRoll.get().getValue());
|
||||
}
|
||||
metricInfo.getStatistics().putAll(metricInfoRoll.get().getStatistics());
|
||||
metricInfo.getStatistics().putAll(metricInfoOver.get().getStatistics());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user