From 14f210c6095d0385c4cf440fc11aaa5090fc1629 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 29 Feb 2024 10:14:29 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E8=AE=BE=E5=A4=87=E3=80=81=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E7=82=B9=E4=BD=8D=E7=BB=91=E5=AE=9A=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/equipment/controller/EmVideoBandingController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmVideoBandingController.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmVideoBandingController.java index 335b2d0..40002c7 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmVideoBandingController.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/controller/EmVideoBandingController.java @@ -13,6 +13,7 @@ import io.swagger.annotations.ApiParam; import lombok.AllArgsConstructor; import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.tool.api.R; +import org.springblade.core.tool.utils.Func; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -50,4 +51,11 @@ public class EmVideoBandingController extends BladeController { return R.status(emVideoBandingService.removeByEmCode(emCode)); } + @DeleteMapping("/removeById") + @ApiOperation("根据ID删除绑定关系") + @ApiOperationSupport(order = 4) + public R removeById(@RequestParam @ApiParam(value = "绑定ID,按逗号分隔",required = true) String ids) { + return R.status(emVideoBandingService.removeByIds(Func.toLongList(",",ids))); + } + }