From 9db523ebd04e56cb8e3e2d64ec81ec8dfb908d79 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Mon, 5 Feb 2024 10:11:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=85=8D=E7=BD=AE=E4=B8=89=E6=96=B9=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/service/ProjectApplicationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java b/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java index 75cd887dcc..2638b84e13 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/service/ProjectApplicationService.java @@ -204,7 +204,7 @@ public class ProjectApplicationService { example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%"); if (projectApplicationMapper.countByExample(example) > 0) { example.clear(); - example.createCriteria().andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%"); + example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.BUG.BUG_SYNC.name() + "%"); projectApplicationMapper.deleteByExample(example); projectApplicationMapper.batchInsert(bugSyncConfigs); } else { @@ -410,7 +410,7 @@ public class ProjectApplicationService { example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%"); if (projectApplicationMapper.countByExample(example) > 0) { example.clear(); - example.createCriteria().andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%"); + example.createCriteria().andProjectIdEqualTo(projectId).andTypeLike(ProjectApplicationType.CASE_RELATED_CONFIG.CASE_RELATED.name() + "%"); projectApplicationMapper.deleteByExample(example); projectApplicationMapper.batchInsert(relatedConfigs); } else {