10cae765 by 冯轩

MOD:银行流水类型字段名

1 parent d07f9bde
...@@ -2017,7 +2017,7 @@ BS_COMPARE_LOGIC = { ...@@ -2017,7 +2017,7 @@ BS_COMPARE_LOGIC = {
2017 '流水日期': ('timedelta', 'se_bs_date_compare', {}, '主共借人银行流水日期不满足3个月'), 2017 '流水日期': ('timedelta', 'se_bs_date_compare', {}, '主共借人银行流水日期不满足3个月'),
2018 '(担保人1)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人1银行流水日期不满足3个月'), 2018 '(担保人1)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人1银行流水日期不满足3个月'),
2019 '(担保人2)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人2银行流水日期不满足3个月'), 2019 '(担保人2)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人2银行流水日期不满足3个月'),
2020 '类型': ('bank_statement_type', 'se_bs_type_compare', {}, '高风险经销商流水类型异常'), 2020 '类型': ('bankStatement_type', 'se_bs_type_compare', {}, '高风险经销商流水类型异常'),
2021 } 2021 }
2022 2022
2023 BS_COMPARE_LOGIC_AUTO = { 2023 BS_COMPARE_LOGIC_AUTO = {
...@@ -2030,7 +2030,7 @@ BS_COMPARE_LOGIC_AUTO = { ...@@ -2030,7 +2030,7 @@ BS_COMPARE_LOGIC_AUTO = {
2030 '流水日期': ('timedelta', 'se_bs_date_compare', {}, '主共借人银行流水日期不满足2个月'), 2030 '流水日期': ('timedelta', 'se_bs_date_compare', {}, '主共借人银行流水日期不满足2个月'),
2031 '(担保人1)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人1银行流水日期不满足2个月'), 2031 '(担保人1)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人1银行流水日期不满足2个月'),
2032 '(担保人2)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人2银行流水日期不满足2个月'), 2032 '(担保人2)流水日期': ('timedelta', 'se_bs_date_compare', {}, '担保人2银行流水日期不满足2个月'),
2033 '类型': ('bank_statement_type', 'se_bs_type_compare', {}, '高风险经销商流水类型异常'), 2033 '类型': ('bankStatement_type', 'se_bs_type_compare', {}, '高风险经销商流水类型异常'),
2034 } 2034 }
2035 2035
2036 SPECIAL_REASON = '主共借人未提供银行流水,含担保人需人工查看直系亲属关系' 2036 SPECIAL_REASON = '主共借人未提供银行流水,含担保人需人工查看直系亲属关系'
......
...@@ -2244,9 +2244,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ ...@@ -2244,9 +2244,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
2244 pre_tmp_res_part = {} 2244 pre_tmp_res_part = {}
2245 verify_bool = ocr_res.get('verify', False) 2245 verify_bool = ocr_res.get('verify', False)
2246 e_bank = ocr_res.get('e_bank', False) 2246 e_bank = ocr_res.get('e_bank', False)
2247 bs_type = ocr_res.get('bs_type', '') 2247 bankStatement_type = ocr_res.get('bankStatement_type', '')
2248 # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 2248 # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
2249 if allow_bs_type == '不接受支付宝/微信' and bs_type in [12, 13, 48]: 2249 if allow_bs_type == '不接受支付宝/微信' and bankStatement_type in [12, 13, 48]:
2250 continue 2250 continue
2251 all_zhifubao_weixin = False 2251 all_zhifubao_weixin = False
2252 #verify_list.append(verify_bool) 2252 #verify_list.append(verify_bool)
...@@ -2345,9 +2345,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ ...@@ -2345,9 +2345,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
2345 if len(dbr1_field_list) > 0: 2345 if len(dbr1_field_list) > 0:
2346 max_correct_count = 0 2346 max_correct_count = 0
2347 for ocr_res in ocr_res_list: 2347 for ocr_res in ocr_res_list:
2348 bs_type = ocr_res.get('bs_type', '') 2348 bankStatement_type = ocr_res.get('bankStatement_type', '')
2349 # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 2349 # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
2350 if allow_bs_type == '不接受支付宝/微信' and bs_type in [12, 13, 48]: 2350 if allow_bs_type == '不接受支付宝/微信' and bankStatement_type in [12, 13, 48]:
2351 continue 2351 continue
2352 2352
2353 correct_count = 0 2353 correct_count = 0
...@@ -2382,9 +2382,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ ...@@ -2382,9 +2382,9 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_
2382 if len(dbr1_field_list) > 0: 2382 if len(dbr1_field_list) > 0:
2383 max_correct_count = 0 2383 max_correct_count = 0
2384 for ocr_res in ocr_res_list: 2384 for ocr_res in ocr_res_list:
2385 bs_type = ocr_res.get('bs_type', '') 2385 bankStatement_type = ocr_res.get('bankStatement_type', '')
2386 # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在 2386 # 如果是高风险经销商,cms信息中包含‘不接受支付宝/微信’,但是识别出的流水是支付宝/微信,直接跳过这个文件,就当不存在
2387 if allow_bs_type == '不接受支付宝/微信' and bs_type in [12, 13, 48]: 2387 if allow_bs_type == '不接受支付宝/微信' and bankStatement_type in [12, 13, 48]:
2388 continue 2388 continue
2389 correct_count = 0 2389 correct_count = 0
2390 dbr2_tmp_res_part = {} 2390 dbr2_tmp_res_part = {}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!