// +---------------------------------------------------------------------- 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')); } }