From 311aeffbb7c0335574897959092c5323bf97df9b Mon Sep 17 00:00:00 2001 From: chenxiaojun <956334972@qq.com> Date: Mon, 30 Dec 2019 14:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=B9=BF=E7=BB=93=E7=AE=97--=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/QueryController.class.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/QueryController.class.php b/Application/Admin/Controller/QueryController.class.php index 49bf60ecb..22631c5e9 100644 --- a/Application/Admin/Controller/QueryController.class.php +++ b/Application/Admin/Controller/QueryController.class.php @@ -123,6 +123,7 @@ class QueryController extends ThinkController $this->display(); } } elseif ($group == 2) { + $map = '1 = 1'; $createTime = strtotime(I('create_time', '')); if ($createTime) { $createTimeEnd = $createTime + 3600 * 24 - 1; @@ -132,7 +133,20 @@ class QueryController extends ThinkController $map['promote_id'] = $promoteId; } - $records = M('withdraw', 'tab_'); + $records = M('withdraw', 'tab_')->where($map)->select(); + if (!empty($records)) { + foreach ($records as &$record) { + $record['settlement_begin_time'] = date('Y-m-d H:i:s', $record['settlement_begin_time']); + $record['settlement_end_time'] = date('Y-m-d H:i:s', $record['settlement_end_time']); + $record['create_time'] = date('Y-m-d H:i:s', $record['create_time']); + $record['status_text'] = promoteWithdrawStatus($record['status']); + if ($record['status'] == -2) { + $record['status_text'] = '' . $record['status_text'] . ''; + } + } + } + + $this->assign('records', $records); $this->display(); } }