|
@@ -29,9 +29,17 @@ class TaxiUserWithdraw extends AdminController
|
|
|
= ['mobile', 'like', '%'.input('keyword').'%'];
|
|
= ['mobile', 'like', '%'.input('keyword').'%'];
|
|
|
|
|
|
|
|
$withdraw = model('common/TaxiUsersWithdraw');
|
|
$withdraw = model('common/TaxiUsersWithdraw');
|
|
|
-
|
|
|
|
|
- return IResponse::paginate($withdraw->where($where)->order(['created_at'=>'desc'])->with(['user','taxiUser'])
|
|
|
|
|
- ->paginate(input('limit'),false));
|
|
|
|
|
|
|
+ $list = $withdraw->where($where)->order(['created_at'=>'desc'])->with(['user','taxiUser'])
|
|
|
|
|
+ ->paginate(input('limit'),false);
|
|
|
|
|
+ //return IResponse::paginate();
|
|
|
|
|
+ return IResponse::success([
|
|
|
|
|
+ 'total' => $list->total(),
|
|
|
|
|
+ 'counts' => [
|
|
|
|
|
+ 'wait'=>$withdraw->where($where)->where(['status'=>10])->order(['created_at'=>'desc'])->sum('amount'),
|
|
|
|
|
+ 'success'=>$withdraw->where($where)->where(['status'=>20])->order(['created_at'=>'desc'])->sum('amount')
|
|
|
|
|
+ ],
|
|
|
|
|
+ 'list' => $list->getCollection(),
|
|
|
|
|
+ ]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|