Commit aa4842ae by 夏超

[fix] 大东联推送

parent 65513517
......@@ -71,7 +71,6 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
INSERT INTO WBCCB (F_UUID, WBCCB_CPBH, WBCCB_GDBH, WBCCB_CCSL, WBCCB_CCID, WBCCB_RWBH, WBCCB_RWLX, WBCCB_datetime, WBCCB_YGBH, WBCCB_YGMC)
VALUES
"""
storage_sql = f"""select * from sp_pp_kcrkdj(‘{_uuid}’)"""
if not insert_sql_data:
return super(InheritRokeResultPutWarehouseWizard, self).default_get(field_names)
sql += " , ".join(insert_sql_data)
......@@ -79,7 +78,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
cur.execute(sql)
conn.commit()
_logger.info("数据同步成功")
cur.execute(storage_sql)
cur.execute(f"EXEC sp_pp_kcrkdj @psUUID='{_uuid}'")
conn.commit()
except Exception as e:
_logger.info("数据上传失败")
......
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