select($select) -> join('st_bet_str','money_buy_str.bet_str_id','=','st_bet_str.id') -> where($moneyBuyWhere) -> whereBetween('money_time', $moneyBuyBetween) -> offset($begin) -> limit($pageSize) -> orderBy($orderBy) -> get(); return $result; } /** * 投注记录总数 * * @access public * @param mixed $moneyBuyWhere 查询条件 * @param mixed $moneyBuyBetween 查询条件区间 * @return array JsonString */ public function moneyBuyTotal($moneyBuyWhere, $moneyBuyBetween) { $result = $this -> where($moneyBuyWhere) -> whereBetween('money_time', $moneyBuyBetween) -> count(); return $result; } }