Commit 66e01a71 by 夏超

[fix] 上推数据修改

parent d53aa216
......@@ -62,14 +62,13 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
VALUES
"""
if not insert_sql_data:
raise ValidationError("数据错误")
return super(InheritRokeResultPutWarehouseWizard, self).default_get()
sql += " , ".join(insert_sql_data)
try:
cur.execute(sql)
conn.commit()
except Exception as e:
_logger.info(f"SQL____________{sql}")
raise ValidationError("数据库查询失败")
raise ValidationError("数据上传失败")
finally:
cur.close()
conn.close()
......
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