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