|
@@ -63,16 +63,19 @@ def get_pitcher_panel_daily(pitcher, start, end, page, page_size, order_by, orde
|
|
|
|
|
|
def get_pitcher_panel_overview(pitcher):
|
|
def get_pitcher_panel_overview(pitcher):
|
|
|
|
|
|
- sql=f"""select pitcher,cost,amount,roi,
|
|
|
|
|
|
+ sql=f"""select pitcher,
|
|
|
|
+ toDecimal32(cost,2) cost,
|
|
|
|
+ toDecimal32(amount,2) amount,
|
|
|
|
+ toDecimal32(roi,4) roi,
|
|
channel_count,on_channel_count,
|
|
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,
|
|
|
|
- toDecimal32(last_month_far_amount,2),
|
|
|
|
|
|
+ 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,
|
|
follow_user
|
|
follow_user
|
|
from dm_pitcher_daily_page_total where dt='{du.get_n_days(-1)}'"""
|
|
from dm_pitcher_daily_page_total where dt='{du.get_n_days(-1)}'"""
|
|
|
|
|