Merge branch 'feature/CHINARPA-5117'
Showing
1 changed file
with
10 additions
and
10 deletions
... | @@ -2306,17 +2306,17 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2306,17 +2306,17 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
2306 | # 若仅提供纸质流水,则默认真伪为N2 | 2306 | # 若仅提供纸质流水,则默认真伪为N2 |
2307 | if not auto_elec_verify_list: | 2307 | if not auto_elec_verify_list: |
2308 | result = consts.RESULT_N2 | 2308 | result = consts.RESULT_N2 |
2309 | reason = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2309 | reason = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2310 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y | 2310 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y |
2311 | if not auto_paper_verify_list: | 2311 | if not auto_paper_verify_list: |
2312 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2312 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2313 | reason = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2313 | reason = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2314 | #同时包含,同时返回N1,N2 | 2314 | #同时包含,同时返回N1,N2 |
2315 | if auto_elec_verify_list and auto_paper_verify_list: | 2315 | if auto_elec_verify_list and auto_paper_verify_list: |
2316 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2316 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2317 | reason1 = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2317 | reason1 = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2318 | reason2 = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2318 | reason2 = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2319 | reason = reason1 + reason2 | 2319 | reason = reason1 + '\n' + reason2 |
2320 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) | 2320 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) |
2321 | # 非FSM Full & Auto CAA2 目前逻辑和上面的完全一样 | 2321 | # 非FSM Full & Auto CAA2 目前逻辑和上面的完全一样 |
2322 | elif aa_type == 'CAA2' : | 2322 | elif aa_type == 'CAA2' : |
... | @@ -2324,17 +2324,17 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ | ... | @@ -2324,17 +2324,17 @@ def se_bs_compare(license_en, ocr_res_dict, strip_list, is_auto, aa_type, allow_ |
2324 | # 若仅提供纸质流水,则默认真伪为N2 | 2324 | # 若仅提供纸质流水,则默认真伪为N2 |
2325 | if not auto_elec_verify_list: | 2325 | if not auto_elec_verify_list: |
2326 | result = consts.RESULT_N2 | 2326 | result = consts.RESULT_N2 |
2327 | reason = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2327 | reason = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2328 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y | 2328 | # 若仅提供电子流水,逐一比对,有false为N1,全部true为Y |
2329 | if not auto_paper_verify_list: | 2329 | if not auto_paper_verify_list: |
2330 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2330 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2331 | reason = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2331 | reason = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2332 | #同时包含,同时返回N1,N2 | 2332 | #同时包含,同时返回N1,N2 |
2333 | if auto_elec_verify_list and auto_paper_verify_list: | 2333 | if auto_elec_verify_list and auto_paper_verify_list: |
2334 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 | 2334 | result = consts.RESULT_Y if all(auto_elec_verify_list) else consts.RESULT_N1 |
2335 | reason1 = '第{0}份银行流水疑似造假,需人工核查。'.format('、'.join(auto_elec_verify_false_idx_list)) | 2335 | reason1 = '<关注>第{0}份电子流水疑似造假,请核查excel。'.format('、'.join(auto_elec_verify_false_idx_list)) |
2336 | reason2 = '第{0}份银行流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) | 2336 | reason2 = '<关注>第{0}份流水为纸质版,请核查流水真伪。'.format('、'.join(auto_paper_verify_false_idx_list)) |
2337 | reason = reason1 + reason2 | 2337 | reason = reason1 + '\n' + reason2 |
2338 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) | 2338 | result_field_list.append((name, empty_str, result, json.dumps(verify_list, ensure_ascii=False), empty_str, empty_error_type, reason)) |
2339 | 2339 | ||
2340 | 2340 | ... | ... |
-
Please register or sign in to post a comment