瀏覽代碼

修改首页统计信息文字内容

xuexiaobo 6 年之前
父節點
當前提交
26ff80c81d
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      site/src/main/java/com/mooctest/crowd/site/mediator/impl/WebMediatorImpl.java

+ 8 - 8
site/src/main/java/com/mooctest/crowd/site/mediator/impl/WebMediatorImpl.java

@@ -128,14 +128,14 @@ public class WebMediatorImpl implements ViewMediator {
 
         //获取系统统计信息
         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);
         return indexDTO;
     }