修改基础资料

This commit is contained in:
admin
2021-01-20 16:31:45 +08:00
parent 7045313454
commit 0e95475880
14 changed files with 191 additions and 23 deletions

View File

@@ -20,6 +20,7 @@ namespace NX.ERP.U8
cVenName AS Name,
cVenPostCode AS PostalCode,
cVenAddress AS Address,
cVenPhone as ContractPhone,
cVenPerson AS Contract from Vendor ";
if (!string.IsNullOrEmpty(strWhere))
{
@@ -28,5 +29,31 @@ namespace NX.ERP.U8
return conn.Query<Supplier>(sql, null);
}
}
public IEnumerable<Supplier> GetList(NX.ERP.Model.Request.Supplier Params)
{
IList<string> where = new List<string>();
if (string.IsNullOrEmpty(Params.SupplierCode))
{
where.Add(" cVenCode like @SupplierCode ");
}
if (string.IsNullOrEmpty(Params.SupplierName))
{
where.Add(" cVenName like @SupplierName ");
}
return this.GetList(string.Join(" and ", where.ToArray()), new
{
SupplierCode = $"%{Params.SupplierCode}%",
SupplierName = $"%{Params.SupplierName}%"
});
}
}
}