|
@@ -84,20 +84,20 @@ def get_pitcher_panel_daily(pitcher, start, end, page, page_size, order_by, orde
|
|
|
def get_pitcher_panel_overview(pitcher):
|
|
|
|
|
|
sql=f"""select pitcher,
|
|
|
- toDecimal32(cost,2) cost,
|
|
|
- toDecimal32(amount,2) amount,
|
|
|
- toDecimal32(roi,4) roi,
|
|
|
+ cost cost,
|
|
|
+ amount amount,
|
|
|
+ roi roi,
|
|
|
channel_count,on_channel_count,
|
|
|
off_channel_count,
|
|
|
- toDecimal32(this_month_cost,2) this_month_cost,
|
|
|
- toDecimal32(this_month_amount,2) this_month_amount,
|
|
|
- toDecimal32(this_month_roi,4) this_month_roi,
|
|
|
- toDecimal32(last_month_cost,2) last_month_cost,
|
|
|
- toDecimal32(last_month_amount,2) last_month_amount,
|
|
|
- toDecimal32(last_month_roi,4) last_month_roi,
|
|
|
- toDecimal32(last_month_far_amount,2) last_month_far_amount,
|
|
|
+ this_month_cost this_month_cost,
|
|
|
+ this_month_amount this_month_amount,
|
|
|
+ this_month_roi this_month_roi,
|
|
|
+ last_month_cost last_month_cost,
|
|
|
+ last_month_amount last_month_amount,
|
|
|
+ last_month_roi last_month_roi,
|
|
|
+ last_month_far_amount last_month_far_amount,
|
|
|
follow_user,
|
|
|
- toDecimal32(last_month_far_roi,2) last_month_far_roi
|
|
|
+ last_month_far_roi last_month_far_roi
|
|
|
from dm_pitcher_daily_page_total where dt='{du.get_n_days(-1)}'"""
|
|
|
|
|
|
if pitcher != 'all':
|
|
@@ -109,7 +109,7 @@ def get_pitcher_panel_overview(pitcher):
|
|
|
|
|
|
key=['pitcher','cost','amount','roi','channel_count','on_channel_count','off_channel_count','this_month_cost','this_month_amount','this_month_roi',
|
|
|
'last_month_cost','last_month_amount','last_month_roi','last_month_far_amount','follow_user','last_month_far_roi']
|
|
|
- return get_dict_list(key,data)
|
|
|
+ return get_dict_list(key,get_round(data))
|
|
|
|
|
|
|
|
|
def get_channel_overview(channel,pitcher,start,end,page,page_size,order_by,order):
|