fix(测试跟踪): 测试计划脑图无法查看缺陷

--bug=1011587 --user=陈建星 【测试跟踪】测试计划-脑图创建缺陷后,刷新页面,脑图里不显示缺陷了 https://www.tapd.cn/55049933/s/1128034
This commit is contained in:
chenjianxing 2022-03-31 14:09:40 +08:00 committed by 刘瑞斌
parent ee97b2f77a
commit 7db8caa6b2
1 changed files with 2 additions and 8 deletions

View File

@ -1976,18 +1976,12 @@ public class TestCaseService {
if (CollectionUtils.isNotEmpty(caseIds)) {
List<IssuesDao> issues = extIssuesMapper.getIssueForMinder(caseIds, refType);
for (IssuesDao item : issues) {
String key;
if (item.getRefType().equals(IssueRefType.PLAN_FUNCTIONAL.name())) {
key = item.getRefId();
} else {
key = item.getResourceId();
}
List<IssuesDao> list = issueMap.get(key);
List<IssuesDao> list = issueMap.get(item.getResourceId());
if (list == null) {
list = new ArrayList<>();
}
list.add(item);
issueMap.put(key, list);
issueMap.put(item.getResourceId(), list);
}
}
return issueMap;