MOD:财报相关cms取值
Showing
1 changed file
with
13 additions
and
11 deletions
... | @@ -1129,11 +1129,12 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -1129,11 +1129,12 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
1129 | # 公户财务报表------------------------------------------------------------------------------------------------- | 1129 | # 公户财务报表------------------------------------------------------------------------------------------------- |
1130 | financial_statement_info = {} | 1130 | financial_statement_info = {} |
1131 | financial_statement_input = [] | 1131 | financial_statement_input = [] |
1132 | hashCode = cms_info.get('hashCode', '') | 1132 | corporateFinancialInformation = cms_info.get('corporateFinancialInformation', {}) |
1133 | fiscalYear = cms_info.get('fiscalYear', '') | 1133 | hashCode = corporateFinancialInformation.get('hashCode', '') |
1134 | totalAssets = cms_info.get('totalAssets', 0) | 1134 | fiscalYear = corporateFinancialInformation.get('fiscalYear', '') |
1135 | totalLiabilitiesAndOwnersEquity = cms_info.get('totalLiabilitiesAndOwnersEquity', 0) | 1135 | totalAssets = corporateFinancialInformation.get('totalAssets', 0) |
1136 | netProfit = cms_info.get('netProfit', 0) | 1136 | totalLiabilitiesAndOwnersEquity = corporateFinancialInformation.get('totalLiabilitiesAndOwnersEquity', 0) |
1137 | netProfit = corporateFinancialInformation.get('netProfit', 0) | ||
1137 | if is_bo_tccor: | 1138 | if is_bo_tccor: |
1138 | financial_statement_input.append((consts.SE_FS_FIELD[0], hashCode)) | 1139 | financial_statement_input.append((consts.SE_FS_FIELD[0], hashCode)) |
1139 | financial_statement_input.append((consts.SE_FS_FIELD[1], consts.SE_STAMP_VALUE)) | 1140 | 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 | ... | @@ -1754,11 +1755,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
1754 | # 公户财务报表------------------------------------------------------------------------------------------------- | 1755 | # 公户财务报表------------------------------------------------------------------------------------------------- |
1755 | financial_statement_info = {} | 1756 | financial_statement_info = {} |
1756 | financial_statement_input = [] | 1757 | financial_statement_input = [] |
1757 | hashCode = cms_info.get('hashCode', '') | 1758 | corporateFinancialInformation = cms_info.get('corporateFinancialInformation', {}) |
1758 | fiscalYear = cms_info.get('fiscalYear', '') | 1759 | hashCode = corporateFinancialInformation.get('hashCode', '') |
1759 | totalAssets = cms_info.get('totalAssets', 0) | 1760 | fiscalYear = corporateFinancialInformation.get('fiscalYear', '') |
1760 | totalLiabilitiesAndOwnersEquity = cms_info.get('totalLiabilitiesAndOwnersEquity', 0) | 1761 | totalAssets = corporateFinancialInformation.get('totalAssets', 0) |
1761 | netProfit = cms_info.get('netProfit', 0) | 1762 | totalLiabilitiesAndOwnersEquity = corporateFinancialInformation.get('totalLiabilitiesAndOwnersEquity', 0) |
1763 | netProfit = corporateFinancialInformation.get('netProfit', 0) | ||
1762 | if is_bo_tccor: | 1764 | if is_bo_tccor: |
1763 | financial_statement_input.append((consts.SE_FS_FIELD[0], hashCode)) | 1765 | financial_statement_input.append((consts.SE_FS_FIELD[0], hashCode)) |
1764 | financial_statement_input.append((consts.SE_FS_FIELD[1], consts.SE_STAMP_VALUE)) | 1766 | 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 | ... | @@ -3255,7 +3257,7 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list |
3255 | elif license_en == consts.BS_EN: | 3257 | elif license_en == consts.BS_EN: |
3256 | result_field_list, field_img_path_dict = se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type) | 3258 | result_field_list, field_img_path_dict = se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type) |
3257 | elif license_en == consts.FS_EN: | 3259 | elif license_en == consts.FS_EN: |
3258 | result_field_list, field_img_path_dict = se_fs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type) | 3260 | result_field_list, field_img_path_dict = se_fs_compare(license_en, ocr_res_dict, strip_list) |
3259 | else: | 3261 | else: |
3260 | result_field_list, _, field_img_path_dict = se_compare_license(license_en, ocr_res_dict, strip_list) | 3262 | result_field_list, _, field_img_path_dict = se_compare_license(license_en, ocr_res_dict, strip_list) |
3261 | 3263 | ... | ... |
-
Please register or sign in to post a comment