diff --git a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiModuleService.java b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiModuleService.java index 14a7138178..fd7e029cfc 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/definition/ApiModuleService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/definition/ApiModuleService.java @@ -106,6 +106,7 @@ public class ApiModuleService extends NodeTreeService { //回收站数据初始化:检查是否存在模块被删除的接口,则把接口挂再默认节点上 initTrashDataModule(projectId, protocol, versionId); //通过回收站里的接口模块进行反显 + request.setModuleIds(null); Map> trashApiMap = apiDefinitionService.selectApiBaseInfoGroupByModuleId(projectId, protocol, versionId, ApiTestDataStatus.TRASH.getValue(), request); diff --git a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java index a30be78970..cac52aed90 100644 --- a/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java +++ b/api-test/backend/src/main/java/io/metersphere/service/scenario/ApiScenarioModuleService.java @@ -161,6 +161,7 @@ public class ApiScenarioModuleService extends NodeTreeService statusList = new ArrayList<>(); statusList.add(ApiTestDataStatus.TRASH.getValue()); request.getFilters().put("status", statusList); + request.setModuleIds(null); } Map> trashApiMap = apiAutomationService.selectApiBaseInfoGroupByModuleId(projectId, ApiTestDataStatus.TRASH.getValue(), request);