ADD:scheme=INSURANCE的文件入库
Showing
2 changed files
with
4 additions
and
2 deletions
... | @@ -27,6 +27,7 @@ class RequestTeam(NamedEnum): | ... | @@ -27,6 +27,7 @@ class RequestTeam(NamedEnum): |
27 | SETTLEMENT = (1, 'SETTLEMENT') | 27 | SETTLEMENT = (1, 'SETTLEMENT') |
28 | CONTRACTMANAGEMENT = (2, 'CONTRACTMANAGEMENT') | 28 | CONTRACTMANAGEMENT = (2, 'CONTRACTMANAGEMENT') |
29 | CONTROLLING = (3, 'CONTROLLING') | 29 | CONTROLLING = (3, 'CONTROLLING') |
30 | INSURANCE = (4, 'INSURANCE') | ||
30 | 31 | ||
31 | 32 | ||
32 | class RequestTrigger(NamedEnum): | 33 | class RequestTrigger(NamedEnum): | ... | ... |
... | @@ -587,12 +587,12 @@ class UploadDocView(GenericView, DocHandler): | ... | @@ -587,12 +587,12 @@ class UploadDocView(GenericView, DocHandler): |
587 | if business_type == consts.HIL_PREFIX: | 587 | if business_type == consts.HIL_PREFIX: |
588 | if document_scheme == RequestTeam.ACCEPTANCE.name: | 588 | if document_scheme == RequestTeam.ACCEPTANCE.name: |
589 | result_class = HILOCRResult | 589 | result_class = HILOCRResult |
590 | elif document_scheme == RequestTeam.SETTLEMENT.name: | 590 | elif document_scheme == RequestTeam.SETTLEMENT.name or document_scheme == RequestTeam.INSURANCE.name: |
591 | result_class = HILSEOCRResult | 591 | result_class = HILSEOCRResult |
592 | elif business_type == consts.AFC_PREFIX: | 592 | elif business_type == consts.AFC_PREFIX: |
593 | if document_scheme == RequestTeam.ACCEPTANCE.name: | 593 | if document_scheme == RequestTeam.ACCEPTANCE.name: |
594 | result_class = AFCOCRResult | 594 | result_class = AFCOCRResult |
595 | elif document_scheme == RequestTeam.SETTLEMENT.name: | 595 | elif document_scheme == RequestTeam.SETTLEMENT.name or document_scheme == RequestTeam.INSURANCE.name: |
596 | result_class = AFCSEOCRResult | 596 | result_class = AFCSEOCRResult |
597 | 597 | ||
598 | ocr_result_obj = result_class.objects.filter(application_id=application_id).first() | 598 | ocr_result_obj = result_class.objects.filter(application_id=application_id).first() |
... | @@ -605,6 +605,7 @@ class UploadDocView(GenericView, DocHandler): | ... | @@ -605,6 +605,7 @@ class UploadDocView(GenericView, DocHandler): |
605 | ocr_result_obj.fsm_activited = 1 | 605 | ocr_result_obj.fsm_activited = 1 |
606 | ocr_result_obj.save() | 606 | ocr_result_obj.save() |
607 | 607 | ||
608 | self.running_log.info('[doc upload applicationId-{0}] [ocr result saved]'.format(application_id)) | ||
608 | if data_source == consts.DATA_SOURCE_LIST[1]: | 609 | if data_source == consts.DATA_SOURCE_LIST[1]: |
609 | if document_name.endswith('-证书.pdf') or document_name.endswith('-证书'): | 610 | if document_name.endswith('-证书.pdf') or document_name.endswith('-证书'): |
610 | self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args)) | 611 | self.running_log.info('[doc upload success] [eapp license skip] [args={0}]'.format(args)) | ... | ... |
-
Please register or sign in to post a comment