Commit 023e32be by larosa

update sql

parent 92e52f56
Showing with 3 additions and 1 deletions
...@@ -206,7 +206,7 @@ def update_vc_attr(conf: dict): ...@@ -206,7 +206,7 @@ def update_vc_attr(conf: dict):
exists_attr = True exists_attr = True
for key in origin_attr_map: for key in origin_attr_map:
if origin_attr_map[key] != now_attr_map[key]: if origin_attr_map[key] != now_attr_map[key]:
update_sql1 = "update lie_shop_attr set unit = %s, enum_value = %s, input_type = %s, is_required = %s where id = %s" update_sql1 = "update lie_shop_attr set unit = %s, enum_value = %s, input_type = %s, is_required = %s, is_mapping = 0 where id = %s"
cursor.execute(query=update_sql1, args=(unit, enum_value, input_type, is_required, primary_id)) cursor.execute(query=update_sql1, args=(unit, enum_value, input_type, is_required, primary_id))
db.commit() db.commit()
print(update_sql1 % (unit, enum_value, input_type, is_required, primary_id)) print(update_sql1 % (unit, enum_value, input_type, is_required, primary_id))
......
...@@ -379,3 +379,4 @@ def get_vc_goods_info(ware_id: str): ...@@ -379,3 +379,4 @@ def get_vc_goods_info(ware_id: str):
if __name__ == '__main__': if __name__ == '__main__':
pass pass
# mysqldump -u DsbuUx -h bigdata2.ichunt.db -p liexin_data_distribution lie_shop_class > /data/tmp/lie_shop_class.sql
\ No newline at end of file
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 sign in to comment