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
2f365299
authored
2024-11-07 14:51:40 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:allowBsType改为判断-仅接受银行流水-
1 parent
c08f987a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
2f36529
...
...
@@ -1224,9 +1224,9 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
]
#在比对逻辑中添加字段
if
'
不接受支付宝/微信
'
in
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'PolicyComments'
,
''
):
#bs_field_input.append((consts.SE_BS_FIELD[9], '
不接受支付宝/微信
'))
allow_bs_type
=
'
不接受支付宝/微信
'
if
'
仅接受银行流水
'
in
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'PolicyComments'
,
''
):
#bs_field_input.append((consts.SE_BS_FIELD[9], '
仅接受银行流水
'))
allow_bs_type
=
'
仅接受银行流水
'
else
:
#bs_field_input.append((consts.SE_BS_FIELD[9], '全部'))
allow_bs_type
=
'全部'
...
...
@@ -1894,9 +1894,9 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
]
#在比对逻辑中添加字段
if
'
不接受支付宝/微信
'
in
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'PolicyComments'
,
''
):
#bs_field_input.append((consts.SE_BS_FIELD[9], '
不接受支付宝/微信
'))
allow_bs_type
=
'
不接受支付宝/微信
'
if
'
仅接受银行流水
'
in
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'PolicyComments'
,
''
):
#bs_field_input.append((consts.SE_BS_FIELD[9], '
仅接受银行流水
'))
allow_bs_type
=
'
仅接受银行流水
'
else
:
#bs_field_input.append((consts.SE_BS_FIELD[9], '全部'))
allow_bs_type
=
'全部'
...
...
@@ -2249,8 +2249,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
verify_bool
=
ocr_res
.
get
(
'verify'
,
False
)
e_bank
=
ocr_res
.
get
(
'e_bank'
,
False
)
bankStatement_type
=
ocr_res
.
get
(
'bankStatement_type'
,
''
)
# 如果是高风险经销商,cms信息中包含‘
不接受支付宝/微信
’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'
不接受支付宝/微信
'
and
bankStatement_type
in
[
'12'
,
'13'
,
'48'
]:
# 如果是高风险经销商,cms信息中包含‘
仅接受银行流水
’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'
仅接受银行流水
'
and
bankStatement_type
in
[
'12'
,
'13'
,
'48'
]:
continue
all_zhifubao_weixin
=
False
#verify_list.append(verify_bool)
...
...
@@ -2342,7 +2342,7 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
# 核查点名称,cms传值,比对结果,ocr结果,图片路径,错误类型,错误描述
result_field_list
.
append
((
'类型'
,
allow_bs_type
,
consts
.
RESULT_N
,
'全部为支付宝/微信'
,
empty_str
,
ErrorType
.
NF
.
value
,
'高风险经销商流水类型异常'
))
else
:
result_field_list
.
append
((
'类型'
,
allow_bs_type
,
consts
.
RESULT_Y
,
'包含支
付宝/微信以外流水
'
,
empty_str
,
empty_error_type
,
''
))
result_field_list
.
append
((
'类型'
,
allow_bs_type
,
consts
.
RESULT_Y
,
'包含支
持的流水类型
'
,
empty_str
,
empty_error_type
,
''
))
# 担保人1
dbr1_best_res
=
{}
...
...
@@ -2350,8 +2350,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
max_correct_count
=
0
for
ocr_res
in
ocr_res_list
:
bankStatement_type
=
ocr_res
.
get
(
'bankStatement_type'
,
''
)
# 如果是高风险经销商,cms信息中包含‘
不接受支付宝/微信
’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'
不接受支付宝/微信
'
and
bankStatement_type
in
[
'12'
,
'13'
,
'48'
]:
# 如果是高风险经销商,cms信息中包含‘
仅接受银行流水
’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'
仅接受银行流水
'
and
bankStatement_type
in
[
'12'
,
'13'
,
'48'
]:
continue
correct_count
=
0
...
...
@@ -2387,8 +2387,8 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
max_correct_count
=
0
for
ocr_res
in
ocr_res_list
:
bankStatement_type
=
ocr_res
.
get
(
'bankStatement_type'
,
''
)
# 如果是高风险经销商,cms信息中包含‘
不接受支付宝/微信
’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'
不接受支付宝/微信
'
and
bankStatement_type
in
[
'12'
,
'13'
,
'48'
]:
# 如果是高风险经销商,cms信息中包含‘
仅接受银行流水
’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'
仅接受银行流水
'
and
bankStatement_type
in
[
'12'
,
'13'
,
'48'
]:
continue
correct_count
=
0
dbr2_tmp_res_part
=
{}
...
...
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