|
@@ -369,15 +369,15 @@ def get_channel_active(channel,pitcher,start,end,page,page_size,order_by,order):
|
|
|
|
|
|
|
|
|
sql=f"""
|
|
|
-select channel,dt date,book,stage,cost,
|
|
|
-reg_order_amount reg_amount,
|
|
|
-dc7,dc30,
|
|
|
-round(reg_order_amount/cost,4) roi,
|
|
|
-follow_user new_follow_user,
|
|
|
-round(cost/follow_user,2) new_follow_per_cost,
|
|
|
-reg_order_user order_user,
|
|
|
-reg_order_count order_count,
|
|
|
-round(cost/reg_order_user,2) order_user_per_cost,
|
|
|
+ select channel,dt date,book,stage,cost,
|
|
|
+ reg_order_amount reg_amount,
|
|
|
+ dc7,dc30,
|
|
|
+ round(reg_order_amount/cost,4) roi,
|
|
|
+ follow_user new_follow_user,
|
|
|
+ round(cost/follow_user,2) new_follow_per_cost,
|
|
|
+ reg_order_user order_user,
|
|
|
+ reg_order_count order_count,
|
|
|
+ round(cost/reg_order_user,2) order_user_per_cost,
|
|
|
round(dc7/follow_user,4) day7_avg_act_rate,
|
|
|
round(cost/dc7,2) day7_avg_act_per_cost,
|
|
|
round(dc30/follow_user,4) day30_avg_act_rate,
|