|
|
@@ -51,6 +51,18 @@
|
|
|
<sql id="iapRoi">
|
|
|
concat(round(if(ifnull(sum(iap_real_cost_amount),0)=0, 0, ifnull(sum(share_pay_amount), 0)/sum(iap_real_cost_amount)*100), 2), '%') AS iap_roi
|
|
|
</sql>
|
|
|
+ <sql id="iaaCostAmount">
|
|
|
+ round(ifnull(sum(iaa_cost_amount), 0), 2) as iaa_cost_amount
|
|
|
+ </sql>
|
|
|
+ <sql id="iapCostAmount">
|
|
|
+ round(ifnull(sum(iap_cost_amount), 0), 2) as iap_cost_amount
|
|
|
+ </sql>
|
|
|
+ <sql id="iaaRealCostAmount">
|
|
|
+ round(ifnull(sum(iaa_real_cost_amount), 0), 2) as iaa_real_cost_amount
|
|
|
+ </sql>
|
|
|
+ <sql id="iapRealCostAmount">
|
|
|
+ round(ifnull(sum(iap_real_cost_amount), 0), 2) as iap_real_cost_amount
|
|
|
+ </sql>
|
|
|
|
|
|
<select id="tmpPushData" resultType="java.util.Map">
|
|
|
select
|
|
|
@@ -103,7 +115,9 @@
|
|
|
<include refid="costAmount"/>,
|
|
|
<include refid="realCostAmount"/>,
|
|
|
<include refid="iaaRoi"/>,
|
|
|
- <include refid="iapRoi"/>
|
|
|
+ <include refid="iapRoi"/>,
|
|
|
+ <include refid="iaaRealCostAmount"/>,
|
|
|
+ <include refid="iapRealCostAmount"/>
|
|
|
from
|
|
|
(select product_id from application.media_product_report_daily where stat_date=${date} and ma_appid in (select app_id from tidb.deepthink.mini_app_info where business_type not in (2,4,6))
|
|
|
union select movie_id from application.user_data_report_daily where stat_date=${date} and ma_appid in (select app_id from tidb.deepthink.mini_app_info where business_type not in (2,4,6))
|