修复错误
This commit is contained in:
@@ -26,7 +26,7 @@ namespace NX.ERP.U8
|
||||
{
|
||||
sql += $" where {strWhere}";
|
||||
}
|
||||
return conn.Query<Supplier>(sql, null);
|
||||
return conn.Query<Supplier>(sql, Param);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,13 +34,13 @@ namespace NX.ERP.U8
|
||||
public IEnumerable<Supplier> GetList(NX.ERP.Model.Request.Supplier Params)
|
||||
{
|
||||
IList<string> where = new List<string>();
|
||||
if (string.IsNullOrEmpty(Params.SupplierCode))
|
||||
if (!string.IsNullOrEmpty(Params.SupplierCode))
|
||||
{
|
||||
where.Add(" cVenCode like @SupplierCode ");
|
||||
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(Params.SupplierName))
|
||||
if (!string.IsNullOrEmpty(Params.SupplierName))
|
||||
{
|
||||
where.Add(" cVenName like @SupplierName ");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user