修复bug

This commit is contained in:
18942506660
2024-11-05 17:45:24 +08:00
parent f15aa1eac5
commit 9165db58cc

View File

@@ -85,15 +85,19 @@ namespace WMS.Web.Domain.Services
foreach (var item in listOld)
{
string subStock = "";
if (!string.IsNullOrEmpty(item.Erp_SubStockName))
subStock = item.Erp_SubStockName.Split(':')[1].Replace(";", "");
var entity = new ProductInventory()
{
Type = ProductInventoryType.JinDie,
MaterialNumber = item.MaterialNumber,
Customer = item.Erp_SubStockName,
Customer = subStock,
OrgCode = item.OrgCode,
StockCode = item.StockCode,
Qty = item.Qty,
Batch=item.Batch,
Batch = item.Batch,
BeforeQty = item.BeforeQty
};
inventoryList.Add(entity);
@@ -239,9 +243,9 @@ namespace WMS.Web.Domain.Services
_logger.LogInformation($"拉取领星数据结果:{resInventory.IsSuccess} {resInventory.Message}");
if (!resInventory.IsSuccess) return resStock;
foreach(var i in ids)
foreach (var i in ids)
{
_logger.LogInformation($"拉取领星数据{i} 数据总数:{resInventory.Data.Where(w=>w.StockId==i).Count()}");
_logger.LogInformation($"拉取领星数据{i} 数据总数:{resInventory.Data.Where(w => w.StockId == i).Count()}");
}
//物料