MOD:纸质流程
Showing
1 changed file
with
6 additions
and
18 deletions
| ... | @@ -2421,27 +2421,15 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2421,27 +2421,15 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
| 2421 | reason = reason_n1 | 2421 | reason = reason_n1 |
| 2422 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N | 2422 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N |
| 2423 | elif not auto_elec_verify_list: | 2423 | elif not auto_elec_verify_list: |
| 2424 | result = consts.RESULT_N | ||
| 2425 | paperTrue = len(auto_paper_verify_false_idx_list) <= 0 | 2424 | paperTrue = len(auto_paper_verify_false_idx_list) <= 0 |
| 2426 | paperNotClear = len(auto_paper_verify_true_idx_list) > 0 | 2425 | paperNotClear = len(auto_paper_verify_true_idx_list) > 0 |
| 2427 | if not paperTrue and paperNotClear: | 2426 | if not paperTrue and paperNotClear: |
| 2428 | rea | 2427 | reason = reason_n2 + '\n' + reason_n3 |
| 2429 | 2428 | elif paperNotClear: | |
| 2430 | 2429 | reason = reason_n2 | |
| 2431 | # 若仅提供纸质流水,则默认真伪为N2 | 2430 | elif not paperTrue: |
| 2432 | if not auto_elec_verify_list: | 2431 | reason = reason_n3 |
| 2433 | result = consts.RESULT_N2 | 2432 | result = consts.RESULT_N |
| 2434 | reason = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | ||
| 2435 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y | ||
| 2436 | if not auto_paper_verify_list: | ||
| 2437 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | ||
| 2438 | reason = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) | ||
| 2439 | #同时包含,同时返回N1,N2 | ||
| 2440 | if auto_elec_verify_list and auto_paper_verify_list: | ||
| 2441 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | ||
| 2442 | reason1 = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) | ||
| 2443 | reason2 = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | ||
| 2444 | reason = reason1 + '\n' + reason2 | ||
| 2445 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) | 2433 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) |
| 2446 | 2434 | ||
| 2447 | if all_zhifubao_weixin: | 2435 | if all_zhifubao_weixin: | ... | ... |
-
Please register or sign in to post a comment