parent
497331f73a
commit
494cc22505
|
@ -775,7 +775,7 @@ public class ApiAutomationService {
|
|||
|
||||
List<String> ids = request.getIds();
|
||||
//检查是否有正在执行中的情景
|
||||
this.checkScenarioIsRunning(ids);
|
||||
// this.checkScenarioIsRunning(ids);
|
||||
|
||||
StringBuilder idStr = new StringBuilder();
|
||||
ids.forEach(item -> {
|
||||
|
@ -1066,7 +1066,7 @@ public class ApiAutomationService {
|
|||
(query) -> extApiScenarioMapper.selectIdsByQuery((ApiScenarioRequest) query));
|
||||
List<String> ids = request.getIds();
|
||||
//检查是否有正在执行中的情景
|
||||
this.checkScenarioIsRunning(ids);
|
||||
// this.checkScenarioIsRunning(ids);
|
||||
StringBuilder idStr = new StringBuilder();
|
||||
ids.forEach(item -> {
|
||||
idStr.append("\"").append(item).append("\"").append(",");
|
||||
|
@ -1117,14 +1117,14 @@ public class ApiAutomationService {
|
|||
}
|
||||
}
|
||||
|
||||
public void checkScenarioIsRunning(List<String> ids) {
|
||||
List<ApiScenarioReport> 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<String> ids) {
|
||||
// List<ApiScenarioReport> lastReportStatusByIds = apiReportService.selectLastReportByIds(ids);
|
||||
// for (ApiScenarioReport report : lastReportStatusByIds) {
|
||||
// if (StringUtils.equals(report.getStatus(), APITestStatus.Running.name())) {
|
||||
// MSException.throwException(report.getName() + " Is Running!");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取前台查询条件查询的所有(未经分页筛选)数据ID
|
||||
|
|
Loading…
Reference in New Issue