抛光库导入
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user