cqp 11 月之前
父节点
当前提交
35c761320c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Http/Controllers/Api/ScreenController.php

+ 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")));
         $startOfDay = strtotime(date('Y-m-d 00:00:00', strtotime("-20days")));
 
 
         $result = DispatchSub::where('del_time',0)
         $result = DispatchSub::where('del_time',0)
-            ->where('dispatch_time_start',">=", $startOfDay)
+//            ->where('dispatch_time_start',">=", $startOfDay)
             ->where('finished_num',0)
             ->where('finished_num',0)
             ->select('dispatch_no as order_no','product_title','dispatch_quantity as product_num','process_id')
             ->select('dispatch_no as order_no','product_title','dispatch_quantity as product_num','process_id')
+            ->orderBy('id','desc')
+            ->limit(20)
             ->get()->toArray();
             ->get()->toArray();
 
 
         if(! empty($result)){
         if(! empty($result)){