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
e18699b5
authored
2024-07-24 14:49:42 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ADD:full财报逻辑
1 parent
24977d55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
e18699b
...
...
@@ -1578,6 +1578,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]
and
not
is_corporate
:
is_cdfl_bo
=
True
# CHINARPA-4660 是否公户判断
is_bo_tccor
=
False
customersubType
=
individual_info
.
get
(
'customersubType'
,
''
)
if
individual_info
[
'applicantType'
]
==
consts
.
APPLICANT_TYPE_ORDER
[
0
]
and
customersubType
==
'TCCOR'
:
is_bo_tccor
=
True
for
id_info
in
individual_info
.
get
(
'IDInformation'
,
[]):
if
id_info
.
get
(
'idType'
)
in
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
:
license_en
,
is_prc
=
consts
.
SE_CMS_FIRST_ID_FIELD_MAPPING
[
id_info
[
'idType'
]]
...
...
@@ -1745,6 +1751,24 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
vehicle_info
[
consts
.
UCI_EN
]
=
vehicle_field_input
compare_info
[
'vehicleInfo'
]
=
vehicle_info
# 公户财务报表-------------------------------------------------------------------------------------------------
financial_statement_info
=
{}
financial_statement_input
=
[]
hashCode
=
cms_info
.
get
(
'hashCode'
,
''
)
fiscalYear
=
cms_info
.
get
(
'fiscalYear'
,
''
)
totalAssets
=
cms_info
.
get
(
'totalAssets'
,
0
)
totalLiabilitiesAndOwnersEquity
=
cms_info
.
get
(
'totalLiabilitiesAndOwnersEquity'
,
0
)
netProfit
=
cms_info
.
get
(
'netProfit'
,
0
)
if
is_bo_tccor
:
financial_statement_input
.
append
((
consts
.
SE_FS_FIELD
[
0
],
hashCode
))
financial_statement_input
.
append
((
consts
.
SE_FS_FIELD
[
1
],
consts
.
SE_STAMP_VALUE
))
financial_statement_input
.
append
((
consts
.
SE_FS_FIELD
[
2
],
fiscalYear
))
financial_statement_input
.
append
((
consts
.
SE_FS_FIELD
[
3
],
[
totalAssets
,
totalLiabilitiesAndOwnersEquity
]))
financial_statement_input
.
append
((
consts
.
SE_FS_FIELD
[
4
],
netProfit
))
financial_statement_info
[
consts
.
FS_EN
]
=
financial_statement_input
compare_info
[
'financialStatementInfo'
]
=
financial_statement_info
# 银行卡-------------------------------------------------------------------------------------------------------
bank_info
=
{}
bank_name
=
cms_info
.
get
(
'bankAccountDetails'
,
{})
.
get
(
'bankName'
,
''
)
...
...
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