Commit 66e01a71 by 夏超

[fix] 上推数据修改

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