添加查询条件
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user