wesmiler 1 miesiąc temu
rodzic
commit
29bc9bb3e7
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      app/Services/Common/OrderService.php

+ 2 - 2
app/Services/Common/OrderService.php

@@ -102,10 +102,10 @@ class OrderService extends BaseService
             $start = $date[0] ?? '';
             $end = $date[1] ?? '';
             if ($start) {
-                $query->where('a.create_time', '>=', strtotime($start));
+                $query->where('create_time', '>=', strtotime($start));
             }
             if ($end && $start < $end) {
-                $query->where('a.create_time', '<=', strtotime($end));
+                $query->where('create_time', '<=', strtotime($end));
             }
         }