|
@@ -145,7 +145,7 @@ def get_channel_overview(channel,pitcher,start,end,page,page_size,order_by,order
|
|
|
toDecimal32(total_cost,2),
|
|
|
toDecimal32(total_amount,2),
|
|
|
toDecimal32(if(cost=0,0,first_order_amount/cost),4) day_roi,
|
|
|
- toDecimal32(if(cost=0,0,reg_order_amount/cost),4) all_roi,
|
|
|
+ toDecimal32(if(total_cost=0,0,total_amount/total_cost),4) all_roi,
|
|
|
if(total_cost=0,0,total_first_amount/total_cost) avg_new_order_rate,
|
|
|
if(reg_order_user=0,0,reg_order_user_again/reg_order_user) old_user_once_order_rate,
|
|
|
pitcher from dw_daily_channel where 1=1 """
|