You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_php/application/merchant/controller/finance/Finance.php

128 lines
3.6 KiB

9 months ago
<?php
// +----------------------------------------------------------------------
// | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2020 https://www.tczxkj.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权
// +----------------------------------------------------------------------
// | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397
// +----------------------------------------------------------------------
namespace app\merchant\controller\finance;
use app\merchant\controller\AuthController;
use service\JsonService as Json;
use app\merchant\model\merchant\MerchantFlowingWater;
use app\merchant\model\merchant\Merchant;
use app\merchant\model\merchant\MerchantBill;
use service\SystemConfigService;
use service\FormBuilder as Form;
use service\HookService;
use think\Url;
use app\merchant\model\user\User;
use app\merchant\model\user\UserExtract;
/**
* 微信充值记录
* Class Finance
*/
class Finance extends AuthController
{
/**讲师流水
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function merbill()
{
return $this->fetch();
}
/**
* 显示资金记录ajax列表
*/
public function merbilllist()
{
$where = parent::getMore([
['start_time', ''],
['end_time', ''],
['limit', 20],
['page', 1],
['category', 'now_money'],
]);
$where['mer_id'] = $this->merchantId;
return Json::successlayui(MerchantBill::getBillList($where));
}
/**
*保存资金监控的excel表格
*/
public function save_mer_bell_export()
{
$where = parent::getMore([
['start_time', ''],
['end_time', ''],
['category', 'now_money'],
]);
$where['mer_id'] = $this->merchantId;
MerchantBill::SaveExport($where);
}
/**金币流水
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function mer_gold_bill()
{
return $this->fetch('mer_gold_bill');
}
/**订单分成
* @return mixed
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function merOrderBill()
{
return $this->fetch('mer_order_bill');
}
/**
* 订单分成列表
*/
public function merOrderBillList()
{
$where = parent::getMore([
['start_time', ''],
['end_time', ''],
['nickname', ''],
['limit', 20],
['page', 1],
]);
$where['mer_id'] = $this->merchantId;
return Json::successlayui(MerchantFlowingWater::getBillList($where));
}
/**
*保存资金监控的excel表格
*/
public function save_mer_order_bell_export()
{
$where = parent::getMore([
['start_time', ''],
['end_time', ''],
['nickname', ''],
]);
$where['mer_id'] = $this->merchantId;
MerchantFlowingWater::SaveExport($where);
}
}