Forráskód Böngészése

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

cxyu 3 éve
szülő
commit
022191f8b5
1 módosított fájl, 2 hozzáadás és 1 törlés
  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}
                 
                 """