searchWhere[] = ['user_id', '=', $this->userId]; return WorkConfig::where($this->searchWhere) ->order('id', 'desc') ->limit($this->limitOffset, $this->limitLength) ->select() ->toArray(); } /** * @notes 统计 * @return int * @throws @\think\db\exception\DbException * @author L * @date 2024-08-22 15:06:34 */ public function count(): int { $this->searchWhere[] = ['user_id', '=', $this->userId]; return WorkConfig::where($this->searchWhere)->count(); } /** * @notes 搜索条件 * @return array * @author L * @date 2024-08-22 15:06:34 */ public function setSearch(): array { return []; } }