|
@@ -370,6 +370,14 @@ public class ProtectionServiceImpl extends ServiceImpl<ProtectionMapper, IotAlar
|
|
|
map.put("date", DateUtil.format(subsystemLog.getStatusChangeTime(), "HH:mm"));
|
|
map.put("date", DateUtil.format(subsystemLog.getStatusChangeTime(), "HH:mm"));
|
|
|
listEntry.getValue().add(map);
|
|
listEntry.getValue().add(map);
|
|
|
}
|
|
}
|
|
|
|
|
+ // 布撤防记录超过2条记录就按数据显示咋样,数据不够2条就补齐差的那一条
|
|
|
|
|
+ if(subsystemLogList.size()==1)
|
|
|
|
|
+ {
|
|
|
|
|
+ Map<String, Object> map = new LinkedHashMap<>();
|
|
|
|
|
+ map.put("status", subsystemLogList.get(0).getStatus()==1?0:1);
|
|
|
|
|
+ map.put("date", StringUtil.EMPTY_STRING);
|
|
|
|
|
+ listEntry.getValue().add(map);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|