lihao пре 4 година
родитељ
комит
c7cb7be2f6

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

@@ -43,8 +43,7 @@ namespace GxPress.Repository.Implement.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.Explain), $"%{request.KeyWord}%");
+                query.WhereLike(nameof(Entity.Order.Order.OrderNumber), $"%{request.KeyWord}%").OrWhereLike(nameof(Entity.Order.Order.Explain), $"%{request.KeyWord}%");
             }
             if (request.PayWay > 0)
                 query.Where(nameof(Entity.Order.Order.PayWay), request.PayWay);