join('article','money_buy.info_identity','=','article.identity') -> select($select) -> 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; } }