修复错误

This commit is contained in:
admin
2021-01-22 13:35:15 +08:00
parent e3e8a0ce67
commit eb296d39bc
2 changed files with 18 additions and 17 deletions

View File

@@ -32,13 +32,13 @@ namespace NX.ERP.U8
public IEnumerable<Customer> GetList(NX.ERP.Model.Request.Customer Params)
{
IList<string> where = new List<string>();
if (string.IsNullOrEmpty(Params.CustomerCode))
if (!string.IsNullOrEmpty(Params.CustomerCode))
{
where.Add(" cCusCode like @CustomerCode ");
}
if (string.IsNullOrEmpty(Params.CustomerName))
if (!string.IsNullOrEmpty(Params.CustomerName))
{
where.Add(" cCusName like @CustomerName ");
}