From 7c7ce38072f97c235205701b637024f944b65c69 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Mon, 24 Jun 2024 10:45:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E8=AE=B0=E5=BD=95=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/plan/controller/TestPlanController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java index 0213eebb2f..2d1346c6b2 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/controller/TestPlanController.java @@ -2,7 +2,6 @@ package io.metersphere.plan.controller; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; -import io.metersphere.api.service.scenario.ApiScenarioLogService; import io.metersphere.plan.constants.TestPlanResourceConfig; import io.metersphere.plan.domain.TestPlan; import io.metersphere.plan.dto.TestPlanExecuteHisDTO; @@ -243,7 +242,7 @@ public class TestPlanController { @PostMapping(value = "/schedule-config") @Operation(summary = "接口测试-接口场景管理-定时任务配置") @RequiresPermissions(PermissionConstants.TEST_PLAN_READ_EXECUTE) - @Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#testPlanId)", msClass = TestPlanLogService.class) + @Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#request.getResourceId())", msClass = TestPlanLogService.class) @CheckOwner(resourceId = "#request.getResourceId()", resourceType = "test_plan") public String scheduleConfig(@Validated @RequestBody BaseScheduleConfigRequest request) { testPlanManagementService.checkModuleIsOpen(request.getResourceId(), TestPlanResourceConfig.CHECK_TYPE_TEST_PLAN, Collections.singletonList(TestPlanResourceConfig.CONFIG_TEST_PLAN)); @@ -253,7 +252,7 @@ public class TestPlanController { @GetMapping(value = "/schedule-config-delete/{testPlanId}") @Operation(summary = "接口测试-接口场景管理-删除定时任务配置") @RequiresPermissions(PermissionConstants.TEST_PLAN_READ_EXECUTE) - @Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#testPlanId)", msClass = ApiScenarioLogService.class) + @Log(type = OperationLogType.UPDATE, expression = "#msClass.scheduleLog(#testPlanId)", msClass = TestPlanLogService.class) @CheckOwner(resourceId = "#testPlanId", resourceType = "test_plan") public void deleteScheduleConfig(@PathVariable String testPlanId) { testPlanManagementService.checkModuleIsOpen(testPlanId, TestPlanResourceConfig.CHECK_TYPE_TEST_PLAN, Collections.singletonList(TestPlanResourceConfig.CONFIG_TEST_PLAN));