|
@@ -61,8 +61,8 @@ public class AdsAccountRechargeRankingServiceImpl implements IAdsAccountRecharge
|
|
|
max(total_amount_user) as total_amount_user,
|
|
|
max(total_amount_count) as total_amount_count,
|
|
|
sum(cost) / sum(first_amount) as first_roi,
|
|
|
- sum(total_amount) / sum(total_amount_count) as avg_amount,
|
|
|
- sum(total_amount) / sum(cost) as roi
|
|
|
+ max(total_amount) / max(total_amount_count) as avg_amount,
|
|
|
+ max(total_amount) / sum(cost) as roi
|
|
|
from ads_account_recharge_ranking
|
|
|
""";
|
|
|
SimpleCriteria cri = Cnd.cri();
|