From eae9077f3978f695f4e3af5301e8a08bdd8bf23c Mon Sep 17 00:00:00 2001
From: 肖洋 <cathay_xy@163.com>
Date: 星期一, 09 十二月 2024 09:24:46 +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