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
dee1b339
authored
2022-08-08 15:22:09 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix gsyh afc ht\
1 parent
1b50f4ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
dee1b33
...
...
@@ -2368,14 +2368,14 @@ def se_contract_compare(license_en, ocr_res_dict, strip_list, is_gsyh):
ocr_str
=
empty_str
else
:
ocr_str_or_list
=
ocr_res
.
get
(
compare_logic
[
name
][
0
])
#
银行信息
if
ocr_str_or_list
is
None
and
license_en
==
consts
.
AFC_CONTRACT_EN
\
and
is_gsyh
is
True
and
name
in
consts
.
CON_BANK_FIELD
:
result
=
consts
.
RESULT_Y
ocr_str
=
empty_str
reason
=
compare_logic
[
name
][
3
]
#
招商银行特殊
#
if ocr_str_or_list is None and license_en == consts.AFC_CONTRACT_EN \
#
and is_gsyh is True and name in consts.CON_BANK_FIELD:
#
result = consts.RESULT_Y
#
ocr_str = empty_str
#
reason = compare_logic[name][3]
# 其他字段
el
if
isinstance
(
ocr_str_or_list
,
str
)
or
isinstance
(
ocr_str_or_list
,
list
):
if
isinstance
(
ocr_str_or_list
,
str
)
or
isinstance
(
ocr_str_or_list
,
list
):
if
is_gsyh
is
True
and
name
in
consts
.
CON_BANK_FIELD
:
update_args
=
{
'is_gsyh'
:
is_gsyh
}
for
k
,
v
in
compare_logic
[
name
][
2
]
.
items
():
...
...
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