| 
															
																@@ -635,8 +635,8 @@ public class DeviceServiceImpl implements DeviceService{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         } 
															 | 
															
															 | 
															
																         } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         if (syncDeviceService.updateDeviceStatus(device.getIotDeviceId(), state) > 0){ 
															 | 
															
															 | 
															
																         if (syncDeviceService.updateDeviceStatus(device.getIotDeviceId(), state) > 0){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             Device DeviceUpdate = new Device(); 
															 | 
															
															 | 
															
																             Device DeviceUpdate = new Device(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            device.setId(deviceId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-            device.setDeviceStatus(state); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            DeviceUpdate.setId(deviceId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+            DeviceUpdate.setDeviceStatus(state); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             updateByPrimaryKeySelective(DeviceUpdate); 
															 | 
															
															 | 
															
																             updateByPrimaryKeySelective(DeviceUpdate); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																             return; 
															 | 
															
															 | 
															
																             return; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																         } 
															 | 
															
															 | 
															
																         } 
															 |