修复bug

This commit is contained in:
18942506660
2023-12-20 17:52:14 +08:00
parent 93c533d86d
commit 4df9e97289
9 changed files with 122 additions and 14 deletions

View File

@@ -267,7 +267,18 @@ namespace WMS.Web.Domain.Services.Public
var stock = erpStocks.Where(x => x.Id == stockId).FirstOrDefault();
return stock == null ? "" : stock.Code;
}
/// <summary>
/// 子仓库
/// </summary>
/// <param name="erpStocks"></param>
/// <param name="code"></param>
/// <returns></returns>
public string GetSubStockName(List<Erp_SubStockDto> erpStocks, string code)
{
if (erpStocks == null || erpStocks.Count == 0)
return "";
var stock = erpStocks.Where(x => x.Code == code).FirstOrDefault();
return stock == null ? "" : stock.Name;
}
}
}