2a03b2a7 by 冯轩

init 4395

1 parent 70735d1f
...@@ -37,6 +37,7 @@ from apps.doc.models import ( ...@@ -37,6 +37,7 @@ from apps.doc.models import (
37 InterfaceReport, 37 InterfaceReport,
38 HILCompareReportNew, 38 HILCompareReportNew,
39 AFCCompareReportNew, 39 AFCCompareReportNew,
40 AFCDoc,
40 ) 41 )
41 from apps.doc import consts 42 from apps.doc import consts
42 from apps.doc.ocr.gcap import gcap 43 from apps.doc.ocr.gcap import gcap
...@@ -3426,6 +3427,12 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True ...@@ -3426,6 +3427,12 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True
3426 auto_obj = auto_class.objects.filter(application_id=application_id, on_off=True).first() 3427 auto_obj = auto_class.objects.filter(application_id=application_id, on_off=True).first()
3427 bank_class = HILbankVerification if application_entity == consts.HIL_PREFIX else AFCbankVerification 3428 bank_class = HILbankVerification if application_entity == consts.HIL_PREFIX else AFCbankVerification
3428 ignore_bank = bank_class.objects.filter(application_id=application_id, on_off=True).exists() 3429 ignore_bank = bank_class.objects.filter(application_id=application_id, on_off=True).exists()
3430 data_source = ''
3431 if application_entity == consts.AFC_PREFIX:
3432 doc_obj = AFCDoc.objects.filter(application_id=application_id, data_source__icontains='电子签署-车辆抵押贷款合同').latest()
3433 data_source = doc_obj.data_source
3434 compare_log.info('{0} [Auto SE] [get data_source] [id={1}] [data_source={2}]]'.format(
3435 log_base, application_id, data_source))
3429 if auto_obj is not None: 3436 if auto_obj is not None:
3430 auto_result = se_compare_auto(application_id, application_entity, ocr_res_id, last_obj, ocr_res_dict, auto_obj, ignore_bank, id_res_list) 3437 auto_result = se_compare_auto(application_id, application_entity, ocr_res_id, last_obj, ocr_res_dict, auto_obj, ignore_bank, id_res_list)
3431 else: 3438 else:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!