Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
df6acd27
Commit
df6acd27
authored
Jan 22, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 上推数据修改
parent
89b467d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
sdddl_project/wizard/inherit_result_put_warehose_wizard.py
+4
-5
No files found.
sdddl_project/wizard/inherit_result_put_warehose_wizard.py
View file @
df6acd27
...
...
@@ -26,15 +26,14 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
cur
=
conn
.
cursor
()
except
Exception
as
e
:
raise
ValidationError
(
"数据库链接失败,请检查数据库链接参数"
)
ids
=
results
.
ids
if
not
ids
:
ids
_str
=
[
f
"'{v.id}'"
for
v
in
results
]
if
not
ids
_str
:
return
super
(
InheritRokeResultPutWarehouseWizard
,
self
)
.
default_get
()
ids_str
=
"', '"
.
join
(
ids
)
_logger
.
info
(
f
"SQL____________{ids_str}"
)
_logger
.
info
(
f
"SQL____________{' , '.join(ids_str)}"
)
sql
=
f
"""
select WBCCB_CCID
from WBCCB
where WBCCB_CCID not in (
'{ids_str}'
)
where WBCCB_CCID not in (
{' , '.join(ids_str)}
)
"""
try
:
cur
.
execute
(
sql
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment