From 9b53716bac7ceb9cd5019f071d0871eee8d0d8ce Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Fri, 18 Oct 2024 15:57:10 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E5=9C=BA=E6=99=AF=E5=AF=BC=E5=87=BA=E5=90=8E=E7=AB=AF?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/dto/scenario/ApiScenarioDetail.java | 2 ++ .../api/mapper/ExtApiTestCaseMapper.java | 2 ++ .../api/mapper/ExtApiTestCaseMapper.xml | 11 +++++++++ .../ApiScenarioDataTransferService.java | 4 ++-- .../service/scenario/ApiScenarioService.java | 24 ++++++++++++++----- .../api/utils/ApiScenarioUtils.java | 10 +++++++- 6 files changed, 44 insertions(+), 9 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDetail.java b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDetail.java index 0f3201c684..3dc34805c7 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDetail.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/dto/scenario/ApiScenarioDetail.java @@ -10,6 +10,8 @@ import java.util.List; @Data @EqualsAndHashCode(callSuper = false) public class ApiScenarioDetail extends ApiScenario { + @Schema(description = "模块路径") + private String modulePath; @Schema(description = "场景的通用配置") private ScenarioConfig scenarioConfig = new ScenarioConfig(); @Schema(description = "步骤") diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.java b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.java index 40007825e2..93d86a7693 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.java @@ -127,4 +127,6 @@ public interface ExtApiTestCaseMapper { void clearApiChange(@Param("ids") List ids); List selectAllDetailByApiIds(@Param("apiIds") List apiIds); + + List selectAllDetailByIds(@Param("ids") List apiIds); } \ No newline at end of file diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml index 9b17fbd557..20698c3379 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml +++ b/backend/services/api-test/src/main/java/io/metersphere/api/mapper/ExtApiTestCaseMapper.xml @@ -980,6 +980,17 @@ #{id} + + +