select($moneyRecordSelect) -> where($moneyRecordWhere) -> whereBetween('money_time', $moneyRecordBetween) -> offset($begin) -> limit($pageSize) -> orderBy($orderBy) -> get(); return $result; } /** * 盈亏记录总数 * * @access public * @param mixed $moneyRecordWhere 查询条件 * @param mixed $moneyRecordBetween 查询条件区间 * @return array JsonString */ public function moneyRecordTotal($moneyRecordWhere, $moneyRecordBetween) { $result = $this -> where($moneyRecordWhere) -> whereBetween('money_time', $moneyRecordBetween) -> count(); return $result; } }