调拨单明细删除修改

master
maxw@mesnac.com 6 days ago
parent 383e22cefe
commit 46d3875884

@ -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<Void> removeDetail(@NotEmpty(message = "主键不能为空")
@PathVariable Long aoDId) {
return toAjax(wmsAllocateOrderDetailService.deleteById(aoDId));
}
@GetMapping("selectAllocateDetails")
public R<List<WmsAllocateOrderDetailVo>> selectAllocateDetails(Long aoDId){
return R.ok(wmsAllocateOrderDetailService.selectAllocateDetails());

@ -67,4 +67,6 @@ public interface IWmsAllocateOrderDetailService {
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
List<WmsAllocateOrderDetailVo> selectAllocateDetails();
int deleteById(Long aoDId);
}

@ -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<WmsAllocateOrderDetailVo> selectAllocateDetails() {

Loading…
Cancel
Save