MOD:auto和full比对信息加入dp
Showing
2 changed files
with
40 additions
and
0 deletions
| ... | @@ -1511,6 +1511,7 @@ JYPZ_TYPE_1 = ['二手车交易凭证'] | ... | @@ -1511,6 +1511,7 @@ JYPZ_TYPE_1 = ['二手车交易凭证'] |
| 1511 | JYPZ_TYPE_2 = ['BMW官方认证二手车交易凭证', '二手车交易凭证'] | 1511 | JYPZ_TYPE_2 = ['BMW官方认证二手车交易凭证', '二手车交易凭证'] |
| 1512 | SE_FS_FIELD = ['Hash值', '公章', '财年', '资产负债表内容', '利润表内容'] | 1512 | SE_FS_FIELD = ['Hash值', '公章', '财年', '资产负债表内容', '利润表内容'] |
| 1513 | SE_FSS_FIELD = ['公司名称', '公章'] | 1513 | SE_FSS_FIELD = ['公司名称', '公章'] |
| 1514 | SE_DP_FIELD = ['渠道', '姓名', '证件号码', '合同编号(含版本号)', '承诺人签字-电子', '承诺人签字日期-电子'] | ||
| 1514 | 1515 | ||
| 1515 | SE_BANK_FIELD = ['accountNo', 'bankName'] | 1516 | SE_BANK_FIELD = ['accountNo', 'bankName'] |
| 1516 | SE_DDA_FIELD = ['applicationId(1)', 'applicationId(2)', 'bankName', 'companyName', 'customerName', 'idNum', 'accountHolderName', 'accountNo'] | 1517 | SE_DDA_FIELD = ['applicationId(1)', 'applicationId(2)', 'bankName', 'companyName', 'customerName', 'idNum', 'accountHolderName', 'accountNo'] |
| ... | @@ -1826,6 +1827,7 @@ HIL_CONTRACT_2_EN = '车辆租赁抵押合同' | ... | @@ -1826,6 +1827,7 @@ HIL_CONTRACT_2_EN = '车辆租赁抵押合同' |
| 1826 | HIL_CONTRACT_3_EN = '车辆处置协议' | 1827 | HIL_CONTRACT_3_EN = '车辆处置协议' |
| 1827 | FS_EN = 'Financial Statement' | 1828 | FS_EN = 'Financial Statement' |
| 1828 | FSS_EN = 'Financial Statement Supplementary' | 1829 | FSS_EN = 'Financial Statement Supplementary' |
| 1830 | DP_EN = 'Down Payment' | ||
| 1829 | 1831 | ||
| 1830 | DDA_NO_FIND = '需人工查看DDA或截图' | 1832 | DDA_NO_FIND = '需人工查看DDA或截图' |
| 1831 | FS_NO_FIND = '未提供财报或财报不完整' | 1833 | FS_NO_FIND = '未提供财报或财报不完整' | ... | ... |
| ... | @@ -937,6 +937,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -937,6 +937,7 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
| 937 | is_bo_corporate = False | 937 | is_bo_corporate = False |
| 938 | role_count = 0 | 938 | role_count = 0 |
| 939 | borrower_name = '' | 939 | borrower_name = '' |
| 940 | borrower_idnum = '' | ||
| 940 | legal_name = '' | 941 | legal_name = '' |
| 941 | # province = cms_info.get('province', '') | 942 | # province = cms_info.get('province', '') |
| 942 | for individual_info in cms_info.get('applicantInformation', []): | 943 | for individual_info in cms_info.get('applicantInformation', []): |
| ... | @@ -964,8 +965,12 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -964,8 +965,12 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
| 964 | is_bo_corporate = True | 965 | is_bo_corporate = True |
| 965 | 966 | ||
| 966 | # CHINARPA-4660 财报主借人姓名赋值 | 967 | # CHINARPA-4660 财报主借人姓名赋值 |
| 968 | # CHINARPA-5075 首付款承诺书主借人证件号赋值 | ||
| 967 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0]: | 969 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0]: |
| 968 | borrower_name = customer_name | 970 | borrower_name = customer_name |
| 971 | for id_info in individual_info.get('IDInformation', []): | ||
| 972 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: | ||
| 973 | borrower_idnum = decode_des(id_info.get('idNum', ''), des_key) | ||
| 969 | 974 | ||
| 970 | for id_info in individual_info.get('IDInformation', []): | 975 | for id_info in individual_info.get('IDInformation', []): |
| 971 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: | 976 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: |
| ... | @@ -1570,6 +1575,20 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d | ... | @@ -1570,6 +1575,20 @@ def get_se_cms_compare_info_auto(application_id, last_obj, application_entity, d |
| 1570 | contract_info[consts.AFC_CONTRACT_QRS_EN] = afc_contract_qrs_input | 1575 | contract_info[consts.AFC_CONTRACT_QRS_EN] = afc_contract_qrs_input |
| 1571 | 1576 | ||
| 1572 | compare_info['contract'] = contract_info | 1577 | compare_info['contract'] = contract_info |
| 1578 | |||
| 1579 | # 首付款承诺书 | ||
| 1580 | down_payment_info = {} | ||
| 1581 | down_payment_input = {} | ||
| 1582 | totalDownPayment = cms_info.get('totalDownPayment') | ||
| 1583 | if totalDownPayment and totalDownPayment == 0: | ||
| 1584 | down_payment_input.append((consts.SE_DP_FIELD[0], cms_info.get('financeCompany', ''))) | ||
| 1585 | down_payment_input.append((consts.SE_DP_FIELD[1], borrower_name)) | ||
| 1586 | down_payment_input.append((consts.SE_DP_FIELD[2], borrower_idnum)) | ||
| 1587 | down_payment_input.append((consts.SE_DP_FIELD[3], cms_info.get('settlemnetVerification', {}).get('applicationNo', ''))) | ||
| 1588 | down_payment_input.append((consts.SE_DP_FIELD[4], legal_name if is_bo_corporate else borrower_name )) | ||
| 1589 | down_payment_input.append((consts.SE_DP_FIELD[5], '有/无')) | ||
| 1590 | down_payment_info[consts.DP_EN] = down_payment_input | ||
| 1591 | compare_info['downPayment'] = down_payment_info | ||
| 1573 | return compare_info, cms_info.get('autoApprovedDetails', {}).get('aaType', ''), is_gsyh, allow_bs_type | 1592 | return compare_info, cms_info.get('autoApprovedDetails', {}).get('aaType', ''), is_gsyh, allow_bs_type |
| 1574 | 1593 | ||
| 1575 | 1594 | ||
| ... | @@ -1607,6 +1626,7 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect | ... | @@ -1607,6 +1626,7 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
| 1607 | is_bo_corporate = False | 1626 | is_bo_corporate = False |
| 1608 | role_count = 0 | 1627 | role_count = 0 |
| 1609 | borrower_name = '' | 1628 | borrower_name = '' |
| 1629 | borrower_idnum = '' | ||
| 1610 | legal_name = '' | 1630 | legal_name = '' |
| 1611 | # province = cms_info.get('province', '') | 1631 | # province = cms_info.get('province', '') |
| 1612 | for individual_info in cms_info.get('applicantInformation', []): | 1632 | for individual_info in cms_info.get('applicantInformation', []): |
| ... | @@ -1634,8 +1654,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect | ... | @@ -1634,8 +1654,12 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
| 1634 | is_bo_corporate = True | 1654 | is_bo_corporate = True |
| 1635 | 1655 | ||
| 1636 | # CHINARPA-4660 财报主借人姓名赋值 | 1656 | # CHINARPA-4660 财报主借人姓名赋值 |
| 1657 | # CHINARPA-5075 首付款承诺书主借人证件号赋值 | ||
| 1637 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0]: | 1658 | if individual_info['applicantType'] == consts.APPLICANT_TYPE_ORDER[0]: |
| 1638 | borrower_name = customer_name | 1659 | borrower_name = customer_name |
| 1660 | for id_info in individual_info.get('IDInformation', []): | ||
| 1661 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: | ||
| 1662 | borrower_idnum = decode_des(id_info.get('idNum', ''), des_key) | ||
| 1639 | 1663 | ||
| 1640 | for id_info in individual_info.get('IDInformation', []): | 1664 | for id_info in individual_info.get('IDInformation', []): |
| 1641 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: | 1665 | if id_info.get('idType') in consts.SE_CMS_FIRST_ID_FIELD_MAPPING: |
| ... | @@ -2205,6 +2229,20 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect | ... | @@ -2205,6 +2229,20 @@ def get_se_cms_compare_info(application_id, last_obj, application_entity, detect |
| 2205 | afc_contract_qrs_input = [(consts.SE_AFC_CON_QRS_FIELD[0], '{0}{1}{2}'.format(role_count, consts.SPLIT_STR, full_no))] | 2229 | afc_contract_qrs_input = [(consts.SE_AFC_CON_QRS_FIELD[0], '{0}{1}{2}'.format(role_count, consts.SPLIT_STR, full_no))] |
| 2206 | contract_info[consts.AFC_CONTRACT_QRS_EN] = afc_contract_qrs_input | 2230 | contract_info[consts.AFC_CONTRACT_QRS_EN] = afc_contract_qrs_input |
| 2207 | compare_info['contract'] = contract_info | 2231 | compare_info['contract'] = contract_info |
| 2232 | |||
| 2233 | # 首付款承诺书 | ||
| 2234 | down_payment_info = {} | ||
| 2235 | down_payment_input = {} | ||
| 2236 | totalDownPayment = cms_info.get('totalDownPayment') | ||
| 2237 | if totalDownPayment and totalDownPayment == 0: | ||
| 2238 | down_payment_input.append((consts.SE_DP_FIELD[0], cms_info.get('financeCompany', ''))) | ||
| 2239 | down_payment_input.append((consts.SE_DP_FIELD[1], borrower_name)) | ||
| 2240 | down_payment_input.append((consts.SE_DP_FIELD[2], borrower_idnum)) | ||
| 2241 | down_payment_input.append((consts.SE_DP_FIELD[3], cms_info.get('settlemnetVerification', {}).get('applicationNo', ''))) | ||
| 2242 | down_payment_input.append((consts.SE_DP_FIELD[4], legal_name if is_bo_corporate else borrower_name )) | ||
| 2243 | down_payment_input.append((consts.SE_DP_FIELD[5], '有/无')) | ||
| 2244 | down_payment_info[consts.DP_EN] = down_payment_input | ||
| 2245 | compare_info['downPayment'] = down_payment_info | ||
| 2208 | return compare_info, cms_info.get('applicationVersion', 1), cms_info.get('autoApprovedDetails', {}).get('aaType', ''), is_gsyh, allow_bs_type | 2246 | return compare_info, cms_info.get('applicationVersion', 1), cms_info.get('autoApprovedDetails', {}).get('aaType', ''), is_gsyh, allow_bs_type |
| 2209 | 2247 | ||
| 2210 | 2248 | ... | ... |
-
Please register or sign in to post a comment