fix(测试计划): 修复脑图为规划模块下用例添加关联缺陷问题

--bug=1046646 --user=王旭 【测试计划】-脑图执行时,选择未规划用例模块添加或关联缺陷,模块下的用例没有关联添加的缺陷 https://www.tapd.cn/55049933/s/1580685
This commit is contained in:
WangXu10 2024-09-19 10:31:32 +08:00 committed by 刘瑞斌
parent 506a74698c
commit 6ddada0d3b
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ public class TestPlanFunctionalCaseMinderService {
//模块
if (CollectionUtils.isNotEmpty(request.getMinderModuleIds())) {
//处理未规划用例
List<String> rootIds = ids.stream().filter(id -> StringUtils.endsWith(id, "_root")).map(id -> id.replace("_root", "")).toList();
List<String> rootIds = request.getMinderModuleIds().stream().filter(id -> StringUtils.endsWith(id, "_root")).map(id -> id.replace("_root", "")).toList();
if (CollectionUtils.isNotEmpty(rootIds)) {
ids.addAll(extTestPlanFunctionalCaseMapper.selectIdsByRootIds(rootIds, request.getTestPlanId()));
}