MOD:fss logic
Showing
2 changed files
with
24 additions
and
1 deletions
... | @@ -1248,6 +1248,7 @@ FSM_CONTRACT_MSI_FIELD = 'fsm_msi_ocr' | ... | @@ -1248,6 +1248,7 @@ FSM_CONTRACT_MSI_FIELD = 'fsm_msi_ocr' |
1248 | FSM_CONTRACT_SC_FIELD = 'fsm_sc_ocr' | 1248 | FSM_CONTRACT_SC_FIELD = 'fsm_sc_ocr' |
1249 | FSM_CONTRACT_SC2_FIELD = 'fsm_sc2_ocr' | 1249 | FSM_CONTRACT_SC2_FIELD = 'fsm_sc2_ocr' |
1250 | FS_FIELD = 'fs_ocr' | 1250 | FS_FIELD = 'fs_ocr' |
1251 | FSS_FIELD = 'fss_ocr' | ||
1251 | 1252 | ||
1252 | 1253 | ||
1253 | BS_CLASSIFY = 10089 | 1254 | BS_CLASSIFY = 10089 |
... | @@ -1507,6 +1508,7 @@ JDMPV_VALUE = ['-', '--', '0%', '0.00', '/', '0', ''] | ... | @@ -1507,6 +1508,7 @@ JDMPV_VALUE = ['-', '--', '0%', '0.00', '/', '0', ''] |
1507 | JYPZ_TYPE_1 = ['二手车交易凭证'] | 1508 | JYPZ_TYPE_1 = ['二手车交易凭证'] |
1508 | JYPZ_TYPE_2 = ['BMW官方认证二手车交易凭证', '二手车交易凭证'] | 1509 | JYPZ_TYPE_2 = ['BMW官方认证二手车交易凭证', '二手车交易凭证'] |
1509 | SE_FS_FIELD = ['Hash值', '公章', '财年', '资产负债表内容', '利润表内容'] | 1510 | SE_FS_FIELD = ['Hash值', '公章', '财年', '资产负债表内容', '利润表内容'] |
1511 | SE_FSS_FIELD = ['公司名称', '公章'] | ||
1510 | 1512 | ||
1511 | SE_BANK_FIELD = ['accountNo', 'bankName'] | 1513 | SE_BANK_FIELD = ['accountNo', 'bankName'] |
1512 | SE_DDA_FIELD = ['applicationId(1)', 'applicationId(2)', 'bankName', 'companyName', 'customerName', 'idNum', 'accountHolderName', 'accountNo'] | 1514 | SE_DDA_FIELD = ['applicationId(1)', 'applicationId(2)', 'bankName', 'companyName', 'customerName', 'idNum', 'accountHolderName', 'accountNo'] |
... | @@ -2165,7 +2167,7 @@ HT_COMPARE_LOGIC = { | ... | @@ -2165,7 +2167,7 @@ HT_COMPARE_LOGIC = { |
2165 | '无ASP产品': ('无ASP产品', 'se_self_compare_other_asp', {}, GZS_REASON_1), | 2167 | '无ASP产品': ('无ASP产品', 'se_self_compare_other_asp', {}, GZS_REASON_1), |
2166 | } | 2168 | } |
2167 | 2169 | ||
2168 | # 格式:'excel字段名':('数据库字段名','比对逻辑','特殊处理可以忽略','比对不合格时的返回内容') | 2170 | # 格式:'xueao给的excel字段名':('数据库字段名','比对逻辑','特殊处理可以忽略','比对不合格时的返回内容') |
2169 | FS_COMPARE_LOGIC = { | 2171 | FS_COMPARE_LOGIC = { |
2170 | 'Hash值': ('code', 'hash_code_compare', {}, '财报Hash值与系统不一致'), | 2172 | 'Hash值': ('code', 'hash_code_compare', {}, '财报Hash值与系统不一致'), |
2171 | '公章': ('stamp', 'stamp_dict_compare', {}, '财报无公章'), | 2173 | '公章': ('stamp', 'stamp_dict_compare', {}, '财报无公章'), |
... | @@ -2174,6 +2176,11 @@ FS_COMPARE_LOGIC = { | ... | @@ -2174,6 +2176,11 @@ FS_COMPARE_LOGIC = { |
2174 | '利润表内容': ('利润表内容', 'input_list_not_zero_compare', {}, '财报利润表为空'), | 2176 | '利润表内容': ('利润表内容', 'input_list_not_zero_compare', {}, '财报利润表为空'), |
2175 | } | 2177 | } |
2176 | 2178 | ||
2179 | FSS_COMPARE_LOGIC = { | ||
2180 | '公司名称': ('title', 'se_company_compare', {}, '财报情况说明公司名称错误'), | ||
2181 | '公章': ('stamp', 'stamp_dict_compare', {}, '财报情况说明无公章'), | ||
2182 | } | ||
2183 | |||
2177 | AFC_HT_DATE_FIELDS = ['主借人日期', '共借人日期', '保证人日期1', '保证人日期2'] | 2184 | AFC_HT_DATE_FIELDS = ['主借人日期', '共借人日期', '保证人日期1', '保证人日期2'] |
2178 | 2185 | ||
2179 | # MVC_OCR_FIELD = 'mvc_ocr' | 2186 | # MVC_OCR_FIELD = 'mvc_ocr' |
... | @@ -2203,6 +2210,7 @@ SE_COMPARE_FIELD = { | ... | @@ -2203,6 +2210,7 @@ SE_COMPARE_FIELD = { |
2203 | HIL_CONTRACT_2_EN: (HIL_CONTRACT_2_FIELD, HIL_CONTRACT_2_COMPARE_LOGIC, False), | 2210 | HIL_CONTRACT_2_EN: (HIL_CONTRACT_2_FIELD, HIL_CONTRACT_2_COMPARE_LOGIC, False), |
2204 | HIL_CONTRACT_3_EN: (HIL_CONTRACT_3_FIELD, HIL_CONTRACT_3_COMPARE_LOGIC, False), | 2211 | HIL_CONTRACT_3_EN: (HIL_CONTRACT_3_FIELD, HIL_CONTRACT_3_COMPARE_LOGIC, False), |
2205 | FS_EN: (FS_FIELD, FS_COMPARE_LOGIC, False), | 2212 | FS_EN: (FS_FIELD, FS_COMPARE_LOGIC, False), |
2213 | FSS_EN: (FSS_FIELD, FSS_COMPARE_LOGIC, False), | ||
2206 | } | 2214 | } |
2207 | 2215 | ||
2208 | SE_COMPARE_FIELD_AUTO = { | 2216 | SE_COMPARE_FIELD_AUTO = { | ... | ... |
... | @@ -934,6 +934,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -934,6 +934,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
934 | is_cdfl_bo = False # 车贷分离,主借 | 934 | is_cdfl_bo = False # 车贷分离,主借 |
935 | is_cdfl_co = False # 车贷分离,共借 | 935 | is_cdfl_co = False # 车贷分离,共借 |
936 | role_count = 0 | 936 | role_count = 0 |
937 | borrower_name = '' | ||
937 | # province = cms_info.get('province', '') | 938 | # province = cms_info.get('province', '') |
938 | for individual_info in cms_info.get('applicantInformation', []): | 939 | for individual_info in cms_info.get('applicantInformation', []): |
939 | role_count += 1 | 940 | role_count += 1 |
... | @@ -958,6 +959,10 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -958,6 +959,10 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
958 | customersubType = individual_info.get('customersubType', '') | 959 | customersubType = individual_info.get('customersubType', '') |
959 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0] and is_corporate: | 960 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0] and is_corporate: |
960 | is_bo_corporate = True | 961 | is_bo_corporate = True |
962 | |||
963 | # CHINARPA-4660 财报主借人姓名赋值 | ||
964 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0]: | ||
965 | borrower_name = customer_name | ||
961 | 966 | ||
962 | for id_info in individual_info.get('IDInformation', []): | 967 | for id_info in individual_info.get('IDInformation', []): |
963 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: | 968 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: |
... | @@ -1145,6 +1150,16 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -1145,6 +1150,16 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
1145 | financial_statement_input.append((consts.SE_FS_FIELD[4], netProfit)) | 1150 | financial_statement_input.append((consts.SE_FS_FIELD[4], netProfit)) |
1146 | financial_statement_info[consts.FS_EN] = financial_statement_input | 1151 | financial_statement_info[consts.FS_EN] = financial_statement_input |
1147 | compare_info['financialStatementInfo'] = financial_statement_info | 1152 | compare_info['financialStatementInfo'] = financial_statement_info |
1153 | |||
1154 | # 财报情况说明 | ||
1155 | financial_statement_supplementary_info = {} | ||
1156 | financial_statement_supplementary_input = [] | ||
1157 | need_fss = corporateFinancialInformation.get('cashAndCashEquivalentAtEndOfPeriod', '') == 0 | ||
1158 | if need_fss: | ||
1159 | financial_statement_supplementary_input.append((consts.SE_FSS_FIELD[0], borrower_name)) | ||
1160 | financial_statement_supplementary_input.append((consts.SE_FSS_FIELD[1], consts.SE_STAMP_VALUE)) | ||
1161 | financial_statement_supplementary_info[consts.FSS_EN] = financial_statement_supplementary_input | ||
1162 | compare_info['financialStatementSupplementaryInfo'] = financial_statement_supplementary_info | ||
1148 | 1163 | ||
1149 | 1164 | ||
1150 | # 银行卡------------------------------------------------------------------------------------------------------- | 1165 | # 银行卡------------------------------------------------------------------------------------------------------- | ... | ... |
-
Please register or sign in to post a comment