|
@@ -276,6 +276,9 @@ public class DevicePingInfoService extends SuperService {
|
|
|
Map<String, Object> standardData = new HashMap<String, Object>();
|
|
Map<String, Object> standardData = new HashMap<String, Object>();
|
|
|
standardData.put("id", id);
|
|
standardData.put("id", id);
|
|
|
standardData.put("onLineState", onLineState);
|
|
standardData.put("onLineState", onLineState);
|
|
|
|
|
+ if (onLineState == OnLineState.OffLine) {
|
|
|
|
|
+ standardData.put("lastOfflineTime", System.currentTimeMillis());
|
|
|
|
|
+ }
|
|
|
commonService.updateData(standardData, DeviceInfo.class.getSimpleName());
|
|
commonService.updateData(standardData, DeviceInfo.class.getSimpleName());
|
|
|
|
|
|
|
|
// 通知业务平台
|
|
// 通知业务平台
|
|
@@ -358,6 +361,9 @@ public class DevicePingInfoService extends SuperService {
|
|
|
Map<String, Object> standardData = new HashMap<String, Object>();
|
|
Map<String, Object> standardData = new HashMap<String, Object>();
|
|
|
standardData.put("id", id);
|
|
standardData.put("id", id);
|
|
|
standardData.put("onLineState", onLineState);
|
|
standardData.put("onLineState", onLineState);
|
|
|
|
|
+ if (onLineState == OnLineState.OffLine) {
|
|
|
|
|
+ standardData.put("lastOfflineTime", System.currentTimeMillis());
|
|
|
|
|
+ }
|
|
|
commonService.updateData(standardData, GateWayInfo.class.getSimpleName());
|
|
commonService.updateData(standardData, GateWayInfo.class.getSimpleName());
|
|
|
}
|
|
}
|
|
|
|
|
|