From 7703a79d0373eda41ac33c4bbdc50055bfadb005 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Fri, 14 Jun 2024 16:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=85=B3=E8=81=94=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/CaseReviewLogService.java | 2 +- .../TestPlanCollectionMinderController.java | 3 +- .../plan/mapper/ExtTestPlanApiCaseMapper.xml | 4 +- .../plan/service/TestPlanApiCaseService.java | 54 ++++++++++++++----- .../service/TestPlanApiScenarioService.java | 41 ++++++++++---- .../plan/service/TestPlanBugService.java | 3 +- .../TestPlanCollectionMinderService.java | 7 +-- .../TestPlanFunctionalCaseService.java | 47 +++++++++++++--- .../plan/service/TestPlanResourceService.java | 3 +- .../TestPlanApiCaseControllerTests.java | 20 ++++--- .../TestPlanApiScenarioControllerTests.java | 11 +++- .../TestPlanCaseControllerTests.java | 10 +++- 12 files changed, 158 insertions(+), 47 deletions(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewLogService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewLogService.java index fbc295fc07..dfd800dd79 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewLogService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/CaseReviewLogService.java @@ -165,7 +165,7 @@ public class CaseReviewLogService { caseReview.getProjectId(), null, caseReview.getId(), - caseReview.getCreateUser(), + null, OperationLogType.ASSOCIATE.name(), OperationLogModule.CASE_REVIEW_DETAIL, functionalCase.getName()); diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanCollectionMinderController.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanCollectionMinderController.java index dfc633a5f1..52f013b235 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanCollectionMinderController.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanCollectionMinderController.java @@ -44,8 +44,7 @@ public class TestPlanCollectionMinderController { }, logical = Logical.OR) @CheckOwner(resourceId = "#request.planId", resourceType = "test_plan") public void editMindTestPlanCase(@Validated @RequestBody TestPlanCollectionMinderEditRequest request) { - String userId = SessionUtils.getUserId(); - testPlanCollectionMinderService.editMindTestPlanCase(request, userId); + testPlanCollectionMinderService.editMindTestPlanCase(request, SessionUtils.getUser()); } diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml index 1252890b8e..5833c8dc94 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/mapper/ExtTestPlanApiCaseMapper.xml @@ -684,8 +684,10 @@