Commit df46b33f by huangjing

hj

parent 8c4db3f8
...@@ -9,10 +9,10 @@ def talk(recommendId): ...@@ -9,10 +9,10 @@ def talk(recommendId):
cur = connection.cursor() cur = connection.cursor()
try: try:
list_test=[] list_test=[]
update_sql='UPDATE tj_talking t1 ,tj_recommend_do_status t2 set t1.recommendId=t2.recommend_id where t1.recommend_product=t2.product_name' update_sql='UPDATE talking t1 ,tj_recommend_do_status t2 set t1.recommend_id=t2.recommend_id where t1.recommend_product=t2.product_name'
cur.execute(update_sql) cur.execute(update_sql)
connection.commit() connection.commit()
select_sql='select start_text,res_text,mq_text,end_text from tj_talking where recommendId="%s"'%(recommendId) select_sql='select start_text,res_text,mq_text,end_text from talking where recommend_id="%s"'%(recommendId)
cur.execute(select_sql) cur.execute(select_sql)
s=cur.fetchone() s=cur.fetchone()
for i in range(0,len(s)): for i in range(0,len(s)):
......
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