fix(接口测试): 点击左侧模块树切换模块,模块树的统计就变回去了

--bug=1020906 --user=张勇 【接口测试】接口定义 / 接口自动化列表、接口定义 / 接口自动化 回收站列表,简单搜索后,再点击左侧模块树切换模块,模块树的统计就变回去了 https://www.tapd.cn/55049933/s/1317305
This commit is contained in:
zhangyong 2022-12-20 10:39:08 +08:00 committed by zhangyongfit2cloud
parent 41d72d1c57
commit c6b31d791a
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ public class ApiModuleService extends NodeTreeService<ApiModuleDTO> {
//回收站数据初始化检查是否存在模块被删除的接口则把接口挂再默认节点上 //回收站数据初始化检查是否存在模块被删除的接口则把接口挂再默认节点上
initTrashDataModule(projectId, protocol, versionId); initTrashDataModule(projectId, protocol, versionId);
//通过回收站里的接口模块进行反显 //通过回收站里的接口模块进行反显
request.setModuleIds(null);
Map<String, List<ApiDefinition>> trashApiMap = Map<String, List<ApiDefinition>> trashApiMap =
apiDefinitionService.selectApiBaseInfoGroupByModuleId(projectId, protocol, versionId, apiDefinitionService.selectApiBaseInfoGroupByModuleId(projectId, protocol, versionId,
ApiTestDataStatus.TRASH.getValue(), request); ApiTestDataStatus.TRASH.getValue(), request);

View File

@ -161,6 +161,7 @@ public class ApiScenarioModuleService extends NodeTreeService<ApiScenarioModuleD
List<String> statusList = new ArrayList<>(); List<String> statusList = new ArrayList<>();
statusList.add(ApiTestDataStatus.TRASH.getValue()); statusList.add(ApiTestDataStatus.TRASH.getValue());
request.getFilters().put("status", statusList); request.getFilters().put("status", statusList);
request.setModuleIds(null);
} }
Map<String, List<ApiScenario>> trashApiMap = apiAutomationService.selectApiBaseInfoGroupByModuleId(projectId, Map<String, List<ApiScenario>> trashApiMap = apiAutomationService.selectApiBaseInfoGroupByModuleId(projectId,
ApiTestDataStatus.TRASH.getValue(), request); ApiTestDataStatus.TRASH.getValue(), request);