wesmiler hai 1 mes
pai
achega
29bc9bb3e7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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));
             }
         }