ADD:full财报逻辑
Showing
1 changed file
with
24 additions
and
0 deletions
... | @@ -1578,6 +1578,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect | ... | @@ -1578,6 +1578,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
1578 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0] and not is_corporate: | 1578 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0] and not is_corporate: |
1579 | is_cdfl_bo = True | 1579 | is_cdfl_bo = True |
1580 | 1580 | ||
1581 | # CHINARPA-4660 是否公户判断 | ||
1582 | is_bo_tccor = False | ||
1583 | customersubType = individual_info.get('customersubType', '') | ||
1584 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0] and customersubType == 'TCCOR': | ||
1585 | is_bo_tccor = True | ||
1586 | |||
1581 | for id_info in individual_info.get('IDInformation', []): | 1587 | for id_info in individual_info.get('IDInformation', []): |
1582 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: | 1588 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: |
1583 | license_en, is_prc = consts.SE_CMS_FIRST_ID_FIELD_MAPPING[id_info['idType']] | 1589 | 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 | ... | @@ -1745,6 +1751,24 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
1745 | vehicle_info[consts.UCI_EN] = vehicle_field_input | 1751 | vehicle_info[consts.UCI_EN] = vehicle_field_input |
1746 | compare_info['vehicleInfo'] = vehicle_info | 1752 | compare_info['vehicleInfo'] = vehicle_info |
1747 | 1753 | ||
1754 | # 公户财务报表------------------------------------------------------------------------------------------------- | ||
1755 | financial_statement_info = {} | ||
1756 | financial_statement_input = [] | ||
1757 | hashCode = cms_info.get('hashCode', '') | ||
1758 | fiscalYear = cms_info.get('fiscalYear', '') | ||
1759 | totalAssets = cms_info.get('totalAssets', 0) | ||
1760 | totalLiabilitiesAndOwnersEquity = cms_info.get('totalLiabilitiesAndOwnersEquity', 0) | ||
1761 | netProfit = cms_info.get('netProfit', 0) | ||
1762 | if is_bo_tccor: | ||
1763 | financial_statement_input.append((consts.SE_FS_FIELD[0], hashCode)) | ||
1764 | financial_statement_input.append((consts.SE_FS_FIELD[1], consts.SE_STAMP_VALUE)) | ||
1765 | financial_statement_input.append((consts.SE_FS_FIELD[2], fiscalYear)) | ||
1766 | financial_statement_input.append((consts.SE_FS_FIELD[3], [totalAssets, totalLiabilitiesAndOwnersEquity])) | ||
1767 | financial_statement_input.append((consts.SE_FS_FIELD[4], netProfit)) | ||
1768 | financial_statement_info[consts.FS_EN] = financial_statement_input | ||
1769 | compare_info['financialStatementInfo'] = financial_statement_info | ||
1770 | |||
1771 | |||
1748 | # 银行卡------------------------------------------------------------------------------------------------------- | 1772 | # 银行卡------------------------------------------------------------------------------------------------------- |
1749 | bank_info = {} | 1773 | bank_info = {} |
1750 | bank_name = cms_info.get('bankAccountDetails', {}).get('bankName', '') | 1774 | bank_name = cms_info.get('bankAccountDetails', {}).get('bankName', '') | ... | ... |
-
Please register or sign in to post a comment