From d3603bc0ff1d5b7ee66edf24b8e818c969390454 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Tue, 19 Nov 2024 11:03:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=B9=E9=87=8F=E9=85=8D=E7=BD=AE=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=BC=9A=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scenario/ApiScenarioBatchOperationController.java | 2 +- .../api/controller/scenario/ApiScenarioController.java | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioBatchOperationController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioBatchOperationController.java index 1df9c5cefc..83a0ec1c40 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioBatchOperationController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioBatchOperationController.java @@ -102,7 +102,7 @@ public class ApiScenarioBatchOperationController { @PostMapping(value = "/batch-operation/schedule-config") @Operation(summary = "接口测试-接口场景管理-定时任务批量配置") @RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_EXECUTE) - @CheckOwner(resourceId = "#request.getProject()", resourceType = "project") + @CheckOwner(resourceId = "#request.getProjectId()", resourceType = "project") public void scheduleConfig(@Validated @RequestBody ApiScenarioBatchScheduleConfigRequest request) { apiValidateService.validateApiMenuInProject(request.getProjectId(), ApiResource.PROJECT.name()); apiScenarioService.batchScheduleConfig(request, SessionUtils.getUserId()); diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java index 5ebc9d41f0..3f0ff25211 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioController.java @@ -35,8 +35,6 @@ import io.metersphere.system.utils.PageUtils; import io.metersphere.system.utils.Pager; import io.metersphere.system.utils.SessionUtils; import io.swagger.v3.oas.annotations.Operation; -import io.swagger.v3.oas.annotations.Parameter; -import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.annotation.Resource; import jakarta.servlet.http.HttpServletResponse; @@ -79,7 +77,6 @@ public class ApiScenarioController { @PostMapping("/statistics") @Operation(summary = "接口测试-接口场景管理-获取通过率") @RequiresPermissions(PermissionConstants.PROJECT_API_SCENARIO_READ) - @Parameter(name = "ids", description = "场景id集合", schema = @Schema(requiredMode = Schema.RequiredMode.REQUIRED)) public List selectTestPlanMetricById(@RequestBody List ids) { return apiScenarioService.calculateRate(ids); }