123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?php
- // +----------------------------------------------------------------------
- // | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2017~2021 https://www.yiovo.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行
- // +----------------------------------------------------------------------
- // | Author: 萤火科技 <admin@yiovo.com>
- // +----------------------------------------------------------------------
- declare (strict_types = 1);
- namespace app\store\controller\statistics;
- use app\store\controller\Controller;
- use app\store\model\ShopsMonthlyBonusSt;
- use app\store\model\User;
- use app\store\model\user\BonusHistory;
- use app\store\model\user\CommissionDetail;
- use app\store\service\statistics\Data as StatisticsDataService;
- /**
- * 财务统计模块
- * Class Data
- * @package app\store\controller\statistics
- */
- class Finance extends Controller
- {
- /**
- * 推荐官业绩及佣金列表-基本佣金
- * @return array
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function commerBaseStat()
- {
- $params = $this->request->param();
- //推荐官基本佣金
- $m = new User();
- $data = $m->financeCommerStat($params);
- return $this->renderSuccess(compact('data'));
- }
- /**
- * 推荐官基本佣金明细
- * @return array
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function commerBaseDetails()
- {
- $params = $this->request->param();
- //推荐官基本佣金
- $m = new CommissionDetail();
- $data = $m->commerDetails($params);
- return $this->renderSuccess(compact('data'));
- }
- /**
- * 门店个人奖励金列表
- * @return array
- * @author: zjwhust
- * @Time: 2022/5/12 14:15
- */
- public function shopBonusList()
- {
- $model = new BonusHistory();
- $list = $model->shopBonusList($this->request->param());
- return $this->renderSuccess(compact('list'));
- }
- /**
- * 门店个人奖励金明细
- * @return array
- * @author: zjwhust
- * @Time: 2022/5/13 9:24
- */
- public function shopBonusDetail()
- {
- $model = new BonusHistory();
- $list = $model->shopBonusDetail($this->request->param());
- return $this->renderSuccess(compact('list'));
- }
- /**
- * 门店销售额及佣金-达量奖励金
- * @return array
- * @author: zjwhust
- * @Time: 2022/5/13 9:36
- */
- public function shopBonusStat()
- {
- $model = new ShopsMonthlyBonusSt();
- $list = $model->shopBonusStat($this->request->param());
- return $this->renderSuccess(compact('list'));
- }
- /**
- * 推荐官业绩及佣金列表-达量奖励金
- * @return array
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function commerBonusStat(){
- $params = $this->request->param();
- $m = new User();
- $data = $m->financeCommerBonusStat($params);
- return $this->renderSuccess(compact('data'));
- }
- /**
- * 推荐官奖励金明细
- * @return array
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function commerBonusDetails(){
- $params = $this->request->param();
- $m = new BonusHistory();
- $data = $m->commerDetails($params);
- return $this->renderSuccess(compact('data'));
- }
- }
|