cqp 11 сар өмнө
parent
commit
35c761320c

+ 3 - 1
app/Http/Controllers/Api/ScreenController.php

@@ -469,9 +469,11 @@ class ScreenController extends BaseController
         $startOfDay = strtotime(date('Y-m-d 00:00:00', strtotime("-20days")));
 
         $result = DispatchSub::where('del_time',0)
-            ->where('dispatch_time_start',">=", $startOfDay)
+//            ->where('dispatch_time_start',">=", $startOfDay)
             ->where('finished_num',0)
             ->select('dispatch_no as order_no','product_title','dispatch_quantity as product_num','process_id')
+            ->orderBy('id','desc')
+            ->limit(20)
             ->get()->toArray();
 
         if(! empty($result)){