|
@@ -111,8 +111,9 @@
|
|
SUM(event_credit_grant_landing_page) as 'eventCreditGrantLandingPage',
|
|
SUM(event_credit_grant_landing_page) as 'eventCreditGrantLandingPage',
|
|
SUM(event_next_day_stay) as 'eventNextDayStay',
|
|
SUM(event_next_day_stay) as 'eventNextDayStay',
|
|
SUM(form_count) as 'formCount',
|
|
SUM(form_count) as 'formCount',
|
|
|
|
+ SUM(play_3s_count) as 'play3sCount',
|
|
IFNULL(ROUND(SUM(charge) / SUM(activation), 2), 0) as 'activationCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(activation), 2), 0) as 'activationCost',
|
|
- IFNULL(ROUND(SUM(charge) / SUM(activation) * 1000, 2), 0) as 'impression1kCost',
|
|
|
|
|
|
+ IFNULL(ROUND(SUM(charge) / SUM(aclick) * 1000, 2), 0) as 'impression1kCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(photo_click), 2), 0) as 'photoClickCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(photo_click), 2), 0) as 'photoClickCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(bclick), 2), 0) as 'actionCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(bclick), 2), 0) as 'actionCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(download_started), 2), 0) as 'downloadStartedCost',
|
|
IFNULL(ROUND(SUM(charge) / SUM(download_started), 2), 0) as 'downloadStartedCost',
|
|
@@ -142,7 +143,8 @@
|
|
IFNULL(ROUND(SUM(event_credit_grant_app) / SUM(event_jin_jian_app) * 100, 2),
|
|
IFNULL(ROUND(SUM(event_credit_grant_app) / SUM(event_jin_jian_app) * 100, 2),
|
|
0) as 'eventCreditGrantAppRatio',
|
|
0) as 'eventCreditGrantAppRatio',
|
|
IFNULL(ROUND(SUM(form_count) / SUM(bclick) * 100, 2), 0) as 'formActionRatio',
|
|
IFNULL(ROUND(SUM(form_count) / SUM(bclick) * 100, 2), 0) as 'formActionRatio',
|
|
- IFNULL(ROUND(SUM(submit) / SUM(bclick) * 100, 2), 0) as 'submitRatio'
|
|
|
|
|
|
+ IFNULL(ROUND(SUM(submit) / SUM(bclick) * 100, 2), 0) as 'submitRatio',
|
|
|
|
+ IFNULL(ROUND(SUM(play_3s_count) / SUM(aclick) * 100, 2), 0) as 'play3sRatio'
|
|
FROM ctop_etl_kuaishou_report_account_daily
|
|
FROM ctop_etl_kuaishou_report_account_daily
|
|
WHERE account_id = #{accountId}
|
|
WHERE account_id = #{accountId}
|
|
AND stat_date >= #{startTime}
|
|
AND stat_date >= #{startTime}
|
|
@@ -153,7 +155,7 @@
|
|
<select id="getOnedayEtlReportList" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getOnedayEtlReportList" resultType="com.alibaba.fastjson.JSONObject">
|
|
SELECT
|
|
SELECT
|
|
<if test="type == 'alone'">
|
|
<if test="type == 'alone'">
|
|
- ${value} as 'value',
|
|
|
|
|
|
+ IFNULL(${value},0) as 'value',
|
|
</if>
|
|
</if>
|
|
<if test="type == 'more'">
|
|
<if test="type == 'more'">
|
|
<if test="value == 'activationCost'">
|
|
<if test="value == 'activationCost'">
|
|
@@ -169,7 +171,7 @@
|
|
IFNULL(ROUND(SUM(charge) / SUM(bclick), 2), 0) as 'value',
|
|
IFNULL(ROUND(SUM(charge) / SUM(bclick), 2), 0) as 'value',
|
|
</if>
|
|
</if>
|
|
<if test="value == 'play3sRatio'">
|
|
<if test="value == 'play3sRatio'">
|
|
- IFNULL(ROUND(SUM(play_3s_count) / SUM(photo_show) * 100, 2), 0) as 'value',
|
|
|
|
|
|
+ IFNULL(ROUND(SUM(play_3s_count) / SUM(aclick) * 100, 2), 0) as 'value',
|
|
</if>
|
|
</if>
|
|
<if test="value == 'downloadStartedCost'">
|
|
<if test="value == 'downloadStartedCost'">
|
|
IFNULL(ROUND(SUM(charge) / SUM(download_started), 2), 0) as 'value',
|
|
IFNULL(ROUND(SUM(charge) / SUM(download_started), 2), 0) as 'value',
|