diff --git a/src/WMS.Web.Domain/Services/BoxInventoryService.cs b/src/WMS.Web.Domain/Services/BoxInventoryService.cs index 2eeb1fd8..2beaa96e 100644 --- a/src/WMS.Web.Domain/Services/BoxInventoryService.cs +++ b/src/WMS.Web.Domain/Services/BoxInventoryService.cs @@ -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);