feat(stock): 添加退库功能- 在 IWmsStockIoService接口中添加 scanReturnStockByBo 方法
- 在 WmsStockIo 模型中添加 parentId 字段用于关联原出库单 - 在 WmsStockIoBo 中添加 parentId 字段 - 在 WmsStockIoController 中添加 scanReturnStock 控制器方法 - 在 WmsStockIoServiceImpl 中实现 scanReturnStockByBo 方法的业务逻辑
This commit is contained in:
@@ -173,4 +173,14 @@ public class WmsStockIoController extends BaseController {
|
||||
return R.fail(e.getMessage());
|
||||
}
|
||||
}
|
||||
//退库操作
|
||||
@PostMapping("/scanReturnStock")
|
||||
public R<Void> scanReturnStock(@RequestBody WmsStockIoBo bo) {
|
||||
try {
|
||||
boolean result = iWmsStockIoService.scanReturnStockByBo(bo);
|
||||
return toAjax(result);
|
||||
} catch (Exception e) {
|
||||
return R.fail(e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user