|
@@ -194,6 +194,7 @@ public class BzyDeviceImpl extends DeviceAbstractImpl implements IBzyDevice {
|
|
|
newIotDevice.setDevtypeBid(devtypeBid);
|
|
newIotDevice.setDevtypeBid(devtypeBid);
|
|
|
newIotDevice.setDevUpdateddate(devUpdateddate);
|
|
newIotDevice.setDevUpdateddate(devUpdateddate);
|
|
|
newIotDevice.setDevStatus(IotDeviceStatusTypeEnum.ONLINE.getCode());
|
|
newIotDevice.setDevStatus(IotDeviceStatusTypeEnum.ONLINE.getCode());
|
|
|
|
|
+ newIotDevice.setDevOriginalStatus(oldIotDevice.getDevOriginalStatus());
|
|
|
|
|
|
|
|
HashMap<String, String> keyMaps = new HashMap<>();
|
|
HashMap<String, String> keyMaps = new HashMap<>();
|
|
|
keyMaps.put("dver", "devVersion");
|
|
keyMaps.put("dver", "devVersion");
|
|
@@ -241,13 +242,15 @@ public class BzyDeviceImpl extends DeviceAbstractImpl implements IBzyDevice {
|
|
|
newIotDevice.setDevBid(oldIotDevice.getDevBid());
|
|
newIotDevice.setDevBid(oldIotDevice.getDevBid());
|
|
|
newIotDevice.setDevStatus("0");
|
|
newIotDevice.setDevStatus("0");
|
|
|
newIotDevice.setDevOfflinedate(DateUtils.dateTimeNow());
|
|
newIotDevice.setDevOfflinedate(DateUtils.dateTimeNow());
|
|
|
- iIotDeviceService.updateIotDevice(newIotDevice);
|
|
|
|
|
//这些参数预警需要用,携带过去
|
|
//这些参数预警需要用,携带过去
|
|
|
newIotDevice.setTid(oldIotDevice.getTid());
|
|
newIotDevice.setTid(oldIotDevice.getTid());
|
|
|
newIotDevice.setDevtypeBid(oldIotDevice.getDevtypeBid());
|
|
newIotDevice.setDevtypeBid(oldIotDevice.getDevtypeBid());
|
|
|
newIotDevice.setDevCreateddate(oldIotDevice.getDevCreateddate());
|
|
newIotDevice.setDevCreateddate(oldIotDevice.getDevCreateddate());
|
|
|
newIotDevice.setDevUpdateddate(oldIotDevice.getDevUpdateddate());
|
|
newIotDevice.setDevUpdateddate(oldIotDevice.getDevUpdateddate());
|
|
|
newIotDevice.setDevCode(oldIotDevice.getDevCode());
|
|
newIotDevice.setDevCode(oldIotDevice.getDevCode());
|
|
|
|
|
+ newIotDevice.setDevOriginalStatus(oldIotDevice.getDevOriginalStatus());
|
|
|
|
|
+ iIotDeviceService.updateIotDevice(newIotDevice);
|
|
|
|
|
+
|
|
|
//发送离线预警
|
|
//发送离线预警
|
|
|
SpringUtils.getBean(WarnService.class).processWarningOfflineData(newIotDevice, ext);
|
|
SpringUtils.getBean(WarnService.class).processWarningOfflineData(newIotDevice, ext);
|
|
|
}
|
|
}
|