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
10cae765
authored
2024-11-04 13:53:36 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:银行流水类型字段名
1 parent
d07f9bde
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
10cae76
...
...
@@ -2017,7 +2017,7 @@ BS_COMPARE_LOGIC = {
'流水日期'
:
(
'timedelta'
,
'se_bs_date_compare'
,
{},
'主共借人银行流水日期不满足3个月'
),
'(担保人1)流水日期'
:
(
'timedelta'
,
'se_bs_date_compare'
,
{},
'担保人1银行流水日期不满足3个月'
),
'(担保人2)流水日期'
:
(
'timedelta'
,
'se_bs_date_compare'
,
{},
'担保人2银行流水日期不满足3个月'
),
'类型'
:
(
'bank
_s
tatement_type'
,
'se_bs_type_compare'
,
{},
'高风险经销商流水类型异常'
),
'类型'
:
(
'bank
S
tatement_type'
,
'se_bs_type_compare'
,
{},
'高风险经销商流水类型异常'
),
}
BS_COMPARE_LOGIC_AUTO
=
{
...
...
@@ -2030,7 +2030,7 @@ BS_COMPARE_LOGIC_AUTO = {
'流水日期'
:
(
'timedelta'
,
'se_bs_date_compare'
,
{},
'主共借人银行流水日期不满足2个月'
),
'(担保人1)流水日期'
:
(
'timedelta'
,
'se_bs_date_compare'
,
{},
'担保人1银行流水日期不满足2个月'
),
'(担保人2)流水日期'
:
(
'timedelta'
,
'se_bs_date_compare'
,
{},
'担保人2银行流水日期不满足2个月'
),
'类型'
:
(
'bank
_s
tatement_type'
,
'se_bs_type_compare'
,
{},
'高风险经销商流水类型异常'
),
'类型'
:
(
'bank
S
tatement_type'
,
'se_bs_type_compare'
,
{},
'高风险经销商流水类型异常'
),
}
SPECIAL_REASON
=
'主共借人未提供银行流水,含担保人需人工查看直系亲属关系'
...
...
src/celery_compare/tasks.py
View file @
10cae76
...
...
@@ -2244,9 +2244,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
pre_tmp_res_part
=
{}
verify_bool
=
ocr_res
.
get
(
'verify'
,
False
)
e_bank
=
ocr_res
.
get
(
'e_bank'
,
False
)
b
s_type
=
ocr_res
.
get
(
'bs
_type'
,
''
)
b
ankStatement_type
=
ocr_res
.
get
(
'bankStatement
_type'
,
''
)
# 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'不接受支付宝/微信'
and
b
s
_type
in
[
12
,
13
,
48
]:
if
allow_bs_type
==
'不接受支付宝/微信'
and
b
ankStatement
_type
in
[
12
,
13
,
48
]:
continue
all_zhifubao_weixin
=
False
#verify_list.append(verify_bool)
...
...
@@ -2345,9 +2345,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
if
len
(
dbr1_field_list
)
>
0
:
max_correct_count
=
0
for
ocr_res
in
ocr_res_list
:
b
s_type
=
ocr_res
.
get
(
'bs
_type'
,
''
)
b
ankStatement_type
=
ocr_res
.
get
(
'bankStatement
_type'
,
''
)
# 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'不接受支付宝/微信'
and
b
s
_type
in
[
12
,
13
,
48
]:
if
allow_bs_type
==
'不接受支付宝/微信'
and
b
ankStatement
_type
in
[
12
,
13
,
48
]:
continue
correct_count
=
0
...
...
@@ -2382,9 +2382,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
if
len
(
dbr1_field_list
)
>
0
:
max_correct_count
=
0
for
ocr_res
in
ocr_res_list
:
b
s_type
=
ocr_res
.
get
(
'bs
_type'
,
''
)
b
ankStatement_type
=
ocr_res
.
get
(
'bankStatement
_type'
,
''
)
# 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
if
allow_bs_type
==
'不接受支付宝/微信'
and
b
s
_type
in
[
12
,
13
,
48
]:
if
allow_bs_type
==
'不接受支付宝/微信'
and
b
ankStatement
_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