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 bdf0b28af4..2c2a9626f0 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestPlanService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestPlanService.java @@ -150,6 +150,7 @@ public class TestPlanService { public List getTestPlanByName(String name) { TestPlanExample example = new TestPlanExample(); example.createCriteria().andWorkspaceIdEqualTo(SessionUtils.getCurrentWorkspaceId()) + .andProjectIdEqualTo(SessionUtils.getCurrentProjectId()) .andNameEqualTo(name); return testPlanMapper.selectByExample(example); }