Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
75e94e77
authored
2025-04-01 14:47:45 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
4bbb6b8a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/apps/doc/internal_urls.py
src/apps/doc/views.py
src/apps/doc/internal_urls.py
View file @
75e94e7
...
...
@@ -6,6 +6,6 @@ urlpatterns = [
path
(
r''
,
views
.
DocView
.
as_view
()),
path
(
r'query/employee'
,
views
.
EmployeeView
.
as_view
()),
path
(
r'query/greenBookHistoryFile'
,
views
.
SearchGBHistoryFileView
.
as_view
()),
path
(
r'
query
/greenBookHistoryFile'
,
views
.
DownloadGBHistoryFileView
.
as_view
()),
path
(
r'
download
/greenBookHistoryFile'
,
views
.
DownloadGBHistoryFileView
.
as_view
()),
path
(
r'contract/v1'
,
views
.
SEContractView
.
as_view
()),
]
...
...
src/apps/doc/views.py
View file @
75e94e7
...
...
@@ -1887,12 +1887,12 @@ class SearchGBHistoryFileView(GenericView):
@use_args
(
employee_args
,
location
=
'data'
)
def
post
(
self
,
request
,
args
):
file
Path
=
args
.
get
(
'fileP
ath'
)
file
_path
=
args
.
get
(
'file_p
ath'
)
business_type
=
args
.
get
(
'business_type'
)
gb_history_file_class
=
HILGreenBookHistoryFile
if
business_type
in
consts
.
HIL_SET
else
AFCGreenBookHistoryFile
ecm
=
ECM
()
response_json
=
ecm
.
search_doc_info_list
(
file
P
ath
,
business_type
)
response_json
=
ecm
.
search_doc_info_list
(
file
_p
ath
,
business_type
)
data_objects
=
response_json
[
'Envelope'
][
'Body'
][
'executeResponse'
][
'return'
][
'dataPackage'
][
'DataObjects'
]
for
data_object
in
data_objects
:
object_id
=
data_object
[
'Identity'
][
'ObjectId'
][
'@id'
]
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment