cola 2 vuotta sitten
vanhempi
commit
ef2f790f19
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      data_manage/pitcher_panel.py

+ 2 - 2
data_manage/pitcher_panel.py

@@ -177,7 +177,7 @@ def get_channel_overview(user_id, channel, pitcher, stage, book,agent_id, start,
        round(if(reg_order_user=0,0,reg_order_user_again/reg_order_user),4)  old_user_once_order_rate, 
         pitcher,stage,book,type,
         round(cost/first_order_user,2) first_order_user_per_cost, 
-        round(reg_order_amount/reg_order_user,2) user_per_amount, 
+        round(order_amount/order_user,2) user_per_amount, 
         round(follow_user/click_count,4) click_follow_rate, 
         round(reg_order_user/follow_user,4) follow_order_rate 
 from dw_channel a
@@ -229,7 +229,7 @@ round(sum(first_order_amount)/sum(cost),4) day_roi,
 round(sum(reg_user_amount)/sum(cost),4) roi,
 round(sum(reg_order_user_again)/sum(reg_order_user),4)  old_user_once_order_rate,     
         round(sum(cost)/sum(first_order_user),2) first_order_user_per_cost,  
-        round(sum(reg_user_amount)/sum(reg_order_user),2) user_per_amount, 
+        round(sum(order_amount)/sum(order_user),2) user_per_amount, 
         round(sum(follow_user)/sum(click_count),4) click_follow_rate, 
         round(sum(reg_order_user)/sum(follow_user),4) follow_order_rate