|
@@ -149,6 +149,7 @@ class LiveAccountReport:
|
|
where report.report_date = {start_date} and report.report_date<={end_date}
|
|
where report.report_date = {start_date} and report.report_date<={end_date}
|
|
and report.account_id = {account_id};
|
|
and report.account_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)
|
|
try:
|
|
try:
|
|
TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
self.conn.commit()
|
|
self.conn.commit()
|
|
@@ -295,6 +296,7 @@ class LiveAccountReport:
|
|
where report.report_date = {start_date} and report.report_date<={end_date}
|
|
where report.report_date = {start_date} and report.report_date<={end_date}
|
|
and report.account_id = {account_id};
|
|
and report.account_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)
|
|
try:
|
|
try:
|
|
TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
TidbConn.upsert(conn=self.conn, sql_buff=sql)
|
|
self.conn.commit()
|
|
self.conn.commit()
|