From f7f1f176f931f5ad54056df7b8e8a9f028eea100 Mon Sep 17 00:00:00 2001 From: 刘磊 <1161824510@qq.com> Date: 星期二, 17 十二月 2024 19:50:38 +0800 Subject: [PATCH] 合并 --- Code Management/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseServices/ServiceBase.cs | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseServices/ServiceBase.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseServices/ServiceBase.cs index 3baf401..329d55b 100644 --- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseServices/ServiceBase.cs +++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_Core/BaseServices/ServiceBase.cs @@ -82,7 +82,8 @@ //} //GetPageDataOnExecuted?.Invoke(pageGridData); - pageGridData = BaseDal.QueryPage(wheres, options.Page, options.Rows, orderbyDic); + pageGridData = BaseDal.QueryPage + (wheres, options.Page, options.Rows, orderbyDic); return pageGridData; } @@ -129,9 +130,9 @@ if (expressionType == LinqExpressionType.Equal) { if (string.IsNullOrEmpty(where)) - where += $"{searchParametersList[i].Name} = '{searchParametersList[i].Value}'"; + where += $"{searchParametersList[i].Name} like '%{searchParametersList[i].Value}%'"; else - where += $" and {searchParametersList[i].Name} = '{searchParametersList[i].Value}'"; + where += $" and {searchParametersList[i].Name} like '%{searchParametersList[i].Value}%'"; } else { -- Gitblit v1.9.3