|
|
@ -125,16 +125,17 @@ class FinanceController extends BaseController
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
|
->find();
|
|
|
|
->find();
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($income as &$value) {
|
|
|
|
|
|
|
|
$value = bcdiv($value, 100, 2);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$withdrawMap['promote_id'] = $this->loginPromote['id'];
|
|
|
|
$withdrawMap['promote_id'] = $this->loginPromote['id'];
|
|
|
|
$withdrawMap['status'] = ['neq', 2];
|
|
|
|
$withdrawMap['status'] = ['neq', 2];
|
|
|
|
|
|
|
|
|
|
|
|
//已提现总额
|
|
|
|
//已提现总额
|
|
|
|
$income['withdrawn_amount'] = M('withdraw', 'tab_')->field('sum(sum_money) as withdrawn_amount')->where($withdrawMap)->find()['withdrawn_amount'];
|
|
|
|
$income['withdrawn_amount'] = M('withdraw', 'tab_')->field('sum(sum_money) as withdrawn_amount')->where($withdrawMap)->find()['withdrawn_amount'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($income as &$value) {
|
|
|
|
|
|
|
|
$value = bcdiv($value, 100, 2);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$withdrawMap['status'] = ['not in', [-2, -1]];
|
|
|
|
$withdrawns = M('withdraw', 'tab_')->field('settlement_begin_time, settlement_end_time')
|
|
|
|
$withdrawns = M('withdraw', 'tab_')->field('settlement_begin_time, settlement_end_time')
|
|
|
|
->where($withdrawMap)
|
|
|
|
->where($withdrawMap)
|
|
|
|
->select();
|
|
|
|
->select();
|
|
|
|