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
6a6a82b5
authored
2024-12-20 17:03:28 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:auto和full比对信息加入dp
1 parent
b0a3bed9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
6a6a82b
...
...
@@ -1511,6 +1511,7 @@ JYPZ_TYPE_1 = ['二手车交易凭证']
JYPZ_TYPE_2
=
[
'BMW官方认证二手车交易凭证'
,
'二手车交易凭证'
]
SE_FS_FIELD
=
[
'Hash值'
,
'公章'
,
'财年'
,
'资产负债表内容'
,
'利润表内容'
]
SE_FSS_FIELD
=
[
'公司名称'
,
'公章'
]
SE_DP_FIELD
=
[
'渠道'
,
'姓名'
,
'证件号码'
,
'合同编号(含版本号)'
,
'承诺人签字-电子'
,
'承诺人签字日期-电子'
]
SE_BANK_FIELD
=
[
'accountNo'
,
'bankName'
]
SE_DDA_FIELD
=
[
'applicationId(1)'
,
'applicationId(2)'
,
'bankName'
,
'companyName'
,
'customerName'
,
'idNum'
,
'accountHolderName'
,
'accountNo'
]
...
...
@@ -1826,6 +1827,7 @@ HIL_CONTRACT_2_EN = '车辆租赁抵押合同'
HIL_CONTRACT_3_EN
=
'车辆处置协议'
FS_EN
=
'Financial Statement'
FSS_EN
=
'Financial Statement Supplementary'
DP_EN
=
'Down Payment'
DDA_NO_FIND
=
'需人工查看DDA或截图'
FS_NO_FIND
=
'未提供财报或财报不完整'
...
...
src/celery_compare/tasks.py
View file @
6a6a82b
...
...
@@ -937,6 +937,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
is_bo_corporate
=
False
role_count
=
0
borrower_name
=
''
borrower_idnum
=
''
legal_name
=
''
# province = cms_info.get('province', '')
for
individual_info
in
cms_info
.
get
(
'applicantInformation'
,
[]):
...
...
@@ -964,8 +965,12 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
is_bo_corporate
=
True
# CHINARPA-4660 财报主借人姓名赋值
# CHINARPA-5075 首付款承诺书主借人证件号赋值
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]:
borrower_name
=
customer_name
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
)
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -1570,6 +1575,20 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
contract_info
[
consts
.
AFC_CONTRACT_QRS_EN
]
=
afc_contract_qrs_input
compare_info
[
'contract'
]
=
contract_info
# 首付款承诺书
down_payment_info
=
{}
down_payment_input
=
{}
totalDownPayment
=
cms_info
.
get
(
'totalDownPayment'
)
if
totalDownPayment
and
totalDownPayment
==
0
:
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
],
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
],
'有/无'
))
down_payment_info
[
consts
.
DP_EN
]
=
down_payment_input
compare_info
[
'downPayment'
]
=
down_payment_info
return
compare_info
,
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
),
is_gsyh
,
allow_bs_type
...
...
@@ -1607,6 +1626,7 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
is_bo_corporate
=
False
role_count
=
0
borrower_name
=
''
borrower_idnum
=
''
legal_name
=
''
# province = cms_info.get('province', '')
for
individual_info
in
cms_info
.
get
(
'applicantInformation'
,
[]):
...
...
@@ -1633,9 +1653,13 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]
and
is_corporate
:
is_bo_corporate
=
True
# CHINARPA-4660 财报主借人姓名赋值
# CHINARPA-4660 财报主借人姓名赋值
# CHINARPA-5075 首付款承诺书主借人证件号赋值
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]:
borrower_name
=
customer_name
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
)
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
...
...
@@ -2205,6 +2229,20 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
afc_contract_qrs_input
=
[(
consts
.
SE_AFC_CON_QRS_FIELD
[
0
],
'{0}{1}{2}'
.
format
(
role_count
,
consts
.
SPLIT_STR
,
full_no
))]
contract_info
[
consts
.
AFC_CONTRACT_QRS_EN
]
=
afc_contract_qrs_input
compare_info
[
'contract'
]
=
contract_info
# 首付款承诺书
down_payment_info
=
{}
down_payment_input
=
{}
totalDownPayment
=
cms_info
.
get
(
'totalDownPayment'
)
if
totalDownPayment
and
totalDownPayment
==
0
:
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
],
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
],
'有/无'
))
down_payment_info
[
consts
.
DP_EN
]
=
down_payment_input
compare_info
[
'downPayment'
]
=
down_payment_info
return
compare_info
,
cms_info
.
get
(
'applicationVersion'
,
1
),
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
),
is_gsyh
,
allow_bs_type
...
...
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