|
@@ -51,7 +51,7 @@ def get_pitcher_panel_channel(pitcher,channel,start,end,page,page_size,order_by,
|
|
'total_cost','back_rate']
|
|
'total_cost','back_rate']
|
|
|
|
|
|
|
|
|
|
- return get_dict_list(key,get_round(data)),total
|
|
|
|
|
|
+ return get_dict_list(key,get_round(data,4)),total
|
|
|
|
|
|
|
|
|
|
def get_pitcher_panel_daily(pitcher, start, end, page, page_size, order_by, order):
|
|
def get_pitcher_panel_daily(pitcher, start, end, page, page_size, order_by, order):
|
|
@@ -716,7 +716,7 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state):
|
|
channel,
|
|
channel,
|
|
total_amount-total_cost profit,
|
|
total_amount-total_cost profit,
|
|
if(total_cost=0,0,total_amount/total_cost) roi
|
|
if(total_cost=0,0,total_amount/total_cost) roi
|
|
- from dw_channel_daily_total where dt=subtractDays(today(),1) {channel_op}) d on a.channel=d.channel
|
|
|
|
|
|
+ from dw_channel_daily_total where dt=today() {channel_op}) d on a.channel=d.channel
|
|
"""
|
|
"""
|
|
print(sql)
|
|
print(sql)
|
|
if channel!='':
|
|
if channel!='':
|