cqp 3 сар өмнө
parent
commit
de06a73193

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

@@ -435,11 +435,9 @@ class ScreenController extends BaseController
     public function capacity(Request $request){
         $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();
 
         $return = [];