From 9d3ebe1ec31672e371b417c6832b686f6b3a439c Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 24 May 2024 10:56:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E5=A4=A7=E6=95=B0=E6=8D=AE=E9=87=8F?= =?UTF-8?q?=EF=BC=8C=E6=9F=A5=E7=9C=8B=E6=8A=A5=E5=91=8A=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ExtApiScenarioReportMapper.java | 2 +- .../api/mapper/ExtApiScenarioReportMapper.xml | 3 +- .../scenario/ApiScenarioReportService.java | 108 +++++++++++------- .../components/management/mock/mockTable.vue | 1 + 4 files changed, 68 insertions(+), 46 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.java b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.java index b6f24739b4..d2d7359d9d 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.java @@ -51,7 +51,7 @@ public interface ExtApiScenarioReportMapper { void updateApiScenario(List ids); - List selectStepDetailByReportId(String id); + List selectStepDetailByReportId(@Param("id") String id, @Param("limit") int limit, @Param("offset") int offset); List getNoticeList(@Param("ids") List ids); diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.xml b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.xml index e61c315d71..428516fef9 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.xml +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiScenarioReportMapper.xml @@ -221,7 +221,8 @@ api_scenario_report_detail.script_identifier, api_scenario_report_detail.sort as loopIndex from api_scenario_report_detail - where api_scenario_report_detail.report_id = #{reportId} + where api_scenario_report_detail.report_id = #{id} + limit #{limit} offset #{offset}