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
df025c2d
authored
2025-01-27 16:51:06 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:证件号取值
1 parent
cfea3881
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
df025c2
...
...
@@ -971,6 +971,8 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
elif
is_corporate
and
id_info
.
get
(
'idType'
)
in
[
'Unified Social Credit Code'
,
'Tax Number'
,
'Business License Number'
]:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -1583,7 +1585,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
if
totalDownPayment
and
totalDownPayment
!=
'0.00'
:
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
0
],
cms_info
.
get
(
'financeCompany'
,
''
)))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
1
],
borrower_name
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
2
],
co_id
if
is_cdfl
else
main_id
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
2
],
borrower_idnum
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
3
],
cms_info
.
get
(
'settlemnetVerification'
,
{})
.
get
(
'applicationNo'
,
''
)))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
4
],
legal_name
if
is_bo_corporate
else
borrower_name
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
5
],
'有/无'
))
...
...
@@ -1660,6 +1662,8 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
elif
is_corporate
and
id_info
.
get
(
'idType'
)
in
[
'Unified Social Credit Code'
,
'Tax Number'
,
'Business License Number'
]:
borrower_idnum
=
decode_des
(
id_info
.
get
(
'idNum'
,
''
),
des_key
)
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -2237,7 +2241,7 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
if
totalDownPayment
and
totalDownPayment
!=
'0.00'
:
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
0
],
cms_info
.
get
(
'financeCompany'
,
''
)))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
1
],
borrower_name
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
2
],
co_id
if
is_cdfl
else
main_id
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
2
],
borrower_idnum
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
3
],
cms_info
.
get
(
'settlemnetVerification'
,
{})
.
get
(
'applicationNo'
,
''
)))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
4
],
legal_name
if
is_bo_corporate
else
borrower_name
))
down_payment_input
.
append
((
consts
.
SE_DP_FIELD
[
5
],
'有/无'
))
...
...
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