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

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

@@ -435,11 +435,9 @@ class ScreenController extends BaseController
     public function capacity(Request $request){
     public function capacity(Request $request){
         $process = Process::where('del_time',0)->get()->toArray();
         $process = Process::where('del_time',0)->get()->toArray();
 
 
-        $list = DispatchSub::where('del_time',0)
-            ->where('dispatch_quantity','>=',0)
-            ->select('crt_time','dispatch_quantity')
-            ->orderBy('id','desc')
-            ->limit(20)
+        $list = ApplyOrderDetail::where('del_time',0)
+            ->where('type',ApplyOrder::type_one)
+            ->select('quantity as dispatch_quantity','crt_time')
             ->get()->toArray();
             ->get()->toArray();
 
 
         $return = [];
         $return = [];