Sfoglia il codice sorgente

快手-账户报表 添加 关键行为率

zhaoxian 11 mesi fa
parent
commit
c675133782

+ 4 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/common/constant/AccountReportConstants.java

@@ -561,6 +561,10 @@ public class AccountReportConstants {
             "    \"filed\": \"CASE WHEN sum(t1.charge) / sum(t1.key_action) IS NULL THEN 0 ELSE round(sum(t1.charge)/sum(t1.key_action),3) end as keyActionCost \",\n" +
             "    \"comment\": \"关键行为成本\"\n" +
             "  },\n" +
+            "  \"keyActionRatio\": {\n" +
+            "    \"filed\": \"CASE WHEN  sum(t1.keyAction) != 0 THEN concat(CAST(round(sum(t1.keyAction) / sum(t1.activation)*100,2) AS CHAR) ,'%') else '0.00%' end as keyActionRatio \",\n" +
+            "    \"comment\": \"关键行为率\"\n" +
+            "  },\n" +
             "  \"eventAppInvoked\": {\n" +
             "    \"filed\": \"IFNULL(sum(t1.event_app_invoked),0) as eventAppInvoked \",\n" +
             "    \"comment\": \"唤醒应用数\"\n" +