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
a18157ca
authored
2023-08-04 15:45:49 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/CHINARPA-3786' into feature/uat-tmp
2 parents
d63cc7f9
7a232509
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
a18157c
...
...
@@ -2088,16 +2088,16 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type):
# 若仅提供纸质流水,则默认真伪为N2
if
not
auto_elec_verify_list
:
result
=
consts
.
RESULT_N2
reason
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_list
))
reason
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_
false_idx_
list
))
# 若仅提供电子流水,逐一比对,有false为N1,全部true为Y
if
not
auto_paper_verify_list
:
result
=
consts
.
RESULT_Y
if
all
(
auto_elec_verify_list
)
else
consts
.
RESULT_N1
reason
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_list
))
reason
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_
false_idx_
list
))
#同时包含,同时返回N1,N2
if
auto_elec_verify_list
and
auto_paper_verify_list
:
result
=
consts
.
RESULT_Y
if
all
(
auto_elec_verify_list
)
else
consts
.
RESULT_N1
reason1
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_list
))
reason2
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_list
))
reason1
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_
false_idx_
list
))
reason2
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_
false_idx_
list
))
reason
=
reason1
+
reason2
result_field_list
.
append
((
name
,
empty_str
,
result
,
json
.
dumps
(
verify_list
,
ensure_ascii
=
False
),
empty_str
,
empty_error_type
,
reason
))
# 非FSM Full & Auto CAA2 目前逻辑和上面的完全一样
...
...
@@ -2106,16 +2106,16 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type):
# 若仅提供纸质流水,则默认真伪为N2
if
not
auto_elec_verify_list
:
result
=
consts
.
RESULT_N2
reason
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_list
))
reason
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_
false_idx_
list
))
# 若仅提供电子流水,逐一比对,有false为N1,全部true为Y
if
not
auto_paper_verify_list
:
result
=
consts
.
RESULT_Y
if
all
(
auto_elec_verify_list
)
else
consts
.
RESULT_N1
reason
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_list
))
reason
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_
false_idx_
list
))
#同时包含,同时返回N1,N2
if
auto_elec_verify_list
and
auto_paper_verify_list
:
result
=
consts
.
RESULT_Y
if
all
(
auto_elec_verify_list
)
else
consts
.
RESULT_N1
reason1
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_list
))
reason2
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_list
))
reason1
=
'第{0}份银行流水疑似造假,需人工核查。'
.
format
(
'、'
.
join
(
auto_elec_verify_
false_idx_
list
))
reason2
=
'第{0}份银行流水为纸质版,请核查流水真伪。'
.
format
(
'、'
.
join
(
auto_paper_verify_
false_idx_
list
))
reason
=
reason1
+
reason2
result_field_list
.
append
((
name
,
empty_str
,
result
,
json
.
dumps
(
verify_list
,
ensure_ascii
=
False
),
empty_str
,
empty_error_type
,
reason
))
...
...
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