diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index 1352e07d35..355b147443 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -860,7 +860,7 @@ public class ApiAutomationService { List ids = request.getIds(); //检查是否有正在执行中的情景 - this.checkScenarioIsRunning(ids); +// this.checkScenarioIsRunning(ids); StringBuilder idStr = new StringBuilder(); ids.forEach(item -> { @@ -1151,7 +1151,7 @@ public class ApiAutomationService { (query) -> extApiScenarioMapper.selectIdsByQuery((ApiScenarioRequest) query)); List ids = request.getIds(); //检查是否有正在执行中的情景 - this.checkScenarioIsRunning(ids); +// this.checkScenarioIsRunning(ids); StringBuilder idStr = new StringBuilder(); ids.forEach(item -> { idStr.append("\"").append(item).append("\"").append(","); @@ -1207,14 +1207,14 @@ public class ApiAutomationService { } } - public void checkScenarioIsRunning(List ids) { - List lastReportStatusByIds = apiReportService.selectLastReportByIds(ids); - for (ApiScenarioReport report : lastReportStatusByIds) { - if (StringUtils.equals(report.getStatus(), APITestStatus.Running.name())) { - MSException.throwException(report.getName() + " Is Running!"); - } - } - } +// public void checkScenarioIsRunning(List ids) { +// List lastReportStatusByIds = apiReportService.selectLastReportByIds(ids); +// for (ApiScenarioReport report : lastReportStatusByIds) { +// if (StringUtils.equals(report.getStatus(), APITestStatus.Running.name())) { +// MSException.throwException(report.getName() + " Is Running!"); +// } +// } +// } /** * 获取前台查询条件查询的所有(未经分页筛选)数据ID