From 4db3c144cefc83f26a00c4d4d6b8dd497d245b1a Mon Sep 17 00:00:00 2001 From: tongfei <244188119@qq.com> Date: Thu, 7 Dec 2023 15:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Domain/Services/BoxInventoryService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);