From f2e4816c643e1dd3274de53c799d3ea99bd7260b Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 22 Feb 2024 16:36:58 +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=E8=AF=84=E5=AE=A1=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=B9=B6=E5=85=B3=E8=81=94=E6=97=B6=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E8=AF=84=E5=AE=A1=E4=BA=BA=E5=92=8C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=AF=84=E5=AE=A1=E4=BA=BA=E4=B8=8D=E5=90=8C=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E7=9B=B8=E5=90=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1036035 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001036035 --- .../io/metersphere/functional/service/CaseReviewService.java | 2 +- .../controller/ReviewFunctionalCaseControllerTests.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java index 8467a333f4..5a748d6352 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewService.java @@ -208,7 +208,7 @@ public class CaseReviewService { BaseAssociateCaseRequest baseAssociateCaseRequest = request.getBaseAssociateCaseRequest(); List caseIds = doSelectIds(baseAssociateCaseRequest, baseAssociateCaseRequest.getProjectId()); CaseReview caseReview = addCaseReview(request, userId, caseReviewId, caseIds); - addAssociate(request, userId, caseReviewId, caseIds, request.getReviewers()); + addAssociate(request, userId, caseReviewId, caseIds, baseAssociateCaseRequest.getReviewers()); return caseReview; } diff --git a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java index 9f681d928a..97af6057f3 100644 --- a/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java +++ b/backend/services/case-management/src/test/java/io/metersphere/functional/controller/ReviewFunctionalCaseControllerTests.java @@ -421,6 +421,7 @@ public class ReviewFunctionalCaseControllerTests extends BaseTest { baseAssociateCaseRequest.setSelectAll(false); baseAssociateCaseRequest.setProjectId(projectId); baseAssociateCaseRequest.setSelectIds(caseIds); + baseAssociateCaseRequest.setReviewers(reviewers); caseReviewRequest.setBaseAssociateCaseRequest(baseAssociateCaseRequest); List tags = new ArrayList<>(); tags.add("11");