抛光库导入

This commit is contained in:
2024-10-29 17:35:32 +08:00
parent 08b25e0633
commit eb97591d9c
7 changed files with 137 additions and 22 deletions

View File

@@ -75,6 +75,12 @@ namespace ZR.Service.mes.wms
item.Description = !string.IsNullOrEmpty(material.Description)
? material.Description
: material.ProductName;
// 获取实际库存
List<string> partnumbers = new List<string>();
partnumbers.Add(item.Partnumber);
Dictionary<string, int> dict = GetBatchOneTimeRealPartNum(partnumbers);
item.RealQuantity = dict.TryGetValue(item.Partnumber, out int value) ? value : 0;
}
}
return response;
@@ -481,7 +487,7 @@ namespace ZR.Service.mes.wms
.ToDictionary(g => g.Partnumber, g => SqlFunc.AggregateSum(g.Quantity) ?? 0);
}
// Util 获取指定抛光库零件加报表后库存
// Util 获取指定一次合格库零件加报表后库存
public Dictionary<string, int> GetBatchOneTimeRealPartNum(List<string> partnumbers)
{
try