fix(性能测试): 修复报告label中有重复内容导致排序错误的问题
This commit is contained in:
parent
1de6f5401a
commit
6f2183769a
|
@ -241,7 +241,7 @@ public class PerformanceReportService {
|
|||
List<LoadTestExportJmx> jmxContent = getJmxContent(id);
|
||||
String jmx = jmxContent.get(0).getJmx();
|
||||
// 按照JMX顺序重新排序
|
||||
statistics.sort(Comparator.comparingInt(a -> jmx.indexOf(a.getLabel())));
|
||||
statistics.sort(Comparator.comparingInt(a -> jmx.indexOf("\"" + a.getLabel() + "\"")));
|
||||
// 把 total 放到最后
|
||||
List<Statistics> total = statistics.stream()
|
||||
.filter(r -> StringUtils.equalsAnyIgnoreCase(r.getLabel(), "Total"))
|
||||
|
|
Loading…
Reference in New Issue