| 12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\common\model;
- use think\Model;
- class Recharge extends Model
- {
- public $page_info;
- /**
- * 充值列表
- * @access public
- * @author csdeshang
- * @param array $condition 条件
- * @param string $field 字段
- * @param number $page 分页
- * @param string $order 排序
- * @return array
- */
- public function getRechargeList($condition = array(), $field = '*', $page = 0, $order = 'recharge_id desc')
- {
- $user_list = $this
- ->alias('a')
- ->join('user b','b.user_id = a.user_id')
- ->where($condition)
- ->order($order)
- ->paginate($page, false, ['query' => request()->param()]);
- $this->page_info = $user_list;
- return $user_list->items();
- }
- }
|