绑定蓝牙问题修复

This commit is contained in:
2025-07-12 09:56:26 +08:00
parent f119dd158b
commit eb1552d982
2 changed files with 4 additions and 4 deletions

View File

@ -64,8 +64,8 @@ public class AppOperationVideoController extends BaseController {
/** /**
* 操作视频删除 * 操作视频删除
*/ */
@DeleteMapping("/deleteOperationVideo") @DeleteMapping("/deleteOperationVideo/{id}")
public R<Void> deleteOperationVideo(Long[] ids) { public R<Void> deleteOperationVideo(@PathVariable Long id) {
return toAjax(appOperationVideoService.deleteWithValidByIds(List.of(ids), true)); return toAjax(appOperationVideoService.deleteWithValidByIds(List.of(id), true));
} }
} }

View File

@ -547,7 +547,7 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
deviceUpdateWrapper.eq("id", device.getId()) deviceUpdateWrapper.eq("id", device.getId())
.set("binding_status", BindingStatusEnum.BOUND.getCode()) .set("binding_status", BindingStatusEnum.BOUND.getCode())
.set("binding_user_id", userId); .set("binding_user_id", userId);
return baseMapper.update(null, qw); return baseMapper.update(null, deviceUpdateWrapper);
} else { } else {
throw new RuntimeException("通讯方式错误"); throw new RuntimeException("通讯方式错误");
} }