添加查询条件

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 MaterielDAL
{
public IEnumerable<Materiel> GetList()
public IEnumerable<Materiel> GetList(string strWhere = "", object Param = null)
{
@@ -264,7 +264,11 @@ namespace NX.ERP.U8
bSpecialOrder AS 客户订单专用,
bTrackSaleBill AS 销售跟单
from Inventory";
return conn.Query<Materiel>(sql, null);
if (!string.IsNullOrEmpty(strWhere))
{
sql += $" where {strWhere}";
}
return conn.Query<Materiel>(sql, Param);
}
}
}