Commit 0661416b authored by 张彦钊's avatar 张彦钊

add

parent ff2b30cb
......@@ -3,7 +3,6 @@ import pymysql
import pandas as pd
def hospital():
date_str = "20200101"
sql = "select api.id," \
......@@ -14,8 +13,9 @@ def hospital():
"from api_doctor api " \
"left join statistic_hospital_rank_factor h on api.hospital_id = h.hospital_id " \
"left join hippo_merchantrelevance b on api.id = b.doctor_id " \
"left join statistic_merchant_rank_factor m on b.merchant_id = m.merchant_id" \
"left join statistic_merchant_rank_factor m on b.merchant_id = m.merchant_id " \
"where api.doctor_type = 1 and h.date = '{}' and m.partition_date = '{}';".format(date_str,date_str)
print(sql)
db = pymysql.connect(host='172.16.30.141', port=3306, user='work', passwd='BJQaT9VzDcuPBqkd', db='zhengxing')
cursor = db.cursor()
......
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