init 5117
Showing
1 changed file
with
8 additions
and
8 deletions
... | @@ -2278,16 +2278,16 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type): | ... | @@ -2278,16 +2278,16 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type): |
2278 | # 若仅提供纸质流水,则默认真伪为N2 | 2278 | # 若仅提供纸质流水,则默认真伪为N2 |
2279 | if not auto_elec_verify_list: | 2279 | if not auto_elec_verify_list: |
2280 | result = consts.RESULT_N2 | 2280 | result = consts.RESULT_N2 |
2281 | reason = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2281 | reason = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2282 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y | 2282 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y |
2283 | if not auto_paper_verify_list: | 2283 | if not auto_paper_verify_list: |
2284 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2284 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2285 | reason = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2285 | reason = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2286 | #同时包含,同时返回N1,N2 | 2286 | #同时包含,同时返回N1,N2 |
2287 | if auto_elec_verify_list and auto_paper_verify_list: | 2287 | if auto_elec_verify_list and auto_paper_verify_list: |
2288 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2288 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2289 | reason1 = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2289 | reason1 = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2290 | reason2 = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2290 | reason2 = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2291 | reason = reason1 + reason2 | 2291 | reason = reason1 + reason2 |
2292 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) | 2292 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) |
2293 | # 非FSM Full & Auto CAA2 目前逻辑和上面的完全一样 | 2293 | # 非FSM Full & Auto CAA2 目前逻辑和上面的完全一样 |
... | @@ -2296,16 +2296,16 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type): | ... | @@ -2296,16 +2296,16 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type): |
2296 | # 若仅提供纸质流水,则默认真伪为N2 | 2296 | # 若仅提供纸质流水,则默认真伪为N2 |
2297 | if not auto_elec_verify_list: | 2297 | if not auto_elec_verify_list: |
2298 | result = consts.RESULT_N2 | 2298 | result = consts.RESULT_N2 |
2299 | reason = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2299 | reason = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2300 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y | 2300 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y |
2301 | if not auto_paper_verify_list: | 2301 | if not auto_paper_verify_list: |
2302 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2302 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2303 | reason = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2303 | reason = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2304 | #同时包含,同时返回N1,N2 | 2304 | #同时包含,同时返回N1,N2 |
2305 | if auto_elec_verify_list and auto_paper_verify_list: | 2305 | if auto_elec_verify_list and auto_paper_verify_list: |
2306 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2306 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2307 | reason1 = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2307 | reason1 = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2308 | reason2 = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2308 | reason2 = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2309 | reason = reason1 + reason2 | 2309 | reason = reason1 + reason2 |
2310 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) | 2310 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) |
2311 | 2311 | ... | ... |
-
Please register or sign in to post a comment