fix: 定时任务执行测试计划时服务端报错

定时任务执行测试计划时服务端报错
This commit is contained in:
song.tianyang 2021-03-24 16:04:23 +08:00
parent 35217aeef9
commit 2a021c99d1
1 changed files with 3 additions and 0 deletions

View File

@ -269,6 +269,9 @@ public class ApiAutomationService {
}
private void deleteApiScenarioReport(List<String> scenarioIds) {
if(scenarioIds == null || scenarioIds.isEmpty()){
return;
}
ApiScenarioReportExample scenarioReportExample = new ApiScenarioReportExample();
scenarioReportExample.createCriteria().andScenarioIdIn(scenarioIds);
List<ApiScenarioReport> list = apiScenarioReportMapper.selectByExample(scenarioReportExample);