fix(测试跟踪): 测试计划脑图无法查看缺陷
--bug=1011587 --user=陈建星 【测试跟踪】测试计划-脑图创建缺陷后,刷新页面,脑图里不显示缺陷了 https://www.tapd.cn/55049933/s/1128034
This commit is contained in:
parent
ee97b2f77a
commit
7db8caa6b2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue