searchWhere) ->order('sort', 'desc') ->limit($this->limitOffset, $this->limitLength) ->select() ->each(function ($item) { $item['tips'] = json_decode($item['tips']); }) ->toArray(); } /** * @notes 统计 * @return int * @throws @\think\db\exception\DbException * @author L * @date 2024-07-10 09:40:09 */ public function count(): int { return Staff::where($this->searchWhere)->count(); } /** * @notes 搜索条件 * @return array * @author L * @date 2024-07-10 09:40:09 */ public function setSearch(): array { return [ "%like%" => ['name'], ]; } }