From 31549256e4f69943c3664987eaec2893a2a8c24b Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 22 Mar 2024 12:13:33 +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=E5=9C=BA=E6=99=AF=E6=8A=A5=E5=91=8A=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/scenario/ApiScenarioReportController.java | 8 ++++---- .../api/service/scenario/ApiScenarioReportService.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioReportController.java b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioReportController.java index 14124a9922..7f97b2cf62 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioReportController.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/controller/scenario/ApiScenarioReportController.java @@ -94,9 +94,9 @@ public class ApiScenarioReportController { @Operation(summary = "接口测试-接口报告-报告详情获取") @CheckOwner(resourceId = "#reportId", resourceType = "api_scenario_report") @RequiresPermissions(value = {PermissionConstants.PROJECT_API_REPORT_READ, PermissionConstants.PROJECT_API_SCENARIO_UPDATE}, logical = Logical.OR) - public List getDetail(@PathVariable String stepId, - @PathVariable String reportId) { - return apiScenarioReportService.getDetail(stepId, reportId); + public List getDetail(@PathVariable String reportId, + @PathVariable String stepId) { + return apiScenarioReportService.getDetail(reportId, stepId); } @GetMapping("/get/detail/{shareId}/{reportId}/{stepId}") @@ -105,7 +105,7 @@ public class ApiScenarioReportController { @PathVariable String stepId) { ShareInfo shareInfo = apiReportShareService.checkResource(shareId); apiReportShareService.validateExpired(shareInfo); - return apiScenarioReportService.getDetail(stepId, reportId); + return apiScenarioReportService.getDetail(reportId, stepId); } } diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioReportService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioReportService.java index 00759b271e..96a92f25d7 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioReportService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioReportService.java @@ -245,7 +245,7 @@ public class ApiScenarioReportService { } } - public List getDetail(String stepId, String reportId) { + public List getDetail(String reportId, String stepId) { List apiReportDetails = checkResourceStep(stepId, reportId); List results = new ArrayList<>(); apiReportDetails.forEach(apiReportDetail -> {