diff --git a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java index f14c721ff6..b0dbdac8c8 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -641,6 +641,9 @@ public class TestPlanService { } public List getTestPlanByIds(List planIds) { + if (CollectionUtils.isEmpty(planIds)) { + return new ArrayList<>(); + } TestPlanExample example = new TestPlanExample(); example.createCriteria().andIdIn(planIds); return testPlanMapper.selectByExample(example);