|
@@ -530,7 +530,7 @@ public class AlarmSnapService extends ServiceImpl<AlarmSnapMapper, AlarmSnap> {
|
|
|
wrapper.in("CATEGORY1",strings);
|
|
|
//设置时间范围
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS");
|
|
|
- String strDate = sdf.format(DateUtil.addDays(new Date(),-14));
|
|
|
+ String strDate = sdf.format(DateUtil.addDays(new Date(),-1));
|
|
|
Date dtStart = sdf.parse(strDate);
|
|
|
Date dtEnd = new Date();
|
|
|
wrapper.ge("lastUpdateTime",dtStart);
|
|
@@ -553,9 +553,12 @@ public class AlarmSnapService extends ServiceImpl<AlarmSnapMapper, AlarmSnap> {
|
|
|
}
|
|
|
stringListMap.put(entry.getKey(), alarmHomes);
|
|
|
}
|
|
|
- }else {
|
|
|
+ }
|
|
|
+ if (!stringListMap.containsKey("SYZ")){
|
|
|
stringListMap.put("SYZ",new ArrayList<>());
|
|
|
- stringListMap.put("winturbine",new ArrayList<>());
|
|
|
+ }
|
|
|
+ if (!stringListMap.containsKey("windturbine")){
|
|
|
+ stringListMap.put("windturbine",new ArrayList<>());
|
|
|
}
|
|
|
return stringListMap;
|
|
|
}
|