| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace App\Http\Controllers\Admin;
- use App\Services\Common\FinancialService;
- /**
- * 财务管理控制器
- */
- class FinancialController extends Backend
- {
- /**
- * 获取数据统计
- */
- public function statistics()
- {
- $financialService = new FinancialService();
- return $financialService->getStatistics($this->storeId);
- }
- /**
- * 获取统计列表(按年月日分组)
- */
- public function getList()
- {
- $params = request()->all();
- $params['store_id'] = $this->storeId; // 添加商户ID用于数据隔离
-
- $financialService = new FinancialService();
- return $financialService->getStatisticsList($params);
- }
- }
|