fix: 缺陷列表报错

This commit is contained in:
chenjianxing 2021-05-24 11:15:32 +08:00 committed by jianxing
parent 2b759037ae
commit 4194b75f0b
1 changed files with 3 additions and 0 deletions

View File

@ -641,6 +641,9 @@ public class TestPlanService {
}
public List<TestPlan> getTestPlanByIds(List<String> planIds) {
if (CollectionUtils.isEmpty(planIds)) {
return new ArrayList<>();
}
TestPlanExample example = new TestPlanExample();
example.createCriteria().andIdIn(planIds);
return testPlanMapper.selectByExample(example);