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

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

@@ -76,8 +76,8 @@ namespace GxPress.Repository.Implement.Order
             {
                 if (DateTime.TryParse(request.BeginTime, out var BeginTime) && DateTime.TryParse(request.EndTime, out var EndTime))
                 {
-                    query.WhereTime(nameof(Entity.Order.Order.CreatedDate), ">", BeginTime);
-                    query.WhereTime(nameof(Entity.Order.Order.CreatedDate), "<", EndTime);
+                    query.WhereDate(nameof(Entity.Order.Order.CreatedDate), ">", BeginTime);
+                    query.WhereDate(nameof(Entity.Order.Order.CreatedDate), "<", EndTime);
                 }
             }
             result.Total = await _repository.CountAsync(query);