[代理与结算]代理结算周期

This commit is contained in:
2026-04-15 18:06:04 +08:00
parent 080ead200b
commit 7e695d32cf
6 changed files with 221 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace app\admin\controller\agent;
use app\common\controller\Backend;
use support\Response;
use Webman\Http\Request as WebmanRequest;
/**
* 代理结算周期
*/
class SettlementPeriod extends Backend
{
protected ?object $model = null;
protected string|array $preExcludeFields = ['id', 'create_time', 'update_time'];
protected string|array $quickSearchField = ['id', 'settlement_no', 'remark'];
protected string|array $defaultSortField = ['id' => 'desc'];
protected string|array $orderGuarantee = ['id' => 'desc'];
protected bool $modelValidate = false;
protected function initController(WebmanRequest $request): ?Response
{
$this->model = new \app\common\model\AgentSettlementPeriod();
return null;
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace app\common\model;
use support\think\Model;
class AgentSettlementPeriod extends Model
{
protected $name = 'agent_settlement_period';
protected $autoWriteTimestamp = true;
protected $type = [
'create_time' => 'integer',
'update_time' => 'integer',
'period_start_at' => 'integer',
'period_end_at' => 'integer',
'total_bet_amount' => 'string',
'total_payout_amount' => 'string',
'platform_profit_amount' => 'string',
'status' => 'integer',
];
}