diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java index 568cf0b013..ad2f5529e6 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -245,9 +245,7 @@ public class ApiScenarioReportStructureService { if (StringUtils.isNotEmpty(dto.getType()) && requests.contains(dto.getType()) && dto.getValue() == null) { RequestResultExpandDTO requestResultExpandDTO = new RequestResultExpandDTO(); requestResultExpandDTO.setStatus("unexecute"); - if (StringUtils.equalsAnyIgnoreCase(dto.getType(), "AbstractSampler")) { - requestResultExpandDTO.setSuccess(true); - } + requestResultExpandDTO.setName(dto.getLabel()); dto.setValue(requestResultExpandDTO); } @@ -270,7 +268,7 @@ public class ApiScenarioReportStructureService { } // 循环步骤请求从新排序 if (dtoList.stream().filter(e -> e.getValue() != null).collect(Collectors.toList()).size() == dtoList.size()) { - List list = dtoList.stream().sorted(Comparator.comparing(x -> x.getValue().getStartTime())).collect(Collectors.toList()); + List list = dtoList.stream().sorted(Comparator.comparing(x -> x.getAllIndex())).collect(Collectors.toList()); for (int index = 0; index < list.size(); index++) { list.get(index).setIndex((index + 1)); }