|
|
@@ -65,7 +65,7 @@ public class BugListServiceImpl implements BugListService {
|
|
|
List<BugListPO> bugs = bugListMapper.selectByProjectId(projectId);
|
|
|
List<CommitPO> commits = commitMapper.selectByProjectIdAndType(projectId, CommitRelatedType.BUG_ID);
|
|
|
Map<Integer,List<CommitPO>> commitsMap = commits.stream().collect(Collectors.groupingBy(CommitPO::getRelatedId));
|
|
|
- return bugs.stream().map(BugListVO::new).collect(Collectors.toList());
|
|
|
+ return bugs.stream().map(x->new BugListVO(x,commitsMap.get(x.getId()))).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
|