36 lines
826 B
PHP
36 lines
826 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\ProcessStep;
|
|
|
|
class ProcessStepDao extends BaseDao
|
|
{
|
|
protected function setModel(): string
|
|
{
|
|
return ProcessStep::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, ['process'], $search, $withoutScopes);
|
|
}
|
|
|
|
protected function getKeywordFields(): array
|
|
{
|
|
return ['step_code', 'step_name', 'description'];
|
|
}
|
|
}
|