|
@@ -128,14 +128,14 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
|
|
|
|
|
//获取系统统计信息
|
|
//获取系统统计信息
|
|
|
List<PieChartDataVO> statisticsInfo = new ArrayList<>();
|
|
List<PieChartDataVO> statisticsInfo = new ArrayList<>();
|
|
|
- statisticsInfo.add(new PieChartDataVO("用户总数", userRepo.getAllUserNum()));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("测评机构总数", userRepo.getAllAgencyNum()));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("测试人员总数", agencyResourceDao.getTotalResourceByType("人力资源")));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("服务器总数", agencyResourceDao.getTotalResourceByType("服务器资源")));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("专用设备总数", agencyResourceDao.getTotalResourceByType("专用设备")));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("测试项目总数", projectRepo.getAllProjectNum()));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("测试任务总数", projectRepo.getAllTaskNum()));
|
|
|
|
|
- statisticsInfo.add(new PieChartDataVO("测试报告总数", projectRepo.getAllReportNum()));
|
|
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("用户", userRepo.getAllUserNum()));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("测评机构", userRepo.getAllAgencyNum()));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("测试人员", agencyResourceDao.getTotalResourceByType("人力资源")));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("服务器", agencyResourceDao.getTotalResourceByType("服务器资源")));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("专用设备", agencyResourceDao.getTotalResourceByType("专用设备")));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("测试项目", projectRepo.getAllProjectNum()));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("测试任务", projectRepo.getAllTaskNum()));
|
|
|
|
|
+ statisticsInfo.add(new PieChartDataVO("测试报告", projectRepo.getAllReportNum()));
|
|
|
indexDTO.setSystemStatistics(statisticsInfo);
|
|
indexDTO.setSystemStatistics(statisticsInfo);
|
|
|
return indexDTO;
|
|
return indexDTO;
|
|
|
}
|
|
}
|