Commit 89b467d3 by 夏超

[fix] 上推数据修改

parent 955d76c6
...@@ -29,10 +29,12 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel): ...@@ -29,10 +29,12 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
ids = results.ids ids = results.ids
if not ids: if not ids:
return super(InheritRokeResultPutWarehouseWizard, self).default_get() return super(InheritRokeResultPutWarehouseWizard, self).default_get()
ids_str = "', '".join(ids)
_logger.info(f"SQL____________{ids_str}")
sql = f""" sql = f"""
select WBCCB_CCID select WBCCB_CCID
from WBCCB from WBCCB
where WBCCB_CCID not in ('{"', '".join(ids)}') where WBCCB_CCID not in ('{ids_str}')
""" """
try: try:
cur.execute(sql) cur.execute(sql)
......
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