1
0

解绑问题修改2

This commit is contained in:
2025-07-12 10:41:35 +08:00
parent 56704f6014
commit e13e3c57a6

View File

@ -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);
} }