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