feat: add syj promote workflow
This commit is contained in:
21
pro_v3.5.1/app/dao/syj/PromoteUserAmountDao.php
Normal file
21
pro_v3.5.1/app/dao/syj/PromoteUserAmountDao.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace app\dao\syj;
|
||||
|
||||
use app\dao\BaseDao;
|
||||
use app\model\syj\PromoteUserAmount;
|
||||
|
||||
class PromoteUserAmountDao extends BaseDao
|
||||
{
|
||||
protected function setModel(): string
|
||||
{
|
||||
return PromoteUserAmount::class;
|
||||
}
|
||||
|
||||
public function lockByUid(int $uid): ?array
|
||||
{
|
||||
$row = $this->getModel()->where('uid', $uid)->lock(true)->find();
|
||||
return $row ? $row->toArray() : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user