From af19dab80bf15f435d63bf7c24f4967b63bfd1c3 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 24 May 2024 16:00:52 +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=8Dmock=E5=8F=AA=E8=AF=BB=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=A4=8D=E5=88=B6mock=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1041184 --user=王孝刚 【接口测试】Mock权限-只有查询权限的用户,不能使用复制Mock地址的功能 https://www.tapd.cn/55049933/s/1520656 --- .../api/mapper/ExtApiScenarioReportMapper.java | 2 +- .../api/mapper/ExtApiScenarioReportMapper.xml | 1 - .../scenario/ApiScenarioReportService.java | 15 +-------------- .../components/management/mock/mockTable.vue | 2 +- 4 files changed, 3 insertions(+), 17 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 d2d7359d9d..bf2bc24750 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(@Param("id") String id, @Param("limit") int limit, @Param("offset") int offset); + List selectStepDetailByReportId(@Param("id") String id); 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 428516fef9..6ff4806aa3 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 @@ -222,7 +222,6 @@ api_scenario_report_detail.sort as loopIndex from api_scenario_report_detail where api_scenario_report_detail.report_id = #{id} - limit #{limit} offset #{offset}