diff --git a/src/apps/doc/management/commands/ocr_process.py b/src/apps/doc/management/commands/ocr_process.py index f5cc063..0ddd2ad 100644 --- a/src/apps/doc/management/commands/ocr_process.py +++ b/src/apps/doc/management/commands/ocr_process.py @@ -959,7 +959,7 @@ class Command(BaseCommand, LoggerMixin): # TODO 识别结果存一张表,方便跑报表 # CA比对 - if doc.document_scheme == consts.DOC_SCHEME_LIST[0]: + if doc.document_scheme == consts.DOC_SCHEME_LIST[0] and len(license_summary) > 0: try: # 更新OCR累计识别结果表 result_class = HILOCRResult if business_type == consts.HIL_PREFIX else AFCOCRResult