From 56b8c16983ff446c7b08c7a1351e559713d2b13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 1 Jul 2024 09:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E6=9B=B4=E6=96=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/v1/statistic/FlowStatistic.php | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php diff --git a/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php b/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php new file mode 100644 index 000000000..b6094e392 --- /dev/null +++ b/crmeb/app/adminapi/controller/v1/statistic/FlowStatistic.php @@ -0,0 +1,74 @@ + +// +---------------------------------------------------------------------- + +namespace app\adminapi\controller\v1\statistic; + +use app\adminapi\controller\AuthController; +use app\services\statistic\CapitalFlowServices; +use think\facade\App; + +class FlowStatistic extends AuthController +{ + /** + * @param App $app + * @param CapitalFlowServices $services + */ + public function __construct(App $app, CapitalFlowServices $services) + { + parent::__construct($app); + $this->services = $services; + } + + /** + * 资金流水 + * @return mixed + */ + public function getFlowList() + { + $where = $this->request->getMore([ + ['time', ''], + ['trading_type', 0], + ['keywords', ''], + ['ids', ''], + ['export', 0] + ]); + $date = $this->services->getFlowList($where); + return app('json')->success($date); + } + + /** + * 资金流水备注 + * @param $id + * @return mixed + */ + public function setMark($id) + { + $data = $this->request->postMore([ + ['mark', ''] + ]); + $this->services->setMark($id, $data); + return app('json')->success(100024); + } + + /** + * 账单记录 + * @return mixed + */ + public function getFlowRecord() + { + $where = $this->request->getMore([ + ['type', 'day'], + ['time', ''] + ]); + $data = $this->services->getFlowRecord($where); + return app('json')->success($data); + } +}