优化
This commit is contained in:
@@ -568,7 +568,7 @@ namespace WMS.Web.Domain.Services
|
||||
var boxIds = dtoData.Details.SelectMany(x => x.BoxsDetails).GroupBy(x=>x.BoxId).Select(x => x.Key).ToList();
|
||||
var boxInventorys = await _boxInventoryRepositories.GetList(boxIds);
|
||||
//判断箱库存是否存在
|
||||
var isNotHaveBoxInvetory = boxInventorys.All(x => boxIds.Any(bid => bid != x.Id));
|
||||
var isNotHaveBoxInvetory = boxInventorys.All(x => boxIds.Any(bid => bid != x.BoxId));
|
||||
if(isNotHaveBoxInvetory)
|
||||
return Result.ReFailure(ResultCodes.BoxInventoryNoDataError);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user