|
@@ -93,7 +93,6 @@ from
|
|
|
on t1.account_id=ty.account_id
|
|
|
left join
|
|
|
(select advertiser_id account_id,count(distinct campaign_id) cam_num ,count(unit_id) unit_num from `media_api`.kuaishou_ad_unit_list where date_format(create_time,'%Y%m%d')={date_time}
|
|
|
-and unit_source!=1
|
|
|
group by advertiser_id) t2
|
|
|
on t1.account_id=t2.account_id
|
|
|
left join
|
|
@@ -161,6 +160,7 @@ cua.account_id IS NOT NULL and cua.account_status=0 and cua.media_id=2
|
|
|
ON t1.account_id = bei.account_id where bei.account_id is not null) m;
|
|
|
|
|
|
""".format(date_time=self.date_time)
|
|
|
+ print(sql)
|
|
|
TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
|
self.conn.commit()
|
|
|
TidbConn.conn_close(conn=self.conn)
|