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,24 @@
<?php
declare(strict_types=1);
namespace app\dao\syj;
use app\dao\BaseDao;
use app\model\syj\PromoteTaskRecord;
class PromoteTaskRecordDao extends BaseDao
{
protected function setModel(): string
{
return PromoteTaskRecord::class;
}
public function getTaskRecords(int $taskId, int $uid = 0): array
{
$model = $this->getModel()->where('task_id', $taskId);
if ($uid > 0) {
$model = $model->where('uid', $uid);
}
return $model->order('step_no', 'asc')->select()->toArray();
}
}