This commit is contained in:
2024-07-01 14:55:00 +08:00
parent 46f7b4bf20
commit fd42810269
2 changed files with 5 additions and 1 deletions

View File

@@ -95,6 +95,7 @@ namespace Tnb.WarehouseMgr
}, true)
.ToListAsync();
if (carry.carrystd_id == WmsWareHouseConst.CARRY_LJSTD_ID && mCarryIdDic?.Count > 0)
{
if (carryCodes.Count < mCarryIdDic.Keys?.Count)
@@ -118,6 +119,10 @@ namespace Tnb.WarehouseMgr
data.wmsCarryCodes = carryCodes.Adapt<List<CarryCodeQueryOutput>>();
foreach (CarryCodeQueryOutput carryCodeQueryOutput in data.wmsCarryCodes)
{
if (carryCodeQueryOutput.member_carrycode == null)
{
throw new AppFriendlyException("载具与条码数量可能不匹配", 500);
}
carryCodeQueryOutput.member_carryid = mCarryIdDic2.GetOrDefault(carryCodeQueryOutput.member_carrycode).ToString();
}
return data;