|
@@ -150,7 +150,7 @@ def get_channel_overview(user_id, channel, pitcher, stage, book,agent_id, start,
|
|
|
round(if(follow_user=0,0,cost/follow_user),2) follow_per_cost,
|
|
|
round(if(click_count=0,0,first_order_count/click_count),4) order_rate,
|
|
|
round(if(first_order_user=0,0,cost/first_order_user),2) order_per_cost,
|
|
|
- cost,
|
|
|
+ cost,da7,
|
|
|
first_order_count,first_order_user,
|
|
|
first_order_amount,
|
|
|
order_count,order_user,
|
|
@@ -189,8 +189,8 @@ left join dw_channel_amount_daily b on a.dt=b.dt and a.channel=b.channel
|
|
|
|
|
|
max(game_user_sum) game_user_sum,
|
|
|
sum(hundred_user_num) hundred_user_num, -- 单日付费100+用户数
|
|
|
- sum(round(hundred_user_num_cost,2)) hundred_user_num_cost, -- 单日付费100+用户付费成本
|
|
|
- sum(round(roi7,4)) roi7, -- 最近7日首日ROI
|
|
|
+ round(sum(hundred_user_num_cost),2) hundred_user_num_cost, -- 单日付费100+用户付费成本
|
|
|
+ round(sum(da7)/sum(cost),4) roi7, -- 最近7日首日ROI
|
|
|
round(if(sum(reg_num)=0,0,sum(reg_num*sixty_stay_rate)/sum(reg_num)),2) sixty_stay_rate,
|
|
|
round(if(sum(reg_num)=0,0,sum(reg_num*fortyfive_stay_rate)/sum(reg_num)),2) fortyfive_stay_rate,
|
|
|
round(if(sum(reg_num)=0,0,sum(reg_num*thirty_stay_rate)/sum(reg_num)),2) thirty_stay_rate,
|