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
2a03b2a7
authored
2024-02-26 16:02:54 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init 4395
1 parent
70735d1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
2a03b2a
...
...
@@ -37,6 +37,7 @@ from apps.doc.models import (
InterfaceReport
,
HILCompareReportNew
,
AFCCompareReportNew
,
AFCDoc
,
)
from
apps.doc
import
consts
from
apps.doc.ocr.gcap
import
gcap
...
...
@@ -3426,6 +3427,12 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True
auto_obj
=
auto_class
.
objects
.
filter
(
application_id
=
application_id
,
on_off
=
True
)
.
first
()
bank_class
=
HILbankVerification
if
application_entity
==
consts
.
HIL_PREFIX
else
AFCbankVerification
ignore_bank
=
bank_class
.
objects
.
filter
(
application_id
=
application_id
,
on_off
=
True
)
.
exists
()
data_source
=
''
if
application_entity
==
consts
.
AFC_PREFIX
:
doc_obj
=
AFCDoc
.
objects
.
filter
(
application_id
=
application_id
,
data_source__icontains
=
'电子签署-车辆抵押贷款合同'
)
.
latest
()
data_source
=
doc_obj
.
data_source
compare_log
.
info
(
'{0} [Auto SE] [get data_source] [id={1}] [data_source={2}]]'
.
format
(
log_base
,
application_id
,
data_source
))
if
auto_obj
is
not
None
:
auto_result
=
se_compare_auto
(
application_id
,
application_entity
,
ocr_res_id
,
last_obj
,
ocr_res_dict
,
auto_obj
,
ignore_bank
,
id_res_list
)
else
:
...
...
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