|
@@ -67,6 +67,13 @@ class SpiderPromoterInfo:
|
|
where b.promoter_id is null
|
|
where b.promoter_id is null
|
|
and a.media_id=2
|
|
and a.media_id=2
|
|
and a.create_time>=date_format(date_sub(now(),interval 10 day),'%Y-%m-%d')
|
|
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)
|
|
promoter_result = SpiderPromoterInfo.conn.QueryAll(sql)
|
|
for promoter in promoter_result:
|
|
for promoter in promoter_result:
|