From 31215b4a9a2cc3136353971521003860eebc48a7 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 8 Oct 2024 14:35:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9C=BA=E6=99=AF=E7=B3=BB=E7=BB=9F=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=9F=A5=E8=AF=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApiScenarioSelectAssociateService.java | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioSelectAssociateService.java b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioSelectAssociateService.java index 139b9f9e9e..ccbeb49f0d 100644 --- a/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioSelectAssociateService.java +++ b/backend/services/api-test/src/main/java/io/metersphere/api/service/scenario/ApiScenarioSelectAssociateService.java @@ -1,24 +1,11 @@ package io.metersphere.api.service.scenario; -import io.metersphere.api.domain.ApiDefinition; -import io.metersphere.api.domain.ApiScenario; -import io.metersphere.api.domain.ApiTestCase; -import io.metersphere.api.dto.scenario.ApiScenarioSelectAssociateDTO; import io.metersphere.api.mapper.ExtApiDefinitionMapper; import io.metersphere.api.mapper.ExtApiScenarioMapper; import io.metersphere.api.mapper.ExtApiTestCaseMapper; -import io.metersphere.sdk.dto.AssociateCaseDTO; -import io.metersphere.system.dto.ModuleSelectDTO; import jakarta.annotation.Resource; -import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.lang3.BooleanUtils; import org.springframework.stereotype.Service; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.List; -import java.util.Map; - @Service public class ApiScenarioSelectAssociateService { @@ -32,7 +19,7 @@ public class ApiScenarioSelectAssociateService { public static final String MODULE_ALL = "all"; - public void getSelectDto(ApiScenarioSelectAssociateDTO request) { + /*public void getSelectDto(ApiScenarioSelectAssociateDTO request) { boolean selectAllModule = request.isSelectAllModule(); Map moduleMaps = request.getModuleMaps(); moduleMaps.remove(MODULE_ALL); @@ -145,9 +132,9 @@ public class ApiScenarioSelectAssociateService { } } - /** + *//** * 获取关联时的相关id数据 - */ + *//* protected AssociateCaseDTO getCaseIds(Map moduleMaps) { // 排除的ids List excludeIds = moduleMaps.values().stream() @@ -165,6 +152,6 @@ public class ApiScenarioSelectAssociateService { .toList(); return new AssociateCaseDTO(excludeIds, selectIds, moduleIds); - } + }*/ }