wcc hace 1 año
padre
commit
aa6e837a48

+ 1 - 1
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/AdsAgentRechargeRankingServiceImpl.java

@@ -52,7 +52,7 @@ public class AdsAgentRechargeRankingServiceImpl implements IAdsAgentRechargeRank
                 max(total_recharge_count) as total_recharge_count,
                 max(total_cost) as total_cost,
                 max(total_recharge_amount) / max(total_recharge_count) as avg_amount,
-                if (sum(total_cost) > 0, max(total_recharge_amount) / sum(total_cost), '0') as roi
+                if (sum(total_cost) > 0, max(total_recharge_amount) / max(total_cost), '0') as roi
                 from ads_agent_recharge_ranking
                 """;
         Criteria cri = Cnd.cri();