优化接口
This commit is contained in:
@@ -653,6 +653,14 @@ namespace WMS.Web.Domain.Services
|
||||
if (boxs == null || boxs.Count == 0)
|
||||
return Result<ContrastMaterialsResponse>.ReFailure(ResultCodes.BoxNoData);
|
||||
|
||||
//判断箱不存在所选的物料
|
||||
foreach (var item in boxs)
|
||||
{
|
||||
var isAnyHave= item.Details.Any(x => x.MaterialNumber == dto.MaterialNumber);
|
||||
if(!isAnyHave)
|
||||
return Result<ContrastMaterialsResponse>.ReFailure(item.BoxBillNo+ResultCodes.BoxNoMaterialError.Item2, ResultCodes.BoxNoMaterialError.Item1);
|
||||
}
|
||||
|
||||
//3.判断箱里面对应的物料是否存在;不存在就报错
|
||||
foreach (var item in boxs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user