|
@@ -739,7 +739,6 @@ from order where dt>='{start}' {channel_op} group by formatDateTime(reg_time,'
|
|
|
|
|
|
def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state):
|
|
|
|
|
|
- pitcher_op=f" and channel in {get_channels_from_user(pitcher)}" if pitcher!='赞象 admin' else ''
|
|
|
channel_op=f" and channel='{channel}'" if channel!='' else ''
|
|
|
|
|
|
if pitcher!='赞象 admin':
|
|
@@ -759,7 +758,7 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state):
|
|
|
(
|
|
|
select channel,if(max(dt)>subtractDays(today(),10),'在投','停投') state,
|
|
|
min(dt) start,max(dt) end
|
|
|
- from dw_daily_channel_cost where cost>0 {pitcher_op} {channel_op} group by channel) a
|
|
|
+ from dw_daily_channel_cost where 1=1 {pitcher_op} {channel_op} group by channel) a
|
|
|
|
|
|
left outer join(
|
|
|
select channel,sum(follow_user) follow_user,
|