移货验重

This commit is contained in:
18942506660
2024-03-16 10:47:27 +08:00
parent ef27bbe576
commit 7c5101fcd2

View File

@@ -257,6 +257,9 @@ namespace WMS.Web.Domain.Services
_logger.LogInformation($"移箱:{JsonConvert.SerializeObject(dto)} 是否上架:{IsUp} 操作人:{loginInfo.UserInfo.StaffId}");
//1.下架时 需要验证箱是否在库存里
var boxIds = dto.Select(s => s.BoxId).ToList();
if (boxIds.Distinct().Count() != boxIds.Count())
return Result.ReFailure(ResultCodes.BoxOutStockTaskBoxError);
var boxList = await _boxInventoryRepositories.GetList(boxIds);
if (!IsUp)
{