Commit 89b467d3 by 夏超

[fix] 上推数据修改

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