Merge branch 'feature/CHINARPA-4395'
Showing
2 changed files
with
4 additions
and
2 deletions
... | @@ -161,7 +161,8 @@ class PreSEHandler: | ... | @@ -161,7 +161,8 @@ class PreSEHandler: |
161 | data_source = '' | 161 | data_source = '' |
162 | if application_entity == consts.AFC_PREFIX: | 162 | if application_entity == consts.AFC_PREFIX: |
163 | doc_obj = AFCDoc.objects.filter(application_id=application_id, document_name__icontains='电子签署-车辆抵押贷款合同').last() | 163 | doc_obj = AFCDoc.objects.filter(application_id=application_id, document_name__icontains='电子签署-车辆抵押贷款合同').last() |
164 | data_source = doc_obj.data_source | 164 | if doc_obj is not None: |
165 | data_source = doc_obj.data_source | ||
165 | LoggerMixin.running_log.info('[pre get data_source] [id={0}] [data_source={1}]]'.format( | 166 | LoggerMixin.running_log.info('[pre get data_source] [id={0}] [data_source={1}]]'.format( |
166 | application_id, data_source)) | 167 | application_id, data_source)) |
167 | 168 | ... | ... |
... | @@ -3430,7 +3430,8 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True | ... | @@ -3430,7 +3430,8 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True |
3430 | data_source = '' | 3430 | data_source = '' |
3431 | if application_entity == consts.AFC_PREFIX: | 3431 | if application_entity == consts.AFC_PREFIX: |
3432 | doc_obj = AFCDoc.objects.filter(application_id=application_id, document_name__icontains='电子签署-车辆抵押贷款合同').last() | 3432 | doc_obj = AFCDoc.objects.filter(application_id=application_id, document_name__icontains='电子签署-车辆抵押贷款合同').last() |
3433 | data_source = doc_obj.data_source | 3433 | if doc_obj is not None: |
3434 | data_source = doc_obj.data_source | ||
3434 | compare_log.info('{0} [get data_source] [id={1}] [data_source={2}]]'.format( | 3435 | compare_log.info('{0} [get data_source] [id={1}] [data_source={2}]]'.format( |
3435 | log_base, application_id, data_source)) | 3436 | log_base, application_id, data_source)) |
3436 | if auto_obj is not None: | 3437 | if auto_obj is not None: | ... | ... |
-
Please register or sign in to post a comment