diff --git a/app/controller/api/dataview/Finance.php b/app/controller/api/dataview/Finance.php new file mode 100644 index 00000000..e96c9617 --- /dev/null +++ b/app/controller/api/dataview/Finance.php @@ -0,0 +1,47 @@ +repository = $repository; + $this->areaCode = $this->request->param('areaCode', ''); + $this->streetCode = $this->request->param('streetCode', ''); + + if ($this->areaCode == '' && $this->streetCode == '') { + throw new ValidateException('请选择地区'); + } + } + + public function withdrawList(UserExtractRepository $repository) + { + [$page,$limit] = $this->getPage(); + $where = $this->request->params(['status','keyword','date','extract_type']); + return app('json')->success($repository->getList($where,$page,$limit)); + } + + public function billList(UserBillRepository $repository) + { + [$page, $limit] = $this->getPage(); + $where = $this->request->params(['keyword', 'date', 'type']); + return app('json')->success($repository->getList($where, $page, $limit)); + } +} \ No newline at end of file diff --git a/app/controller/api/dataview/Order.php b/app/controller/api/dataview/Order.php index 82d04d42..a40535e9 100755 --- a/app/controller/api/dataview/Order.php +++ b/app/controller/api/dataview/Order.php @@ -23,11 +23,6 @@ class Order extends BaseController public $streetCode; // 镇街道地区码 - /** - * StoreBrand constructor. - * @param App $app - * @param repository $repository - */ public function __construct(App $app, BaseRepository $repository) { parent::__construct($app); diff --git a/route/api.php b/route/api.php index 6b172c12..07025988 100644 --- a/route/api.php +++ b/route/api.php @@ -756,6 +756,12 @@ Route::group('api/', function () { // api.dataview.Merchant Route::get('merchant_list', 'Merchant/merchantList'); + // api.dataview.Finance + Route::get('withdraw_list', 'Finance/withdrawList'); + Route::get('bill_list', 'Finance/billList'); + + + /**---------------------数据之眼可视化大屏api-------------------- end */