shensong %!s(int64=5) %!d(string=hace) años
padre
commit
6d325828c2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/Admin/StatisticsController.php

+ 1 - 1
app/Http/Controllers/Admin/StatisticsController.php

@@ -4922,7 +4922,7 @@ class StatisticsController extends Controller
4922 4922
 
4923 4923
         $offset = ($page-1) * $pageSize;
4924 4924
         $count = CustomerOrderDay::count();
4925
-        $data = CustomerOrderDay::offset($offset)->limit($pageSize)->get();
4925
+        $data = CustomerOrderDay::offset($offset)->limit($pageSize)->orderBy('id','desc')->get();
4926 4926
 
4927 4927
         if ($count > 1) {
4928 4928
             // 总页数