['order_sn','user_id', 'amount', 'status'], ]; } /** * @notes 搜索条件 * @author 段誉 * @date 2023/2/24 15:26 */ public function queryWhere() { $where = []; // 用户余额 return $where; } /** * @notes 获取列表 * @return array * @author 段誉 * @date 2023/2/24 15:31 */ public function lists(): array { $lists = Withdraw::where($this->searchWhere) ->with('user') ->where($this->queryWhere()) ->order('id', 'desc') ->limit($this->limitOffset, $this->limitLength) ->select() ->toArray(); return $lists; } /** * @notes 获取数量 * @return int * @author 段誉 * @date 2023/2/24 15:36 */ public function count(): int { return Withdraw::where($this->queryWhere()) ->where($this->searchWhere) ->count(); } }