fix(性能测试): 修复报告生成前查询时报null的问题

Closes #13485
This commit is contained in:
CaptainB 2022-05-11 20:20:16 +08:00 committed by 刘瑞斌
parent 3ae63da01a
commit 186fa10ef2
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,9 @@ public class PerformanceReportService {
String reportValue = getContent(id, ReportKeys.RequestStatistics);
// 确定顺序
List<Statistics> statistics = JSON.parseArray(reportValue, Statistics.class);
if (CollectionUtils.isEmpty(statistics)) {
return Collections.emptyList();
}
List<LoadTestExportJmx> jmxContent = getJmxContent(id);
String jmx = jmxContent.get(0).getJmx();
// 按照JMX顺序重新排序