diff --git a/backend/src/main/java/io/metersphere/api/exec/api/ApiCaseExecuteService.java b/backend/src/main/java/io/metersphere/api/exec/api/ApiCaseExecuteService.java index c5294b73f5..5c21d8a161 100644 --- a/backend/src/main/java/io/metersphere/api/exec/api/ApiCaseExecuteService.java +++ b/backend/src/main/java/io/metersphere/api/exec/api/ApiCaseExecuteService.java @@ -74,6 +74,7 @@ public class ApiCaseExecuteService { request.getConfig().setEnvMap(environmentGroupProjectService.getEnvMap(request.getConfig().getEnvironmentGroupId())); } LoggerUtil.debug("开始查询测试计划用例"); + TestPlanApiCaseExample example = new TestPlanApiCaseExample(); example.createCriteria().andIdIn(ids); example.setOrderByClause("`order` DESC"); @@ -84,8 +85,8 @@ public class ApiCaseExecuteService { request.setTriggerMode(ApiRunMode.API_PLAN.name()); } + Map executeQueue = new LinkedHashMap<>(); List responseDTOS = new LinkedList<>(); - Map executeQueue = new HashMap<>(); String status = request.getConfig().getMode().equals(RunModeConstants.SERIAL.toString()) ? APITestStatus.Waiting.name() : APITestStatus.Running.name(); planApiCases.forEach(testPlanApiCase -> { ApiDefinitionExecResult report = ApiDefinitionExecResultUtil.addResult(request, testPlanApiCase, status, batchMapper);