提交 ba6acc81 作者: zhangqiliang

确认退货之后恢复库存数量接口优化

父级 ce308af7
......@@ -368,9 +368,9 @@ public class WarehouseController {
* @param materialsQuery
* @return
*/
@PostMapping(value = "reject/RestoreInventoryQuantity")
@PostMapping(value = "reject/restoreInventoryQuantity")
@ApiOperation(value = "确认退货之后更新库存数量")
public BaseResponse<Void> RestoreInventoryQuantity(MaterialsQuery materialsQuery) {
public BaseResponse<Void> restoreInventoryQuantity(MaterialsQuery materialsQuery) {
MaterialsEx materials=materialsMapperEx.materialsByMaterialsCode(materialsQuery.getMaterialsCode());
if (materials==null){
throw new ServiceException("物料不存在");
......@@ -378,6 +378,4 @@ public class WarehouseController {
materialsMapperEx.RestoreInventoryQuantity(materialsQuery.getWarehouseId(),materials.getId(), BigDecimal.valueOf(1));
return new BaseResponse<>();
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论