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
93aaae0c
authored
2024-07-24 15:39:37 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:财报相关cms取值
1 parent
e18699b5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
93aaae0
...
...
@@ -1129,11 +1129,12 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d
# 公户财务报表-------------------------------------------------------------------------------------------------
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
)
corporateFinancialInformation
=
cms_info
.
get
(
'corporateFinancialInformation'
,
{})
hashCode
=
corporateFinancialInformation
.
get
(
'hashCode'
,
''
)
fiscalYear
=
corporateFinancialInformation
.
get
(
'fiscalYear'
,
''
)
totalAssets
=
corporateFinancialInformation
.
get
(
'totalAssets'
,
0
)
totalLiabilitiesAndOwnersEquity
=
corporateFinancialInformation
.
get
(
'totalLiabilitiesAndOwnersEquity'
,
0
)
netProfit
=
corporateFinancialInformation
.
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
))
...
...
@@ -1754,11 +1755,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect
# 公户财务报表-------------------------------------------------------------------------------------------------
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
)
corporateFinancialInformation
=
cms_info
.
get
(
'corporateFinancialInformation'
,
{})
hashCode
=
corporateFinancialInformation
.
get
(
'hashCode'
,
''
)
fiscalYear
=
corporateFinancialInformation
.
get
(
'fiscalYear'
,
''
)
totalAssets
=
corporateFinancialInformation
.
get
(
'totalAssets'
,
0
)
totalLiabilitiesAndOwnersEquity
=
corporateFinancialInformation
.
get
(
'totalLiabilitiesAndOwnersEquity'
,
0
)
netProfit
=
corporateFinancialInformation
.
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
))
...
...
@@ -3255,7 +3257,7 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list
elif
license_en
==
consts
.
BS_EN
:
result_field_list
,
field_img_path_dict
=
se_bs_compare
(
license_en
,
ocr_res_dict
,
strip_list
,
is_auto
,
aa_type
)
elif
license_en
==
consts
.
FS_EN
:
result_field_list
,
field_img_path_dict
=
se_fs_compare
(
license_en
,
ocr_res_dict
,
strip_list
,
is_auto
,
aa_type
)
result_field_list
,
field_img_path_dict
=
se_fs_compare
(
license_en
,
ocr_res_dict
,
strip_list
)
else
:
result_field_list
,
_
,
field_img_path_dict
=
se_compare_license
(
license_en
,
ocr_res_dict
,
strip_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