renyupeng 1 rok pred
rodič
commit
c001e75bae
1 zmenil súbory, kde vykonal 7 pridanie a 0 odobranie
  1. 7 0
      spider/SpiderPromoterInfo.py

+ 7 - 0
spider/SpiderPromoterInfo.py

@@ -67,6 +67,13 @@ class SpiderPromoterInfo:
    where b.promoter_id is null
          and a.media_id=2
      and a.create_time>=date_format(date_sub(now(),interval 10 day),'%Y-%m-%d')
+     union all
+      select a.promoter_id from ruixuan.jy_kuaishou_promoter  a
+   left join ruixuan.promoter_sales_info b
+   on a.promoter_id=b.promoter_id
+   where b.promoter_id is null
+         and a.media_id=2
+     and a.create_time>=date_format(date_sub(now(),interval 10 day),'%Y-%m-%d')  
      """
         promoter_result = SpiderPromoterInfo.conn.QueryAll(sql)
         for promoter in promoter_result: