|
@@ -94,6 +94,8 @@ public class DeviceInfoServiceImpl implements DeviceInfoService {
|
|
|
|
|
|
if (deviceInfo != null){
|
|
if (deviceInfo != null){
|
|
deviceInfo.setIsOnline(online);
|
|
deviceInfo.setIsOnline(online);
|
|
|
|
+ deviceInfo.setAbnormalReason(online ? "设备上线" : "设备离线");
|
|
|
|
+
|
|
deviceInfo.setHeartbeatUpdateTime(new Date());
|
|
deviceInfo.setHeartbeatUpdateTime(new Date());
|
|
deviceInfoDAO.update(deviceInfo);
|
|
deviceInfoDAO.update(deviceInfo);
|
|
}
|
|
}
|