|
|
|
@ -136,7 +136,7 @@ class SpendCountSetController extends \Think\Controller
|
|
|
|
|
}
|
|
|
|
|
$field = "IFNULL(game.partner_id,0) partner_id,partner.partner partner_name,
|
|
|
|
|
spend.promote_id,spend.promote_account,spend.game_id,spend.game_name,sum(pay_amount) {$type},
|
|
|
|
|
IFNULL(promote.level,0) level,promote.chain,
|
|
|
|
|
IFNULL(promote.level,0) level,IFNULL(promote.chain,'/') chain,
|
|
|
|
|
'{$this->date}' as count_date,'{$this->nowdata}' as create_time";
|
|
|
|
|
$spendRes = M()
|
|
|
|
|
->table("tab_spend spend")
|
|
|
|
|