Browse Source

报警发数新增批量发送

shaohongbo 3 years ago
parent
commit
2844052d9e

+ 1 - 1
src/main/java/com/persagy/apm/diagnose/indicatorrecord/service/impl/MonitorIndicatorRecordServiceImpl.java

@@ -407,7 +407,7 @@ public class MonitorIndicatorRecordServiceImpl implements IMonitorIndicatorRecor
         }
         Map<String, List<MonitorIndicatorRecord>> timeKeyAndRecordList = new LinkedHashMap<>();
         for (MonitorIndicatorRecord record : list) {
-            String timeKey = DateUtils.date2Str(record.getDataTime(), DateUtils.SDF_SECOND);
+            String timeKey = DateUtils.date2Str(record.getDataTime(), DateUtils.SDFSECOND);
             if (!timeKeyAndRecordList.containsKey(timeKey)) {
                 timeKeyAndRecordList.put(timeKey, new ArrayList<>());
             }