修改基础资料
This commit is contained in:
@@ -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}%"
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user