Commit 10ce3b8e authored by 赵啸非's avatar 赵啸非

添加设备告警

parent 5df9b869
......@@ -75,6 +75,7 @@ public class DeviceStatTaskImpl implements ITaskExcuteService {
// .filter(f -> f.getDeviceOnlineStatus() == DeviceOnlineStatusEnum.在线.getValue())
.map(device -> {
DeviceLogQuery query = new DeviceLogQuery();
query.setDeviceId(device.getId());
query.setCreateTimeStart(DateUtils.getStrDateTime(new Date(System.currentTimeMillis() - timeout)));
DeviceLogEntity deviceLogEntity = deviceLogService.selectOne(query);
if (ObjectUtils.isEmpty(deviceLogEntity)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment