供应商信息应用上

This commit is contained in:
tongfei
2023-11-08 14:18:59 +08:00
parent 333f0a0c10
commit a6fbdaae02
5 changed files with 54 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ using System.Linq;
using System.Text;
using WMS.Web.Core.Dto.Erp;
using WMS.Web.Core.Dto.Erp.Org;
using WMS.Web.Core.Dto.Erp.Supplier;
using WMS.Web.Domain.Infrastructure;
using WMS.Web.Domain.IService.Public;
@@ -87,5 +88,17 @@ namespace WMS.Web.Domain.Services.Public
var org = erpOrgs.Where(x => x.Id == orgId).FirstOrDefault();
return org == null ? "" : org.Name;
}
/// <summary>
/// 获取供应商名称
/// </summary>
/// <param name="erpSuppliers"></param>
/// <param name="supplierId"></param>
/// <returns></returns>
public string GetSupplierName(List<ErpSupplierDto> erpSuppliers, int supplierId)
{
var supplier = erpSuppliers.Where(x => x.Id == supplierId).FirstOrDefault();
return supplier == null ? "" : supplier.Name;
}
}
}