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
ef3fdf32
authored
2021-07-14 15:59:57 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
9e3f5c24
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
ef3fdf3
...
...
@@ -1366,7 +1366,7 @@ BC_COMPARE_LOGIC = {
DDA_COMPARE_LOGIC
=
{
'applicationId(1)'
:
(
'check_Num'
,
'se_common_compare'
,
{}),
'applicationId(2)'
:
(
'check_Num'
,
'se_common_compare'
,
{}),
'bankName'
:
(
'to_bank'
,
'se_
commo
n_compare'
,
{}),
'bankName'
:
(
'to_bank'
,
'se_
both_contai
n_compare'
,
{}),
'companyName'
:
(
'to_company'
,
'se_company_compare'
,
{}),
'customerName'
:
(
DDA_IC_NAME
,
'se_contain_compare_2'
,
{}),
'idNum'
:
(
DDA_IC_ID
,
'se_contain_compare_2'
,
{}),
...
...
src/celery_compare/tasks.py
View file @
ef3fdf3
...
...
@@ -681,7 +681,7 @@ def se_mvc34_compare(license_en, ocr_res_dict, field_list):
if
max_date
is
not
None
or
first_res
is
not
None
:
is_find
=
True
ocr_res
=
first_res
if
max_date
is
None
else
page34_date_dict
[
time
.
strftime
(
'
%
Y-
%
m-
%
d'
,
max_date
)][
0
]
for
name
,
value
in
enumerate
(
field_list
)
:
for
name
,
value
in
field_list
:
ocr_str
=
ocr_res
.
get
(
compare_logic
[
name
][
0
])
if
not
isinstance
(
ocr_str
,
str
):
result
=
consts
.
RESULT_N
...
...
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