|
@@ -32,7 +32,8 @@
|
|
event_jin_jian_landing_page,
|
|
event_jin_jian_landing_page,
|
|
event_credit_grant_landing_page,
|
|
event_credit_grant_landing_page,
|
|
event_next_day_stay,
|
|
event_next_day_stay,
|
|
- form_count)
|
|
|
|
|
|
+ form_count,
|
|
|
|
+ play_3s_count)
|
|
select
|
|
select
|
|
c.company_id,
|
|
c.company_id,
|
|
c.company_name,
|
|
c.company_name,
|
|
@@ -62,8 +63,8 @@
|
|
sum(m.event_jin_jian_landing_page) as event_jin_jian_landing_page,
|
|
sum(m.event_jin_jian_landing_page) as event_jin_jian_landing_page,
|
|
sum(m.event_credit_grant_landing_page) as event_credit_grant_landing_page,
|
|
sum(m.event_credit_grant_landing_page) as event_credit_grant_landing_page,
|
|
sum(m.event_next_day_stay) as event_next_day_stay,
|
|
sum(m.event_next_day_stay) as event_next_day_stay,
|
|
- sum(m.form_count)as form_count
|
|
|
|
-
|
|
|
|
|
|
+ sum(m.form_count)as form_count,
|
|
|
|
+ round(sum(m.play_3s_ratio * m.photo_show),0) as play_3s_count
|
|
from ctop_kuaishou_report_daily_material m left join ctop_user_allocation u on u.account_id = m.account_id
|
|
from ctop_kuaishou_report_daily_material m left join ctop_user_allocation u on u.account_id = m.account_id
|
|
left join ctop_project p on p.id = u.project_id
|
|
left join ctop_project p on p.id = u.project_id
|
|
left join user_company c on c.user_id = u.account_id
|
|
left join user_company c on c.user_id = u.account_id
|
|
@@ -71,6 +72,8 @@
|
|
and m.stat_date = #{date}
|
|
and m.stat_date = #{date}
|
|
group by m.account_id,m.signature
|
|
group by m.account_id,m.signature
|
|
</insert>
|
|
</insert>
|
|
|
|
+
|
|
|
|
+
|
|
<insert id="replaceBatch">
|
|
<insert id="replaceBatch">
|
|
replace into ctop_etl_kuaishou_account_material_report_daily(
|
|
replace into ctop_etl_kuaishou_account_material_report_daily(
|
|
company_id ,
|
|
company_id ,
|