|
@@ -196,7 +196,7 @@ class AccountReport:
|
|
and report.advertiser_id={account_id}
|
|
and report.advertiser_id={account_id}
|
|
""".format(start_date=start_date, end_date=end_date, account_id=account_id)
|
|
""".format(start_date=start_date, end_date=end_date, account_id=account_id)
|
|
print(sql)
|
|
print(sql)
|
|
- TidbConn.exec_sql(self.conn, sql)
|
|
|
|
|
|
+ TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
self.conn.commit()
|
|
self.conn.commit()
|
|
except Exception as e:
|
|
except Exception as e:
|
|
logging.error('失败详细信息:', repr(e))
|
|
logging.error('失败详细信息:', repr(e))
|
|
@@ -383,7 +383,7 @@ class AccountReport:
|
|
and report.advertiser_id={account_id}
|
|
and report.advertiser_id={account_id}
|
|
""".format(start_date=start_date, end_date=end_date, account_id=account_id)
|
|
""".format(start_date=start_date, end_date=end_date, account_id=account_id)
|
|
print(sql)
|
|
print(sql)
|
|
- TidbConn.exec_sql(self.conn, sql)
|
|
|
|
|
|
+ TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
self.conn.commit()
|
|
self.conn.commit()
|
|
except Exception as e:
|
|
except Exception as e:
|
|
logging.error('失败详细信息:', repr(e))
|
|
logging.error('失败详细信息:', repr(e))
|