fix(测试计划): 修复脑图为规划模块下用例添加关联缺陷问题
--bug=1046646 --user=王旭 【测试计划】-脑图执行时,选择未规划用例模块添加或关联缺陷,模块下的用例没有关联添加的缺陷 https://www.tapd.cn/55049933/s/1580685
This commit is contained in:
parent
506a74698c
commit
6ddada0d3b
|
@ -63,7 +63,7 @@ public class TestPlanFunctionalCaseMinderService {
|
||||||
//模块
|
//模块
|
||||||
if (CollectionUtils.isNotEmpty(request.getMinderModuleIds())) {
|
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)) {
|
if (CollectionUtils.isNotEmpty(rootIds)) {
|
||||||
ids.addAll(extTestPlanFunctionalCaseMapper.selectIdsByRootIds(rootIds, request.getTestPlanId()));
|
ids.addAll(extTestPlanFunctionalCaseMapper.selectIdsByRootIds(rootIds, request.getTestPlanId()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue