Ver código fonte

修改阈值和内容

王辉 3 dias atrás
pai
commit
558b216331

+ 2 - 2
src/main/java/cn/chinaunicom/omniFlowNetCompute/service/impl/DashboardServiceImpl.java

@@ -306,11 +306,11 @@ public class DashboardServiceImpl implements DashboardService {
 
         Map<String, Long> contentMap = thresholdAlarms.stream()
                 .collect(Collectors.toMap(SystemCategoryVO::getSystemId,
-                        SystemCategoryVO::getContentCount,
+                        SystemCategoryVO::getThresholdCount,
                         (v1, v2) -> v1));
         Map<String, Long> thresholdMap = contentAlarms.stream()
                 .collect(Collectors.toMap(SystemCategoryVO::getSystemId,
-                        SystemCategoryVO::getThresholdCount,
+                        SystemCategoryVO::getContentCount,
                         (v1, v2) -> v1));
 
         // 4. 获取所有系统配置的指标(用于存在性计算)

+ 1 - 1
src/main/java/cn/chinaunicom/omniFlowNetCompute/until/ExcelExportUtil.java

@@ -150,7 +150,7 @@ public class ExcelExportUtil {
      * 创建系统统计Sheet
      */
     private void createSystemStatsColumnSheet(Workbook workbook, CellStyle headerStyle, DashboardVO dashboardVO) {
-        Sheet sheet = workbook.createSheet("月份");
+        Sheet sheet = workbook.createSheet("明细");
 
         // 创建表头
         Row headerRow = sheet.createRow(0);