|
|
@@ -58,6 +58,7 @@ public class DevicePingInfoService extends SuperService {
|
|
|
Map<String, Object> standardData = new HashMap<String, Object>();
|
|
|
standardData.put("id", deviceInfo.getId());
|
|
|
standardData.put("lastOnlineTime", time);
|
|
|
+ standardData.put("onLineState", OnLineState.OnLine);
|
|
|
commonService.updateData(standardData, DeviceInfo.class.getSimpleName());
|
|
|
|
|
|
// ping记录
|
|
|
@@ -97,6 +98,7 @@ public class DevicePingInfoService extends SuperService {
|
|
|
}
|
|
|
|
|
|
if (onLineState != deviceInfo.getOnLineState()) {
|
|
|
+ log.info("设备在线状态改变:{} {}", deviceInfo.getDeviceName(), onLineState);
|
|
|
Map<String, Object> standardData = new HashMap<String, Object>();
|
|
|
standardData.put("id", deviceInfo.getId());
|
|
|
standardData.put("onLineState", onLineState);
|