Commit 4c01bb31 by 黄静

hj

parent 2fbddba4
......@@ -19,8 +19,7 @@ def getName(recommendId):
def getSource(name):
connection = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
cur = connection.cursor()
sql='select preference_label from tj_label_depth where company_name = "%s"'%name
sql='select preference_label from tj_label_depth_all where company_name = "%s"'%name
print(name)
cur.execute(sql)
s=cur.fetchall()
......
......@@ -24,7 +24,7 @@ class Recom:
else:
behavior_json['goods_name'] = item['product_name']
behavior_json['purchase_date'] = str(item['order_add_time'])
behavior_json['contract_amount'] = int(item['order_pay']/100)
behavior_json['contract_amount'] = int(int(item['order_pay'])/100)
behavior_json['source'] = item['order_channel']
behavior_json['company_name'] = company_name
item['status'] = "已完成"
......
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