diff --git a/app/controller/api/server/StoreOrder.php b/app/controller/api/server/StoreOrder.php index 49fb89e8..571d5182 100644 --- a/app/controller/api/server/StoreOrder.php +++ b/app/controller/api/server/StoreOrder.php @@ -405,4 +405,16 @@ class StoreOrder extends BaseController return app('json')->success($list); } + + /** + * 获取商户押金列表 + */ + public function getOrderAutoMarginList($merId){ + [$page, $limit] = $this->getPage(); + $select= Db::name('financial_record')->where('mer_id',$merId)->where('type',1) + ->where('financial_type','auto_margin')->where('financial_pm',0) + ->page($page)->limit($limit)->order('financial_record_id','desc')->select(); + return app('json')->success($select); + + } } diff --git a/route/api.php b/route/api.php index db68d84b..e4d5b088 100644 --- a/route/api.php +++ b/route/api.php @@ -340,6 +340,7 @@ Route::group('api/', function () { //管理员订单 Route::group('admin/:merId', function () { Route::get('/statistics', '/orderStatistics'); + Route::get('/auto_margin', '/getOrderAutoMarginList'); Route::get('/order_price', '/orderDetail'); Route::get('/order_list', '/orderList'); Route::get('/order/:id', '/order');