Commit 31113165 authored by 赵啸非's avatar 赵啸非

修改同步用户

parent 35957593
...@@ -86,7 +86,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D ...@@ -86,7 +86,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
super.updateBefore(entity, context); super.updateBefore(entity, context);
DeviceEntity beforeEntity = this.get(entity.getId(), context); DeviceEntity beforeEntity = this.get(entity.getId(), context);
if (!beforeEntity.getDeviceCode().equals(entity.getDeviceCode())) { if (!ObjectUtils.isEmpty(beforeEntity)&&!beforeEntity.getDeviceCode().equals(entity.getDeviceCode())) {
RoomDeviceQuery roomDeviceQuery = new RoomDeviceQuery(); RoomDeviceQuery roomDeviceQuery = new RoomDeviceQuery();
roomDeviceQuery.setDeviceCode(beforeEntity.getDeviceCode()); roomDeviceQuery.setDeviceCode(beforeEntity.getDeviceCode());
roomDeviceQuery.setRoomId(entity.getRoomId()); roomDeviceQuery.setRoomId(entity.getRoomId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment