Merge branch 'feature/portal-reocr' into feature/uat-tmp
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -2304,6 +2304,9 @@ class DocReOcrView(GenericView, DocHandler): | ... | @@ -2304,6 +2304,9 @@ class DocReOcrView(GenericView, DocHandler): |
2304 | if doc.application_id.startswith(consts.FIXED_APPLICATION_ID_PREFIX): | 2304 | if doc.application_id.startswith(consts.FIXED_APPLICATION_ID_PREFIX): |
2305 | self.running_log.info('[doc re-ocr fail not support CH-S] [application_entity={0}] [doc_id={1}]'.format(application_entity, doc_id)) | 2305 | self.running_log.info('[doc re-ocr fail not support CH-S] [application_entity={0}] [doc_id={1}]'.format(application_entity, doc_id)) |
2306 | return response.error_msg('模拟下单的文件不支持重新识别') | 2306 | return response.error_msg('模拟下单的文件不支持重新识别') |
2307 | if doc.status != DocStatus.PROCESS_FAILED.value: | ||
2308 | self.running_log.info('[doc re-ocr fail not support status] [application_entity={0}] [doc_id={1}]'.format(application_entity, doc_id)) | ||
2309 | return response.error_msg('不支持的文件状态') | ||
2307 | 2310 | ||
2308 | # 3. 选择队列进入 | 2311 | # 3. 选择队列进入 |
2309 | is_priority = PriorityApplication.objects.filter(application_id=doc.application_id, on_off=True).exists() | 2312 | is_priority = PriorityApplication.objects.filter(application_id=doc.application_id, on_off=True).exists() | ... | ... |
-
Please register or sign in to post a comment