ck 4 سال پیش
والد
کامیت
fcc86ddc31
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      data_manage/pitcher_panel.py

+ 4 - 3
data_manage/pitcher_panel.py

@@ -140,10 +140,11 @@ def get_channel_overview(channel,pitcher,start,end,page,page_size,order_by,order
        round(if(first_order_user=0,0,cost/first_order_user),2) first_cost_per_user,
        round(if(follow_user=0,0,first_order_user/follow_user),4) new_user_order_rate,
        reg_order_amount,
-       total_cost,
-       total_amount,
+--        total_cost,
+--        total_amount,
        round(if(cost=0,0,first_order_amount/cost),4) day_roi,
-       round(if(total_cost=0,0,total_amount/total_cost),4) all_roi,
+--        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,
         pitcher,stage from dw_channel_daily where 1=1 {op1} {op2} {op3} {op4} {op5} """