Преглед на файлове

FIX:修复公众号总数据时间问题

cxyu преди 3 години
родител
ревизия
022191f8b5
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      data_manage/pitcher_panel.py

+ 2 - 1
data_manage/pitcher_panel.py

@@ -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 quchen_text.advertiser_vx c on a.channel = c.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}
                 
                 """