MOD:模拟下单电子合同先判断是不是模拟单
Showing
1 changed file
with
14 additions
and
9 deletions
... | @@ -1458,15 +1458,20 @@ class Command(BaseCommand, LoggerMixin): | ... | @@ -1458,15 +1458,20 @@ class Command(BaseCommand, LoggerMixin): |
1458 | # pdf下载 处理 图片存储 识别 | 1458 | # pdf下载 处理 图片存储 识别 |
1459 | for times in range(consts.RETRY_TIMES): | 1459 | for times in range(consts.RETRY_TIMES): |
1460 | try: | 1460 | try: |
1461 | self.edms.download(pdf_path, doc.metadata_version_id, doc.document_scheme, business_type) | 1461 | if doc.application_id.startswith(consts.FIXED_APPLICATION_ID_PREFIX): |
1462 | self.online_log.info('{0} [edms download success] [task={1}] [times={2}] ' | 1462 | self.online_log.info('{0} [mo ni xia dan] [task={1}] [times={2}] ' |
1463 | '[pdf_path={3}]'.format(self.e_log_base, task_str, times, pdf_path)) | 1463 | '[pdf_path={3}]'.format(self.log_base, task_str, |
1464 | 1464 | times, pdf_path)) | |
1465 | self.online_log.info('{0} [pdf to img start] [task={1}] [times={2}]'.format( | 1465 | else: |
1466 | self.e_log_base, task_str, times)) | 1466 | self.edms.download(pdf_path, doc.metadata_version_id, doc.document_scheme, business_type) |
1467 | pdf_handler.e_contract_process() | 1467 | self.online_log.info('{0} [edms download success] [task={1}] [times={2}] ' |
1468 | self.online_log.info( | 1468 | '[pdf_path={3}]'.format(self.e_log_base, task_str, times, pdf_path)) |
1469 | '{0} [pdf to img end] [task={1}] [times={2}]'.format(self.e_log_base, task_str, times)) | 1469 | |
1470 | self.online_log.info('{0} [pdf to img start] [task={1}] [times={2}]'.format( | ||
1471 | self.e_log_base, task_str, times)) | ||
1472 | pdf_handler.e_contract_process() | ||
1473 | self.online_log.info( | ||
1474 | '{0} [pdf to img end] [task={1}] [times={2}]'.format(self.e_log_base, task_str, times)) | ||
1470 | except Exception as e: | 1475 | except Exception as e: |
1471 | self.online_log.warn('{0} [download or pdf to img failed] [task={1}] [times={2}] ' | 1476 | self.online_log.warn('{0} [download or pdf to img failed] [task={1}] [times={2}] ' |
1472 | '[error={3}]'.format(self.e_log_base, task_str, times, | 1477 | '[error={3}]'.format(self.e_log_base, task_str, times, | ... | ... |
-
Please register or sign in to post a comment