解绑问题修复

This commit is contained in:
2025-07-12 10:41:13 +08:00
parent 2f38f08538
commit fbbe90207e

View File

@ -564,7 +564,8 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
// String mode = deviceType.getCommunicationMode();
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
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);
}