feat: add syj promote workflow

This commit is contained in:
apple
2026-05-03 14:44:12 +08:00
parent 12c2431d4e
commit 0e07a65e3f
36 changed files with 1972 additions and 1 deletions

View 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;
}
}