推广后台->财务管理->结算明细--更新

master
chenxiaojun 5 years ago
parent 30aff2bd38
commit 1d6ce31515

@ -55,7 +55,7 @@ class FinanceController extends BaseController
$map['pay_time'] = ['between', [$begTime, $endTime + 86399]];
}
$data = $model->field('pay_order_number,game_name,user_account,promote_account,pay_amount,pay_way,selle_ratio,convert(pay_amount*selle_ratio,decimal(10,2)) as income,pay_time,pay_status')
$data = $model->field('pay_order_number,game_name,user_account,promote_account,pay_amount,pay_way,selle_ratio,convert(pay_amount*selle_ratio,decimal(10,2)) as income,pay_time,selle_status')
->where($map)
->order('id desc')
->page($page, $row)
@ -63,7 +63,14 @@ class FinanceController extends BaseController
$count = $model->where($map)->count();
foreach ($data as &$list) {
$list['pay_status'] = ($list['pay_status'] == 0) ? '失败' : '成功';
switch ($list['selle_status']) {
case 0:
$list['selle_status'] = '未提现';
break;
default:
$list['selle_status'] = '';
break;
}
$list['pay_time'] = date('Y-m-d H:i:s', $list['pay_time']);
}

@ -136,7 +136,7 @@
<td>{$vo.selle_ratio}%|{$vo.selle_ratio}%</td>
<td>{$vo.income}</td>
<td>{$vo.pay_time}</td>
<td>{$vo.pay_status}</td>
<td>{$vo.selle_status}</td>
</tr>
</volist>
</empty>

Loading…
Cancel
Save