优化接口参数
This commit is contained in:
@@ -188,6 +188,11 @@ namespace WMS.Web.Domain.Services
|
||||
if (box == null)
|
||||
return Result<BoxInStockTaskDto>.ReFailure(ResultCodes.BoxNoData);
|
||||
|
||||
//判断箱不存在所选的物料
|
||||
var isAnyHave = box.Details.Any(x => x.MaterialNumber == dto.MaterialNumber);
|
||||
if (!isAnyHave)
|
||||
return Result<BoxInStockTaskDto>.ReFailure(box.BoxBillNo + ResultCodes.BoxNoMaterialError.Item2, ResultCodes.BoxNoMaterialError.Item1);
|
||||
|
||||
//1.获取物料集合
|
||||
var materials_result = await _erpService.BillQueryForMaterial();
|
||||
var materials = new List<ErpMaterialDto>();
|
||||
|
||||
Reference in New Issue
Block a user