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
a1f6365c
authored
2021-09-29 18:59:02 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update param
1 parent
db94f0e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
src/apps/doc/views.py
src/celery_compare/tasks.py
src/apps/doc/views.py
View file @
a1f6365
...
...
@@ -1091,8 +1091,9 @@ class SECMSView(GenericView):
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
# pos上传比对信息接口 SE
@use_args
(
se_cms_args
,
location
=
'data'
)
def
post
(
self
,
request
,
args
):
# @use_args(se_cms_args, location='data')
def
post
(
self
,
request
):
args
=
request
.
data
cms_info
=
args
.
get
(
'content'
,
{})
business_type
=
consts
.
AFC_PREFIX
if
cms_info
.
get
(
'financeCompany'
,
''
)
.
startswith
(
'宝马'
)
else
consts
.
HIL_PREFIX
src_application_id
=
cms_info
.
get
(
'settlemnetVerification'
,
{})
.
get
(
'applicationNo'
,
''
)
...
...
src/celery_compare/tasks.py
View file @
a1f6365
...
...
@@ -1291,7 +1291,7 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
detect_list
=
se_result_detect
(
ocr_res_dict
)
if
is_cms
:
last_obj
=
rebuild_compare_info
(
last_obj
,
application_id
)
compare_info
,
is_gsyh
=
get_se_compare_info
(
last_obj
,
application_entity
,
detect_list
)
compare_info
=
get_se_compare_info
(
last_obj
,
application_entity
,
detect_list
)
compare_result
,
total_fields
,
failed_count
,
successful_at_this_level
,
failure_reason_str
=
se_compare_process
(
compare_info
,
ocr_res_dict
)
compare_log
.
info
(
'{0} [SE] [compare success] [entity={1}] [id={2}] [ocr_res_id={3}] [result={4}]'
.
format
(
...
...
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