|
@@ -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 = [];
|