lihao 4 vuotta sitten
vanhempi
commit
84bc178b82

+ 4 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/Order/OrderRepository.cs

@@ -42,7 +42,10 @@ namespace GxPress.Repository.Implement.Order
             var result = new PagedList<Entity.Order.Order>();
             var query = Q.NewQuery();
             if (!string.IsNullOrEmpty(request.KeyWord))
-                query.WhereLike(nameof(Entity.Order.Order.OrderNumber), $"%{request.KeyWord}%");
+            {
+                query.OrWhereLike(nameof(Entity.Order.Order.OrderNumber), $"%{request.KeyWord}%");
+                query.OrWhereLike(nameof(Entity.Order.Order.Explain), $"%{request.KeyWord}%");
+            }
             if (request.PayWay > 0)
                 query.Where(nameof(Entity.Order.Order.PayWay), request.PayWay);
             if (!string.IsNullOrEmpty(request.BeginTime) && !string.IsNullOrEmpty(request.EndTime))