feat: add syj promote workflow
This commit is contained in:
24
pro_v3.5.1/app/dao/syj/PromoteTaskRecordDao.php
Normal file
24
pro_v3.5.1/app/dao/syj/PromoteTaskRecordDao.php
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user