d2ea7fa9 by 冯轩

Merge branch 'feature/CHINAPRA-4447' into feature/uat-tmp

2 parents 93e3e174 30dab433
...@@ -279,6 +279,7 @@ se_compare_args = { ...@@ -279,6 +279,7 @@ se_compare_args = {
279 application_data_args = { 279 application_data_args = {
280 'applicationId': fields.Str(required=True, validate=validate.Length(max=64)), 280 'applicationId': fields.Str(required=True, validate=validate.Length(max=64)),
281 'applicationStatus': fields.Str(required=False, validate=validate.Length(max=64)), 281 'applicationStatus': fields.Str(required=False, validate=validate.Length(max=64)),
282 'fsm': fields.Boolean(required=False),
282 } 283 }
283 284
284 applicant_data_args = { 285 applicant_data_args = {
...@@ -581,6 +582,7 @@ class UploadDocView(GenericView, DocHandler): ...@@ -581,6 +582,7 @@ class UploadDocView(GenericView, DocHandler):
581 application_id = application_data.get('applicationId') 582 application_id = application_data.get('applicationId')
582 # 包含FSM 激活状态 583 # 包含FSM 激活状态
583 application_status = application_data.get('applicationStatus', '') 584 application_status = application_data.get('applicationStatus', '')
585 fsm = application_data.get('fsm', False)
584 document_scheme = document.get('documentScheme') 586 document_scheme = document.get('documentScheme')
585 data_source = document.get('dataSource') 587 data_source = document.get('dataSource')
586 document_name = document.get('documentName', '') 588 document_name = document.get('documentName', '')
...@@ -650,7 +652,10 @@ class UploadDocView(GenericView, DocHandler): ...@@ -650,7 +652,10 @@ class UploadDocView(GenericView, DocHandler):
650 classify_1 = 0 652 classify_1 = 0
651 # 电子合同 Econtract or OVP(FSM) 653 # 电子合同 Econtract or OVP(FSM)
652 if data_source == consts.DATA_SOURCE_LIST[2] or data_source == consts.DATA_SOURCE_LIST[3]: 654 if data_source == consts.DATA_SOURCE_LIST[2] or data_source == consts.DATA_SOURCE_LIST[3]:
653 if document_scheme == consts.DOC_SCHEME_LIST[1]: 655 # 如果是OVP来源的非FSM classify_1还是等于0,走纸质模型
656 if data_source == consts.DATA_SOURCE_LIST[3] and not fsm:
657 classify_1 = 0
658 elif document_scheme == consts.DOC_SCHEME_LIST[1]:
654 for keyword, classify_1_tmp in consts.ECONTRACT_KEYWORDS_MAP.get(prefix): 659 for keyword, classify_1_tmp in consts.ECONTRACT_KEYWORDS_MAP.get(prefix):
655 if keyword in document_name: 660 if keyword in document_name:
656 classify_1 = classify_1_tmp 661 classify_1 = classify_1_tmp
...@@ -670,8 +675,8 @@ class UploadDocView(GenericView, DocHandler): ...@@ -670,8 +675,8 @@ class UploadDocView(GenericView, DocHandler):
670 task = consts.SPLIT_STR.join([prefix, str(doc.id), str(classify_1)]) 675 task = consts.SPLIT_STR.join([prefix, str(doc.id), str(classify_1)])
671 enqueue_res = rh.enqueue([task], is_priority, is_zip) 676 enqueue_res = rh.enqueue([task], is_priority, is_zip)
672 self.running_log.info('[doc upload success] [args={0}] [business_type={1}] [doc_id={2}] ' 677 self.running_log.info('[doc upload success] [args={0}] [business_type={1}] [doc_id={2}] '
673 '[is_priority={3}] [enqueue_res={4}]'.format(args, prefix, doc.id, 678 '[is_priority={3}] [enqueue_res={4}] [is_fsm={5} [classify_1={6}]]'.format(args, prefix, doc.id,
674 is_priority, enqueue_res)) 679 is_priority, enqueue_res, fsm, classify_1))
675 680
676 try: 681 try:
677 end_time = time.time() 682 end_time = time.time()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!