0a6bf496 by 冯轩

MOD:没有电子合同时,比对失败

1 parent 498bf14e
......@@ -161,7 +161,8 @@ class PreSEHandler:
data_source = ''
if application_entity == consts.AFC_PREFIX:
doc_obj = AFCDoc.objects.filter(application_id=application_id, document_name__icontains='电子签署-车辆抵押贷款合同').last()
data_source = doc_obj.data_source
if doc_obj is not None:
data_source = doc_obj.data_source
LoggerMixin.running_log.info('[pre get data_source] [id={0}] [data_source={1}]]'.format(
application_id, data_source))
......
......@@ -3430,7 +3430,8 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True
data_source = ''
if application_entity == consts.AFC_PREFIX:
doc_obj = AFCDoc.objects.filter(application_id=application_id, document_name__icontains='电子签署-车辆抵押贷款合同').last()
data_source = doc_obj.data_source
if doc_obj is not None:
data_source = doc_obj.data_source
compare_log.info('{0} [get data_source] [id={1}] [data_source={2}]]'.format(
log_base, application_id, data_source))
if auto_obj is not None:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!