|
@@ -840,7 +840,8 @@ def get_channel_summary(user_id, channel, pitcher, page, page_size, order_by, or
|
|
left join dw_channel_amount_daily_reverse b using (dt,channel)
|
|
left join dw_channel_amount_daily_reverse b using (dt,channel)
|
|
left join quchen_text.advertiser_vx c on a.channel = c.name
|
|
left join quchen_text.advertiser_vx c on a.channel = c.name
|
|
left join quchen_text.advertiser_vx d on b.channel = d.name
|
|
left join quchen_text.advertiser_vx d on b.channel = d.name
|
|
- where 1=1 {op} {op1} {op2} {op6} {op7} GROUP BY a.channel) x
|
|
|
|
|
|
+ where 1=1 a.dt>=c.start_date and b.dt>=d.start_date
|
|
|
|
+ {op} {op1} {op2} {op6} {op7} GROUP BY a.channel) x
|
|
having 1=1 {op5} ORDER BY {order_by} {order}
|
|
having 1=1 {op5} ORDER BY {order_by} {order}
|
|
|
|
|
|
"""
|
|
"""
|