推广结算--更新

master
chenxiaojun 5 years ago
parent 0e5be6e4a3
commit cda8e4c1c0

@ -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();
}
}

@ -152,22 +152,25 @@
<th>结算开始时间</th>
<th>结算截止时间</th>
<th>提现时间</th>
<th>详情</th>
<th>提现状态</th>
<th>说明</th>
<th>操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<volist name="list_data" id="data">
<volist name="records" id="record">
<tr>
<td></td>
<td>{$data.settlement_number}</td>
<td>{$data.total_money}</td>
<td>{$data.create_time|date='Y-m-d',###}</td>
<td>{$data.create_time|date='Y-m-d',###}</td>
<td>{$data.create_time|date='Y-m-d',###}</td>
<td>{$data.create_time|date='Y-m-d',###}</td>
<td>{$data.create_time|date='Y-m-d',###}</td>
<td>{$record.promote_account}</td>
<td>{$record.widthdraw_number}</td>
<td>{$record.sum_money}</td>
<td>{$record.settlement_begin_time}</td>
<td>{$record.settlement_end_time}</td>
<td>{$record.create_time}</td>
<td>{$record.status_text}</td>
<td>{$record.respond}</td>
<td></td>
</tr>
</volist>
<tr class="data_summary">

Loading…
Cancel
Save