sql="select region_name from lie_region where region_id in ("+str(province)+","+str(city)+","+str(district)+") "+"order by field ("+"region_id"+","+str(province)+","+str(city)+","+str(district)+") "
user_detail_address=""
cursor=db.cursor()
cursor.execute(sql)
result=cursor.fetchall()
foriinrange(len(result)):
iflen(result[i])==0:
continue
user_detail_address+=result[i][0]
user_detail_address+=detail_address
cursor.close()
db.close()
returnuser_detail_address
...
...
@@ -70,43 +80,52 @@ def liexin():
tax_detail_address+=consignee_address
# 获取客户地址
user_detail_address=[]
sql_user_address="select province, city, district, detail_address from lie_user_address where uc_id = "+str(uc_id)