join('article','money_prize.info_identity','=','article.identity') -> where($prizeRecordWhere) -> whereBetween('money_time', $prizeRecordBetween) -> offset($begin) -> limit($pageSize) -> orderBy($orderBy) -> get(); return $result; } /** * 中奖记录总数 * * @access public * @param mixed $prizeRecordWhere 查询条件 * @param mixed $prizeRecordBetween 查询条件区间 * @return array JsonString */ public function prizeRecordTotal($prizeRecordWhere, $prizeRecordBetween) { $result = $this -> where($prizeRecordWhere) -> whereBetween('money_time', $prizeRecordBetween) -> count(); return $result; } }