123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- declare (strict_types=1);
- namespace app\dao\system\form;
- use app\dao\BaseDao;
- use app\model\system\form\SystemForm;
- class SystemFormDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return SystemForm::class;
- }
-
- public function getFormList(array $where, array $field = ['*'], int $page = 0, int $limit = 0)
- {
- return $this->search($where)->field($field)->where('is_del', 0)
- ->when($page && $limit, function($query) use ($page, $limit){$query->page($page, $limit);
- })->order('id desc')->select()->toArray();
- }
- }
|