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
0a6bf496
authored
2024-03-19 16:31:44 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:没有电子合同时,比对失败
1 parent
498bf14e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
src/apps/doc/mixins.py
src/celery_compare/tasks.py
src/apps/doc/mixins.py
View file @
0a6bf49
...
...
@@ -161,7 +161,8 @@ class PreSEHandler:
data_source
=
''
if
application_entity
==
consts
.
AFC_PREFIX
:
doc_obj
=
AFCDoc
.
objects
.
filter
(
application_id
=
application_id
,
document_name__icontains
=
'电子签署-车辆抵押贷款合同'
)
.
last
()
data_source
=
doc_obj
.
data_source
if
doc_obj
is
not
None
:
data_source
=
doc_obj
.
data_source
LoggerMixin
.
running_log
.
info
(
'[pre get data_source] [id={0}] [data_source={1}]]'
.
format
(
application_id
,
data_source
))
...
...
src/celery_compare/tasks.py
View file @
0a6bf49
...
...
@@ -3430,7 +3430,8 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True
data_source
=
''
if
application_entity
==
consts
.
AFC_PREFIX
:
doc_obj
=
AFCDoc
.
objects
.
filter
(
application_id
=
application_id
,
document_name__icontains
=
'电子签署-车辆抵押贷款合同'
)
.
last
()
data_source
=
doc_obj
.
data_source
if
doc_obj
is
not
None
:
data_source
=
doc_obj
.
data_source
compare_log
.
info
(
'{0} [get data_source] [id={1}] [data_source={2}]]'
.
format
(
log_base
,
application_id
,
data_source
))
if
auto_obj
is
not
None
:
...
...
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