fix bug
Showing
2 changed files
with
3 additions
and
3 deletions
| ... | @@ -1131,7 +1131,7 @@ RESULT_NA = 'NA' | ... | @@ -1131,7 +1131,7 @@ RESULT_NA = 'NA' |
| 1131 | IN_ORDER = ('applicantType', 'idType', 'secondIdType', 'customerType', 'customerChineseName', 'idNum', 'secondIdNum', | 1131 | IN_ORDER = ('applicantType', 'idType', 'secondIdType', 'customerType', 'customerChineseName', 'idNum', 'secondIdNum', |
| 1132 | "idExpiryDate", "dateOfBirth", 'companyName', "registeredCapital", 'selfEmployedSubType',) | 1132 | "idExpiryDate", "dateOfBirth", 'companyName', "registeredCapital", 'selfEmployedSubType',) |
| 1133 | UC_ORDER = ('vinNo', 'manufactureDate', 'firstRegistrationDate') | 1133 | UC_ORDER = ('vinNo', 'manufactureDate', 'firstRegistrationDate') |
| 1134 | CO_ORDER = ('customerChineseName', 'legalRepName', 'idNum', 'customerType', 'businessLicenseNo', 'taxRegistrationCode', | 1134 | CO_ORDER = ('customerType', 'customerChineseName', 'legalRepName', 'idNum', 'businessLicenseNo', 'taxRegistrationCode', |
| 1135 | 'incorporationDate', 'businessLicenseDueDate', 'capitalRegAmount') | 1135 | 'incorporationDate', 'businessLicenseDueDate', 'capitalRegAmount') |
| 1136 | 1136 | ||
| 1137 | 1137 | ... | ... |
| ... | @@ -138,7 +138,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -138,7 +138,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
| 138 | 138 | ||
| 139 | res_set = set() | 139 | res_set = set() |
| 140 | 140 | ||
| 141 | is_sep = True if last_obj.customer_type == consts.CUSTOMER_TYPE[5] else False | 141 | # is_sep = True if last_obj.customer_type == consts.CUSTOMER_TYPE[5] else False |
| 142 | 142 | ||
| 143 | individual_cus_info_list = json.loads(last_obj.individual_cus_info) | 143 | individual_cus_info_list = json.loads(last_obj.individual_cus_info) |
| 144 | order_individual_cus_info_list = [] | 144 | order_individual_cus_info_list = [] |
| ... | @@ -153,7 +153,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): | ... | @@ -153,7 +153,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id): |
| 153 | field_compare(order_individual_cus_info, ocr_res_dict, compare_info_list[0], compare_info_list[1], res_set) | 153 | field_compare(order_individual_cus_info, ocr_res_dict, compare_info_list[0], compare_info_list[1], res_set) |
| 154 | 154 | ||
| 155 | # sep营业执照 | 155 | # sep营业执照 |
| 156 | if is_sep and order_individual_cus_info.get('companyName') is not None: | 156 | if order_individual_cus_info.get('customerType') == consts.CUSTOMER_TYPE[5]: |
| 157 | field_compare(order_individual_cus_info, ocr_res_dict, consts.BL_OCR_FIELD, consts.TCSEP, res_set) | 157 | field_compare(order_individual_cus_info, ocr_res_dict, consts.BL_OCR_FIELD, consts.TCSEP, res_set) |
| 158 | 158 | ||
| 159 | order_individual_cus_info_list.append(order_individual_cus_info) | 159 | order_individual_cus_info_list.append(order_individual_cus_info) | ... | ... |
-
Please register or sign in to post a comment