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
e0e684b3
Commit
e0e684b3
authored
Mar 01, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 大东联推送
parent
dcf1adeb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
sdddl_project/wizard/inherit_result_put_warehose_wizard.py
+3
-4
No files found.
sdddl_project/wizard/inherit_result_put_warehose_wizard.py
View file @
e0e684b3
...
...
@@ -64,7 +64,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
if
v
.
id
in
insert_id
:
continue
insert_sql_data
.
append
(
f
"""
(
{_uuid}
, '{v.product_id.code}', '{v.wo_id.code}', {v.qty or 0}, {v.id}, '{v.pt_id.code}', '{v.pt_id.task_type}',
(
'{_uuid}'
, '{v.product_id.code}', '{v.wo_id.code}', {v.qty or 0}, {v.id}, '{v.pt_id.code}', '{v.pt_id.task_type}',
'{datetime.datetime.now().strftime("
%
Y-
%
m-
%
d
%
H:
%
M:
%
S")}', '{em.code or ""}', '{em.name or ""}')
"""
)
sql
=
"""
...
...
@@ -75,11 +75,10 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
return
super
(
InheritRokeResultPutWarehouseWizard
,
self
)
.
default_get
(
field_names
)
sql
+=
" , "
.
join
(
insert_sql_data
)
try
:
_logger
.
info
(
f
"数据SQL{sql}"
)
cur
.
execute
(
sql
)
conn
.
commit
()
#
cur.execute(f"EXEC sp_pp_kcrkdj @psUUID='{_uuid}'")
#
conn.commit()
cur
.
execute
(
f
"EXEC sp_pp_kcrkdj @psUUID='{_uuid}'"
)
conn
.
commit
()
except
Exception
as
e
:
_logger
.
info
(
"数据上传失败"
)
raise
ValidationError
(
"数据上传失败"
)
...
...
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