1
0
Просмотр исходного кода

fix: 填入Buglist commit 信息

370774330@qq.com 5 лет назад
Родитель
Сommit
dedda11296

+ 1 - 1
web/src/main/java/seecoder/devcloud/web/service/impl/project/BugListServiceImpl.java

@@ -65,7 +65,7 @@ public class BugListServiceImpl implements BugListService {
         List<BugListPO> bugs = bugListMapper.selectByProjectId(projectId);
         List<BugListPO> bugs = bugListMapper.selectByProjectId(projectId);
         List<CommitPO> commits = commitMapper.selectByProjectIdAndType(projectId, CommitRelatedType.BUG_ID);
         List<CommitPO> commits = commitMapper.selectByProjectIdAndType(projectId, CommitRelatedType.BUG_ID);
         Map<Integer,List<CommitPO>> commitsMap = commits.stream().collect(Collectors.groupingBy(CommitPO::getRelatedId));
         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());
     }
     }