|
@@ -25,7 +25,7 @@ __title__ = '订单工具类,用于查询,修改订单等'
|
|
|
"""
|
|
|
|
|
|
from util.MySQLConnection import MySQLConnection
|
|
|
-
|
|
|
+import pymysql
|
|
|
|
|
|
|
|
|
def batch_save_order(data):
|
|
@@ -57,3 +57,21 @@ def get_platform_order_count(date):
|
|
|
finally:
|
|
|
connect.close()
|
|
|
return platform_order_count
|
|
|
+
|
|
|
+def get_account_info_list(platform):
|
|
|
+ sql=f"select text from order_account_text where platform='{platform}'"
|
|
|
+ db = pymysql.connect('rm-bp1c9cj79872tx3aaro.mysql.rds.aliyuncs.com', 'superc', 'Cc719199895', 'quchen_text')
|
|
|
+ cur=db.cursor()
|
|
|
+ try:
|
|
|
+ cur.execute(sql)
|
|
|
+ platform= cur.fetchall()
|
|
|
+ except Exception as e:
|
|
|
+ print(e)
|
|
|
+ li=[]
|
|
|
+ for i in platform:
|
|
|
+ li.append(i[0].split(","))
|
|
|
+ return li
|
|
|
+
|
|
|
+
|
|
|
+if __name__ == '__main__':
|
|
|
+ get_account_info_list("掌中云")
|