ck před 4 roky
rodič
revize
7dd80de4b7
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      data_manage/pitcher_panel.py

+ 2 - 1
data_manage/pitcher_panel.py

@@ -146,7 +146,7 @@ def get_channel_overview(channel,pitcher,start,end,page,page_size,order_by,order
 --        round(if(total_cost=0,0,total_amount/total_cost),4) all_roi,
         round(order_amount/cost,4) roi,
        round(if(total_cost=0,0,total_first_amount/total_cost),4)  avg_new_order_rate,
-       round(if(reg_order_user=0,0,reg_order_user_again/reg_order_user),4)  old_user_once_order_rate,
+       round(if(reg_order_user=0,0,reg_order_user_again/reg_order_user),4)  old_user_once_order_rate, 
         pitcher,stage from dw_channel_daily where 1=1 {op1} {op2} {op3} {op4} {op5} """
 
     print(sql)
@@ -764,6 +764,7 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state,loca
             sum(total_amount) total_amount,sum(profit) profit, 
             round(sum(total_amount)/sum(total_cost),4) roi,
             sum(follow_user) follow_user,
+            sum(reg_order_user) order_user,
             round(sum(total_cost)/sum(follow_user),2) follow_per_cost,
             round(sum(order_user)/sum(follow_user),4) order_tran_rate,
             round(sum(total_cost)/sum(order_user),2)  order_tran_cost