fix(接口测试): 修复场景列表keyword查询影响模块树的缺陷

https://www.tapd.cn/55049933/s/1505378
This commit is contained in:
Jianguo-Genius 2024-04-22 17:38:58 +08:00 committed by Craftsman
parent 3d75aab508
commit e6ce96f3a2
1 changed files with 2 additions and 0 deletions

View File

@ -249,6 +249,8 @@ public class ApiScenarioModuleService extends ModuleTreeService {
//查找根据moduleIds查找模块下的接口数量 查非delete状态的
List<ModuleCountDTO> moduleCountDTOList = extApiScenarioMapper.countModuleIdByRequest(request, deleted);
long allCount = getAllCount(moduleCountDTOList);
request.setKeyword(null);
request.setScenarioId(null);
Map<String, Long> moduleCountMap = getModuleCountMap(request, moduleCountDTOList);
moduleCountMap.put(DEBUG_MODULE_COUNT_ALL, allCount);
return moduleCountMap;