修复bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user