lihao 4 年之前
父節點
當前提交
c7cb7be2f6
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      gx_api/GxPress/Repository/GxPress.Repository.Implement/Order/OrderRepository.cs

+ 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);