From 04feef117c0c8919e9b249b4b79351684937ed74 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 21 Feb 2024 17:06:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E6=A8=A1=E5=9D=97=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E9=87=8D=E5=A4=8D=E4=B8=8D=E5=8C=BA=E5=88=86=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1036021 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036021 --- .../functional/service/CaseReviewModuleService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewModuleService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewModuleService.java index 225cc1c504..7c5a1f7a4a 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewModuleService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewModuleService.java @@ -7,9 +7,7 @@ package io.metersphere.functional.service; -import io.metersphere.functional.domain.CaseReview; -import io.metersphere.functional.domain.CaseReviewModule; -import io.metersphere.functional.domain.CaseReviewModuleExample; +import io.metersphere.functional.domain.*; import io.metersphere.functional.mapper.CaseReviewModuleMapper; import io.metersphere.functional.mapper.ExtCaseReviewMapper; import io.metersphere.functional.mapper.ExtCaseReviewModuleMapper; @@ -215,7 +213,7 @@ public class CaseReviewModuleService extends ModuleTreeService { } example.clear(); } - example.createCriteria().andParentIdEqualTo(caseReviewModule.getParentId()).andNameEqualTo(caseReviewModule.getName()).andIdNotEqualTo(caseReviewModule.getId()); + example.createCriteria().andParentIdEqualTo(caseReviewModule.getParentId()).andNameEqualTo(caseReviewModule.getName()).andIdNotEqualTo(caseReviewModule.getId()).andProjectIdEqualTo(caseReviewModule.getProjectId()); if (caseReviewModuleMapper.countByExample(example) > 0) { throw new MSException(Translator.get("node.name.repeat")); }