添加查询条件

This commit is contained in:
admin
2021-01-11 09:07:29 +08:00
parent cbd3c4555a
commit e20107b10d
7 changed files with 40 additions and 12 deletions

View File

@@ -9,7 +9,7 @@ namespace NX.ERP.U8
{
public class SupplierDAL
{
public IEnumerable<Supplier> GetList()
public IEnumerable<Supplier> GetList(string strWhere = "", object Param = null)
{
@@ -21,6 +21,10 @@ namespace NX.ERP.U8
cVenPostCode AS PostalCode,
cVenAddress AS Address,
cVenPerson AS Contract from Vendor ";
if (!string.IsNullOrEmpty(strWhere))
{
sql += $" where {strWhere}";
}
return conn.Query<Supplier>(sql, null);
}
}