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() {