fix bug
Showing
3 changed files
with
8 additions
and
3 deletions
| ... | @@ -1572,7 +1572,7 @@ HMH_COMPARE_LOGIC = { | ... | @@ -1572,7 +1572,7 @@ HMH_COMPARE_LOGIC = { |
| 1572 | '借款人/承租人姓名': ('借款/承租人姓名', 'se_name_compare', {}, '抵押登记豁免函借款人/承租人姓名与系统不符'), | 1572 | '借款人/承租人姓名': ('借款/承租人姓名', 'se_name_compare', {}, '抵押登记豁免函借款人/承租人姓名与系统不符'), |
| 1573 | '借款人/承租人证件号': ('证件号码', 'se_common_compare', {}, '抵押登记豁免函借款人/承租人证件号码与系统不符'), | 1573 | '借款人/承租人证件号': ('证件号码', 'se_common_compare', {}, '抵押登记豁免函借款人/承租人证件号码与系统不符'), |
| 1574 | '申请号': ('合同编号', 'se_common_compare', {}, '抵押登记豁免函申请号与系统不符'), | 1574 | '申请号': ('合同编号', 'se_common_compare', {}, '抵押登记豁免函申请号与系统不符'), |
| 1575 | '渠道': ('渠道', 'se_common_compare', {}, '抵押登记豁免函渠道与系统不符'), | 1575 | '渠道': ('渠道', 'se_channel_compare', {}, '抵押登记豁免函渠道与系统不符'), |
| 1576 | '签字': ('借款人签字/盖章', 'se_common_compare', {}, '抵押登记豁免函签字需人工核查'), | 1576 | '签字': ('借款人签字/盖章', 'se_common_compare', {}, '抵押登记豁免函签字需人工核查'), |
| 1577 | } | 1577 | } |
| 1578 | 1578 | ... | ... |
| ... | @@ -922,7 +922,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): | ... | @@ -922,7 +922,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list): |
| 922 | ] | 922 | ] |
| 923 | if is_prc: | 923 | if is_prc: |
| 924 | # field_input.append(('hukouProvince', province)) | 924 | # field_input.append(('hukouProvince', province)) |
| 925 | field_input.append(('真伪', province)) | 925 | field_input.append(('真伪', consts.IC_RES_MAPPING.get(1))) |
| 926 | field_input.append(('idExpiryDate', id_info.get('idExpiryDate', ''))) | 926 | field_input.append(('idExpiryDate', id_info.get('idExpiryDate', ''))) |
| 927 | license_dict[license_en] = field_input | 927 | license_dict[license_en] = field_input |
| 928 | all_id_num.append(id_num) | 928 | all_id_num.append(id_num) |
| ... | @@ -1882,7 +1882,7 @@ def se_compare_process(compare_info, ocr_res_dict): | ... | @@ -1882,7 +1882,7 @@ def se_compare_process(compare_info, ocr_res_dict): |
| 1882 | value_str = json.dumps(value) | 1882 | value_str = json.dumps(value) |
| 1883 | reason_list.append('{0}: {1}'.format(key, value_str)) | 1883 | reason_list.append('{0}: {1}'.format(key, value_str)) |
| 1884 | failure_reason_str = '、'.join(reason_list) | 1884 | failure_reason_str = '、'.join(reason_list) |
| 1885 | cn_failure_reason_str = '、'.join(set(cn_reason_list)) | 1885 | cn_failure_reason_str = '\n'.join(set(cn_reason_list)) |
| 1886 | return compare_result, total_fields, failed_count, successful_at_this_level, failure_reason_str, cn_failure_reason_str | 1886 | return compare_result, total_fields, failed_count, successful_at_this_level, failure_reason_str, cn_failure_reason_str |
| 1887 | 1887 | ||
| 1888 | 1888 | ... | ... |
| ... | @@ -59,6 +59,11 @@ class Comparison: | ... | @@ -59,6 +59,11 @@ class Comparison: |
| 59 | ocr_tmp = re.sub(self.re_obj, '', ocr_str).strip() | 59 | ocr_tmp = re.sub(self.re_obj, '', ocr_str).strip() |
| 60 | return self.build_res(input_tmp == ocr_tmp), ocr_str | 60 | return self.build_res(input_tmp == ocr_tmp), ocr_str |
| 61 | 61 | ||
| 62 | def se_channel_compare(self, input_str, ocr_str, **kwargs): | ||
| 63 | input_tmp = re.sub(self.re_obj, '', input_str).strip() | ||
| 64 | ocr_tmp = re.sub(self.re_obj, '', ocr_str).strip() | ||
| 65 | return self.build_res(input_tmp == ocr_tmp) | ||
| 66 | |||
| 62 | def name_compare(self, input_str, ocr_str, idx, **kwargs): | 67 | def name_compare(self, input_str, ocr_str, idx, **kwargs): |
| 63 | if not isinstance(ocr_str, str) or not isinstance(input_str, str): | 68 | if not isinstance(ocr_str, str) or not isinstance(input_str, str): |
| 64 | return self.RESULT_NA, ocr_str | 69 | return self.RESULT_NA, ocr_str | ... | ... |
-
Please register or sign in to post a comment