推广后台->财务管理->提现记录->结算单--更新

master
chenxiaojun 5 years ago
parent 58db110844
commit a29015937a

@ -509,7 +509,7 @@ class FinanceController extends BaseController
$map['withdraw_id'] = $withdrawId;
$data = M('spend', 'tab_')
->field('game_name,selle_ratio,pay_way,sum(pay_amount) as pay_amount_all,sum(if(selle_ratio > 0,pay_amount * selle_ratio,0)) as income')
->field('game_name,if(selle_ratio >= 0,selle_ratio,0) as selle_ratio,pay_way,sum(pay_amount) as pay_amount_all,sum(if(selle_ratio > 0,pay_amount * selle_ratio,0)) as income')
->where($map)
->group('game_id')
->order('game_id')

Loading…
Cancel
Save