Commit f9b7e5f6 authored by hanbing's avatar hanbing

[update] 修改问题方案详细指标展示逻辑

parent 7daa9d56
......@@ -312,11 +312,10 @@ public class RunningEvaluateServiceImpl implements RunningEvaluateService {
List<MetricHistDTO> filteredList = crossDTOList.stream()
.filter(metricHistDTO -> metricHistDTO.getStatus() != null && metricHistDTO.getStatus() != 0)
.collect(Collectors.toList());
if (CollectionUtil.isEmpty(filteredList)) {
return res;
}
if (CollectionUtil.isNotEmpty(filteredList)) {
res.setProblemStatusList(buildProblemStatusList(filteredList));
res.setSchemeList(buildSchemeList(filteredList, crossId));
}
// 使用全量数据按时间粒度聚合指标
res.setMetricsList(buildMetricsList(metricHistDTOList, minutes));
return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment