Files
huangjingfen/pro_v3.5.1/app/dao/syj/PromoteAmountLogDao.php

24 lines
571 B
PHP
Raw Normal View History

2026-05-03 14:44:12 +08:00
<?php
declare(strict_types=1);
namespace app\dao\syj;
use app\dao\BaseDao;
use app\model\syj\PromoteAmountLog;
class PromoteAmountLogDao extends BaseDao
{
protected function setModel(): string
{
return PromoteAmountLog::class;
}
public function getUserList(int $uid, int $page, int $limit): array
{
$model = $this->getModel()->where('uid', $uid);
$count = (clone $model)->count();
$list = $model->order('add_time', 'desc')->page($page, $limit)->select()->toArray();
return compact('list', 'count');
}
}