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
1b2cc3c1
Commit
1b2cc3c1
authored
Feb 28, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 大东联推送
parent
de22f846
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sdddl_project/wizard/inherit_result_put_warehose_wizard.py
+5
-3
No files found.
sdddl_project/wizard/inherit_result_put_warehose_wizard.py
View file @
1b2cc3c1
...
...
@@ -14,9 +14,8 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
@api.model
def
default_get
(
self
,
field_names
):
if
self
.
env
.
context
.
get
(
'active_model'
)
!=
"roke.production.result"
:
return
super
(
InheritRokeResultPutWarehouseWizard
,
self
)
.
default_get
(
field_names
)
results
=
self
.
env
[
'roke.production.result'
]
.
browse
(
self
.
env
.
context
.
get
(
'active_ids'
))
results
=
self
.
env
[
'roke.production.result'
]
.
browse
(
self
.
env
.
context
.
get
(
'active_ids'
)
or
self
.
env
.
_context
.
get
(
'active_ids'
))
system_id
=
self
.
env
.
ref
(
"roke_workstation_sync_ps.roke_workstation_sync_ps_integrate_system"
)
sync_address
=
system_id
.
sync_address
sync_port
=
system_id
.
sync_port
...
...
@@ -67,12 +66,15 @@ 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
)
try
:
cur
.
execute
(
sql
)
conn
.
commit
()
cur
.
execute
(
storage_sql
)
conn
.
commit
()
except
Exception
as
e
:
raise
ValidationError
(
"数据上传失败"
)
finally
:
...
...
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