推广结算--更新

master
chenxiaojun 5 years ago
parent 053417f7f8
commit 311aeffbb7

@ -123,6 +123,7 @@ class QueryController extends ThinkController
$this->display(); $this->display();
} }
} elseif ($group == 2) { } elseif ($group == 2) {
$map = '1 = 1';
$createTime = strtotime(I('create_time', '')); $createTime = strtotime(I('create_time', ''));
if ($createTime) { if ($createTime) {
$createTimeEnd = $createTime + 3600 * 24 - 1; $createTimeEnd = $createTime + 3600 * 24 - 1;
@ -132,7 +133,20 @@ class QueryController extends ThinkController
$map['promote_id'] = $promoteId; $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'] = '<span style="color: #999;">' . $record['status_text'] . '</span>';
}
}
}
$this->assign('records', $records);
$this->display(); $this->display();
} }
} }

Loading…
Cancel
Save