|
@@ -190,12 +190,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
a.pid as pid,
|
|
|
IFNULL((LENGTH(a.subset) - LENGTH(REPLACE(a.subset, ',', ''))) + 1,0) as teamNum,
|
|
|
IFNULL(sum(b.game_betting),0) as bettingAmount,
|
|
|
- IFNULL(sum(b.game_commission - b.live_betting_commission),0) as gameCommission,
|
|
|
+ IFNULL(sum(b.game_commission - b.live_betting_commission + b.recharge_commission + b.withdrawal_commission),0) as gameCommission,
|
|
|
IFNULL(sum(b.live_betting_commission),0) as liveBettingCommission,
|
|
|
IFNULL(sum(b.live_commission),0) as liveCommission,
|
|
|
IFNULL(sum((b.game_win_amount - (b.game_betting - b.game_lose_amount)) - b.game_lose_amount + b.game_commission + b.recharge_give + b.recharge_commission + b.withdrawal_commission),0) as gameAmount,
|
|
|
IFNULL(sum(b.recharge_amount),0) as rechargeAmount,
|
|
|
IFNULL(sum(b.recharge_commission),0) as rechargeCommission,
|
|
|
+ IFNULL(sum(b.withdrawal_commission),0) as withdrawalCommission,
|
|
|
IFNULL(sum(b.recharge_give),0) as rechargeGive,
|
|
|
a.live_rate as liveRate,
|
|
|
a.dividend_guarantee_rate as dividendGuaranteeRate
|