From 46d3875884d74ea78673f61ba788fcd800662196 Mon Sep 17 00:00:00 2001 From: "maxw@mesnac.com" Date: Mon, 13 Jan 2025 14:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8=E5=8D=95=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wms/controller/WmsAllocateOrderDetailController.java | 8 ++++++++ .../wms/service/IWmsAllocateOrderDetailService.java | 2 ++ .../service/impl/WmsAllocateOrderDetailServiceImpl.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/controller/WmsAllocateOrderDetailController.java b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/controller/WmsAllocateOrderDetailController.java index b836a5ef..42b43134 100644 --- a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/controller/WmsAllocateOrderDetailController.java +++ b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/controller/WmsAllocateOrderDetailController.java @@ -104,6 +104,14 @@ public class WmsAllocateOrderDetailController extends BaseController { return toAjax(wmsAllocateOrderDetailService.deleteWithValidByIds(List.of(aoDIds), true)); } + @SaCheckPermission("system:allocateOrderDetail:remove") + @Log(title = "调拨子", businessType = BusinessType.DELETE) + @DeleteMapping("removeDetail/{aoDId}") + public R removeDetail(@NotEmpty(message = "主键不能为空") + @PathVariable Long aoDId) { + return toAjax(wmsAllocateOrderDetailService.deleteById(aoDId)); + } + @GetMapping("selectAllocateDetails") public R> selectAllocateDetails(Long aoDId){ return R.ok(wmsAllocateOrderDetailService.selectAllocateDetails()); diff --git a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/IWmsAllocateOrderDetailService.java b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/IWmsAllocateOrderDetailService.java index 5317ae63..5eed61f0 100644 --- a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/IWmsAllocateOrderDetailService.java +++ b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/IWmsAllocateOrderDetailService.java @@ -67,4 +67,6 @@ public interface IWmsAllocateOrderDetailService { Boolean deleteWithValidByIds(Collection ids, Boolean isValid); List selectAllocateDetails(); + + int deleteById(Long aoDId); } diff --git a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsAllocateOrderDetailServiceImpl.java b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsAllocateOrderDetailServiceImpl.java index 0e3a5635..9279a460 100644 --- a/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsAllocateOrderDetailServiceImpl.java +++ b/ruoyi-modules/hwmom-wms/src/main/java/org/dromara/wms/service/impl/WmsAllocateOrderDetailServiceImpl.java @@ -135,6 +135,11 @@ public class WmsAllocateOrderDetailServiceImpl implements IWmsAllocateOrderDetai return baseMapper.deleteByIds(ids) > 0; } + @Override + public int deleteById(Long aoDId) { + return baseMapper.deleteById(aoDId); + } + @Override public List selectAllocateDetails() {