wcc преди 1 година
родител
ревизия
f2175dc382

+ 2 - 2
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/AdsAccountRechargeRankingServiceImpl.java

@@ -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();