['id'], '%like%' => ['title'], ]; } /** * @notes 获取拼团权益卡列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2025/03/13 10:31 */ public function lists(): array { $list = GroupEquity::where($this->searchWhere) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); return $list; } /** * @notes 获取拼团权益卡数量 * @return int * @author likeadmin * @date 2025/03/13 10:31 */ public function count(): int { return GroupEquity::where($this->searchWhere)->count(); } }