Commit 5e17dc9e authored by 张彦钊's avatar 张彦钊

add print

parent 7ad42665
...@@ -221,11 +221,12 @@ def get_queue(device_id, city_id,queue_name): ...@@ -221,11 +221,12 @@ def get_queue(device_id, city_id,queue_name):
db = pymysql.connect(host=LOCAL_HOST, port=3306, user='work', db = pymysql.connect(host=LOCAL_HOST, port=3306, user='work',
passwd='workwork', db='doris_test') passwd='workwork', db='doris_test')
print(db)
cursor = db.cursor() cursor = db.cursor()
sql = "select {} from device_diary_queue " \ sql = "select {} from device_diary_queue " \
"where device_id = '{}' and city_id = '{}';".format(queue_name,device_id, city_id) "where device_id = '{}' and city_id = '{}';".format(queue_name,device_id, city_id)
cursor.execute(sql) cursor.execute(sql)
print(2)
result = cursor.fetchall() result = cursor.fetchall()
df = pd.DataFrame(list(result)) df = pd.DataFrame(list(result))
print("multi") print("multi")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment