diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index 811ef56b4..8293239b0 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -886,11 +886,18 @@ class QueryController extends ThinkController public function withdrawDetails($id) { + $page = intval(I('p', 1)); + $row = intval(I('row', 10)); $id = intval($id); $map['withdraw_id'] = $id; - $data = M('Spend', 'tab_') + $model = M('Spend', 'tab_'); + $data = $model ->field('pay_order_number,game_name,user_account,promote_account,pay_amount,pay_way,if(selle_ratio >= 0,selle_ratio,0) as selle_ratio,pay_time,selle_status,pay_status,withdraw_id') - ->where($map)->select(); + ->where($map) + ->order('id desc') + ->page($page, $row) + ->select(); + $count = $model->where($map)->count('id'); //提现状态 $withdrawStatus = M('withdraw', 'tab_') @@ -903,6 +910,10 @@ class QueryController extends ThinkController $list['pay_time'] = date('Y-m-d H:i:s', $list['pay_time']); } + $page = set_pagination($count, $row); + if ($page) { + $this->assign('_page', $page); + } $this->assign('listData', $data); $this->assign('withdrawStatus', $withdrawStatus); $this->display(); diff --git a/Application/Admin/View/Query/withdrawDetails.html b/Application/Admin/View/Query/withdrawDetails.html index b6067b5de..17fb51e33 100644 --- a/Application/Admin/View/Query/withdrawDetails.html +++ b/Application/Admin/View/Query/withdrawDetails.html @@ -9,6 +9,10 @@ + +