From 1c157d78b9d0fa7bff9706353cd2740e0e59f7ad Mon Sep 17 00:00:00 2001
From: chenxiaojun <956334972@qq.com>
Date: Fri, 8 Nov 2019 11:03:02 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0->=E6=8E=A8?=
=?UTF-8?q?=E5=B9=BF=E5=91=98->=E7=BB=93=E7=AE=97=E7=AE=A1=E7=90=86->?=
=?UTF-8?q?=E6=8E=A8=E5=B9=BF=E6=8F=90=E7=8E=B0->=E8=AE=A2=E5=8D=95?=
=?UTF-8?q?=E8=AF=A6=E6=83=85--=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controller/QueryController.class.php | 31 +++++++----
Application/Admin/View/Query/withdraw.html | 2 +-
.../Admin/View/Query/withdrawDetails.html | 51 +++++++++++--------
3 files changed, 50 insertions(+), 34 deletions(-)
diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php
index 6d3c88f7f..63e4428a5 100644
--- a/Application/Admin/Controller/QueryController.class.php
+++ b/Application/Admin/Controller/QueryController.class.php
@@ -871,18 +871,27 @@ class QueryController extends ThinkController
$this->display();
}
- public function withdrawDetails($settlement_number = '')
+ public function withdrawDetails($id)
{
- $map['settlement_number'] = $settlement_number;
- $data = M('TotalSettlement', 'tab_')->where($map)->find();
- $settMap['promote_id'] = $data['promote_id'];
- $settMap['starttime'] = $data['starttime'];
- $settMap['endtime'] = $data['endtime'];
- $settMap['create_time'] = $data['create_time'];
- $dataSett = M('settlement', 'tab_')->where($settMap)->select();
- $total = M('settlement', 'tab_')->where($settMap)->sum('sum_money');
- $this->assign('list_data', $dataSett);
- $this->assign('total', $total);
+ $id = intval($id);
+ $map['withdraw_id'] = $id;
+ $data = M('Spend', 'tab_')
+ ->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();
+
+ //提现状态
+ $withdrawStatus = M('withdraw', 'tab_')
+ ->where(array('id' => $id))
+ ->getField('status');
+ $withdrawStatus = \Home\Controller\FinanceController::$withdrawStatus[$withdrawStatus];
+
+ foreach ($data as &$list) {
+ $list['income'] = bcmul($list['pay_amount'], bcdiv($list['selle_ratio'], 100, 2), 2);
+ $list['pay_time'] = date('Y-m-d H:i:s', $list['pay_time']);
+ }
+
+ $this->assign('listData', $data);
+ $this->assign('withdrawStatus', $withdrawStatus);
$this->display();
}
diff --git a/Application/Admin/View/Query/withdraw.html b/Application/Admin/View/Query/withdraw.html
index d9f71f886..f2e443be4 100644
--- a/Application/Admin/View/Query/withdraw.html
+++ b/Application/Admin/View/Query/withdraw.html
@@ -145,7 +145,7 @@