From b2f262628a1dd03ca82f42f0177a80b2cb56f4d6 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Mon, 4 Nov 2024 18:04:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1=E9=AB=98=E7=BA=A7=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functional/mapper/ExtCaseReviewMapper.xml | 27 ++++++++++++------- .../controller/CaseReviewControllerTests.java | 7 ++++- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml index 88229c83e7..6660d01c33 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewMapper.xml @@ -79,7 +79,7 @@ - + @@ -195,24 +195,30 @@ - + - + - - - + + + + + + + + + @@ -249,9 +255,12 @@ - - - + + + + + + diff --git a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/CaseReviewControllerTests.java b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/CaseReviewControllerTests.java index 18697ff493..e477ed9467 100644 --- a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/CaseReviewControllerTests.java +++ b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/CaseReviewControllerTests.java @@ -8,6 +8,7 @@ import io.metersphere.functional.mapper.*; import io.metersphere.functional.request.*; import io.metersphere.functional.result.CaseManagementResultCode; import io.metersphere.sdk.constants.SessionConstants; +import io.metersphere.sdk.dto.CombineSearch; import io.metersphere.sdk.util.JSON; import io.metersphere.system.base.BaseTest; import io.metersphere.system.controller.handler.ResultHolder; @@ -408,7 +409,11 @@ public class CaseReviewControllerTests extends BaseTest { Map> filters = new HashMap<>(); filters.put("status", Arrays.asList("PREPARED", "UNDERWAY", "COMPLETED", "ARCHIVED")); request.setFilter(filters); - request.setCombine(caseReviewCombine); + CombineSearch combineSearch = new CombineSearch(); + combineSearch.setSearchMode("AND"); + combineSearch.setConditions(new ArrayList<>()); + request.setCombineSearch(combineSearch); + request.setViewId("my_follow"); request.setProjectId(projectId); request.setKeyword("评审更新"); request.setReviewByMe("admin");