feat: add syj promote workflow
This commit is contained in:
23
pro_v3.5.1/app/dao/syj/PromoteAmountLogDao.php
Normal file
23
pro_v3.5.1/app/dao/syj/PromoteAmountLogDao.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user