From 28afb751ee37761e84c52fac0ebf27996a9401d6 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 27 Apr 2021 10:31:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B):?= =?UTF-8?q?=20=E8=87=AA=E5=AE=9A=E4=B9=89ID=E9=A1=B9=E7=9B=AE=E4=B8=8B?= =?UTF-8?q?=E5=94=AF=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/track/service/TestCaseService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java index bf88ffb822..68cb39f61d 100644 --- a/backend/src/main/java/io/metersphere/track/service/TestCaseService.java +++ b/backend/src/main/java/io/metersphere/track/service/TestCaseService.java @@ -145,7 +145,9 @@ public class TestCaseService { private void checkCustomNumExist(TestCaseWithBLOBs testCase) { TestCaseExample example = new TestCaseExample(); - example.createCriteria().andCustomNumEqualTo(testCase.getCustomNum()) + example.createCriteria() + .andCustomNumEqualTo(testCase.getCustomNum()) + .andProjectIdEqualTo(testCase.getProjectId()) .andIdNotEqualTo(testCase.getId()); List list = testCaseMapper.selectByExample(example); if (CollectionUtils.isNotEmpty(list)) {