renyupeng 1 vuosi sitten
vanhempi
commit
bdad2e9dc1

+ 1 - 3
Apietl/task/AppBytedanceMaterialProjectRalation.py

@@ -17,9 +17,7 @@ class AppBytedanceMaterialProjectRalation:
 
     def handler(self):
         try:
-            sql = """select advertiser_id from media_api.bytedance_file_video_get 
-            where create_time>=date_format(date_sub(now(),interval 3 day),'%Y-%m-%d')
-            group by advertiser_id"""
+            sql = """select account_id from `jeecg-boot`.ctop_user_allocation where account_status=0 and media_id=1"""
             account_list = TidbConn.quary(self.conn, sql)
             for account_id in account_list:
                 try:

+ 1 - 3
Apietl/task/AppKuaishouMaterialProjectRelation.py

@@ -17,9 +17,7 @@ class AppKuaishouMaterialProjectRelation:
 
     def handler(self):
         try:
-            sql = """select account_id from media_api.kuaishou_video_list 
-                  where stat_date>=date_format(date_sub(now(),interval 3 day),'%Y-%m-%d')
-            group by account_id"""
+            sql = """select account_id from `jeecg-boot`.ctop_user_allocation where account_status=0 and media_id=2"""
             account_list = TidbConn.quary(self.conn, sql)
             for account_id in account_list:
                 try: