init 4395
Showing
1 changed file
with
7 additions
and
0 deletions
... | @@ -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: | ... | ... |
-
Please register or sign in to post a comment