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
394abc6b
authored
2022-05-09 18:58:23 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix cdfl
1 parent
133b0683
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
394abc6
...
...
@@ -1389,7 +1389,8 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
dealer_name
=
''
if
len
(
dealer_name_list
)
==
0
else
dealer_name_list
[
-
1
]
# 个人信息证件------------------------------------------------------------------------------------------------------
is_cdfl
=
True
# 车贷分离
is_cdfl_bo
=
False
# 车贷分离,主借
is_cdfl_co
=
False
# 车贷分离,共借
# province = cms_info.get('province', '')
for
individual_info
in
cms_info
.
get
(
'applicantInformation'
,
[]):
all_id_num
=
[]
...
...
@@ -1403,10 +1404,10 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
# 车贷分离判断
is_corporate
=
individual_info
.
get
(
'customersubType'
,
''
)
==
'Corporate'
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
1
]
and
not
is_corporate
:
is_cdfl
=
Fals
e
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]
and
is_corporate
:
is_cdfl
=
Fals
e
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
1
]
and
is_corporate
:
is_cdfl
_co
=
Tru
e
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]
and
not
is_corporate
:
is_cdfl
_bo
=
Tru
e
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -1468,9 +1469,16 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, auto=Fals
break
co_name
=
co_id
=
bo_name
=
bo_id
=
''
is_cdfl
=
is_cdfl_bo
and
is_cdfl_co
if
is_cdfl
:
co_name
,
_
,
co_id
=
main_role_info
[
consts
.
APPLICANT_TYPE_ORDER
[
1
]][
0
]
bo_name
,
_
,
bo_id
=
main_role_info
[
consts
.
APPLICANT_TYPE_ORDER
[
0
]][
0
]
if
len
(
main_role_info
.
get
(
consts
.
APPLICANT_TYPE_ORDER
[
1
],
[]))
>
0
:
co_name
,
_
,
co_id
=
main_role_info
[
consts
.
APPLICANT_TYPE_ORDER
[
1
]][
0
]
else
:
co_name
=
co_id
=
''
if
len
(
main_role_info
.
get
(
consts
.
APPLICANT_TYPE_ORDER
[
0
],
[]))
>
0
:
bo_name
,
_
,
bo_id
=
main_role_info
[
consts
.
APPLICANT_TYPE_ORDER
[
0
]][
0
]
else
:
bo_name
=
bo_id
=
''
# dda_name_list = []
# dda_num_list = []
...
...
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