0970d38c by 周伟奇

fix ca compare bug

1 parent a84f1276
...@@ -650,7 +650,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res ...@@ -650,7 +650,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
650 if len(field_list) > 0: 650 if len(field_list) > 0:
651 field_failed['individualCusInfo'].append(';'.join(field_list)) 651 field_failed['individualCusInfo'].append(';'.join(field_list))
652 652
653 corporate_res = comparison_res.get('OCR_Input', {}).get('corporateCusInfo', {}) 653 corporate_res = comparison_res.get('OCR_Input', {}).get('corporateCusInfo')
654 if corporate_res is not None: 654 if corporate_res is not None:
655 total_fields += 8 655 total_fields += 8
656 if not successful_at_this_level: 656 if not successful_at_this_level:
...@@ -661,7 +661,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res ...@@ -661,7 +661,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
661 if len(corporate_field_list) > 0: 661 if len(corporate_field_list) > 0:
662 field_failed['corporateCusInfo'].append(';'.join(corporate_field_list)) 662 field_failed['corporateCusInfo'].append(';'.join(corporate_field_list))
663 663
664 used_car_res = comparison_res.get('OCR_Input', {}).get('usedCarInfo', {}) 664 used_car_res = comparison_res.get('OCR_Input', {}).get('usedCarInfo')
665 if used_car_res is not None: 665 if used_car_res is not None:
666 total_fields += 3 666 total_fields += 3
667 if not successful_at_this_level: 667 if not successful_at_this_level:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!