|
@@ -43,6 +43,9 @@ public class HistoryController {
|
|
|
@Autowired
|
|
|
BugReportService bugReportService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ FinalReportService finalReportService;
|
|
|
+
|
|
|
|
|
|
//获取指定节点的历史信息
|
|
|
// @RequestMapping(value = "/getHistory")
|
|
@@ -136,9 +139,9 @@ public class HistoryController {
|
|
|
.map(BugDTO::getSeverity)
|
|
|
.map((severityNum) -> ReportUtil.severity2String.get(severityNum))
|
|
|
.collect(Collectors.groupingBy(Function.identity(), Collectors.counting()));
|
|
|
- List<FinalReportDTO> finalReports = new ArrayList<>();// 暂时还没有finalreport的数据
|
|
|
-
|
|
|
+// List<FinalReportDTO> finalReports = new ArrayList<>();// 暂时还没有finalreport的数据
|
|
|
|
|
|
+ List<FinalReportDTO> finalReports = finalReportService.getBySourceId(treeId);
|
|
|
model.addAttribute("categoryCounts", categoryCounts);
|
|
|
model.addAttribute("severityCounts", severityCounts);
|
|
|
model.addAttribute("pageCounts",pageCounts);
|