['lang_id', 'name', 'is_show'], ]; } /** * @notes 获取可提现银行列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author BD * @date 2024/02/25 12:19 */ public function lists(): array { return WithdrawBank::where($this->searchWhere) ->append(['lang_name']) ->field(['id', 'lang_id', 'name', 'code', 'logo', 'is_show', 'sort']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取可提现银行数量 * @return int * @author BD * @date 2024/02/25 12:19 */ public function count(): int { return WithdrawBank::where($this->searchWhere)->count(); } }