36 lines
824 B
PHP
36 lines
824 B
PHP
<?php
|
|||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace plugin\produce\app\dao;
|
||
|
|
|
||
|
|
use core\base\BaseDao;
|
||
|
|
use Illuminate\Database\Eloquent\Collection;
|
||
|
|
use plugin\produce\app\model\StepStatus;
|
||
|
|
|
||
|
|
class StepStatusDao extends BaseDao
|
||
|
|
{
|
||
|
|
protected function setModel(): string
|
||
|
|
{
|
||
|
|
return StepStatus::class;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function selectList(
|
||
|
|
array $where,
|
||
|
|
string|array $field = '*',
|
||
|
|
int $page = 0,
|
||
|
|
int $limit = 0,
|
||
|
|
string $order = '',
|
||
|
|
array $with = [],
|
||
|
|
bool $search = false,
|
||
|
|
?array $withoutScopes = null
|
||
|
|
): ?Collection {
|
||
|
|
return parent::selectList($where, $field, $page, $limit, $order, ['step'], $search, $withoutScopes);
|
||
|
|
}
|
||
|
|
|
||
|
|
protected function getKeywordFields(): array
|
||
|
|
{
|
||
|
|
return ['status_code', 'status_name', 'description'];
|
||
|
|
}
|
||
|
|
}
|