forked from dyf/fys-Multi-tenant
解绑问题修改2
This commit is contained in:
@ -564,7 +564,8 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
|
|||||||
// String mode = deviceType.getCommunicationMode();
|
// String mode = deviceType.getCommunicationMode();
|
||||||
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
||||||
deviceUpdateWrapper.eq("id", device.getId())
|
deviceUpdateWrapper.eq("id", device.getId())
|
||||||
.set("binding_status", BindingStatusEnum.UNBOUND.getCode());
|
.set("binding_status", BindingStatusEnum.UNBOUND.getCode())
|
||||||
|
.set("binding_user_id", null);
|
||||||
return baseMapper.update(null, deviceUpdateWrapper);
|
return baseMapper.update(null, deviceUpdateWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user