|
|
|
@ -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'] = '<span style="color: #999;">' . $record['status_text'] . '</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$this->assign('records', $records);
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|