fix: 测试计划没有场景用例选择环境执行报错

This commit is contained in:
chenjianxing 2022-01-13 16:58:15 +08:00 committed by song-tianyang
parent 6a0818819b
commit 0d60fc8ac8
1 changed files with 1 additions and 0 deletions

View File

@ -214,6 +214,7 @@ public class TestPlanScenarioCaseService {
}
public void setScenarioEnv(List<String> planScenarioIds, RunModeConfigDTO runModeConfig) {
if (CollectionUtils.isEmpty(planScenarioIds)) return;
SqlSession sqlSession = sqlSessionFactory.openSession(ExecutorType.BATCH);
TestPlanApiScenarioExample testPlanApiScenarioExample = new TestPlanApiScenarioExample();
testPlanApiScenarioExample.createCriteria().andIdIn(planScenarioIds);