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
40a2eb08
authored
2023-01-11 19:25:13 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fsm activated update
1 parent
1f2a4883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
40a2eb0
...
...
@@ -581,14 +581,14 @@ class UploadDocView(GenericView, DocHandler):
if
consts
.
FSM_ACTIVITED_STATUS
.
get
(
application_status
):
result_class
=
None
if
business_type
==
consts
.
HIL_PREFIX
:
if
document_scheme
==
RequestTeam
.
ACCEPTANCE
[
1
]
:
if
document_scheme
==
RequestTeam
.
ACCEPTANCE
.
name
:
result_class
=
HILOCRResult
elif
document_scheme
==
RequestTeam
.
SETTLEMENT
[
1
]
:
elif
document_scheme
==
RequestTeam
.
SETTLEMENT
.
name
:
result_class
=
HILSEOCRResult
elif
business_type
==
consts
.
AFC_PREFIX
:
if
document_scheme
==
RequestTeam
.
ACCEPTANCE
[
1
]
:
if
document_scheme
==
RequestTeam
.
ACCEPTANCE
.
name
:
result_class
=
AFCOCRResult
elif
document_scheme
==
RequestTeam
.
SETTLEMENT
[
1
]
:
elif
document_scheme
==
RequestTeam
.
SETTLEMENT
.
name
:
result_class
=
AFCSEOCRResult
ocr_result_obj
=
result_class
.
objects
.
filter
(
application_id
=
application_id
)
.
first
()
...
...
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