|
@@ -101,7 +101,7 @@ def get_pitcher_panel_overview(pitcher):
|
|
|
last_month_far_roi last_month_far_roi
|
|
|
from dm_pitcher_daily_overview a
|
|
|
left join (
|
|
|
-select total_cost,total_amount,pitcher pitcher2 from dw_pitcher_daily where dt='{du.get_n_days(0)}') b on pitcher=pitcher2
|
|
|
+select sum(cost) total_cost,sum(reg_amount) total_amount,pitcher pitcher2 from dw_pitcher_trend group by pitcher) b on pitcher=pitcher2
|
|
|
where 1=1 {op1}
|
|
|
"""
|
|
|
print(sql)
|