123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace app\dao\system\config;
- use app\dao\BaseDao;
- use app\model\system\config\SystemConfigTab;
- class SystemConfigTabDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return SystemConfigTab::class;
- }
-
- public function getConfigTabAll(array $searchWhere, array $field = ['*'], array $where = [])
- {
- return $this->search($searchWhere)->when(count($where), function ($query) use ($where) {
- $query->where($where);
- })->field($field)->order('sort desc,id asc')->select()->toArray();
- }
-
- public function getConfgTabList(array $where, int $page, int $limit)
- {
- return $this->search($where)->order('sort desc,id asc')->page($page, $limit)->select();
- }
- }
|