dd49a253 by 周伟奇

fix keyword

1 parent 1122a082
...@@ -2360,17 +2360,24 @@ ECONTRACT_KEYWORDS_MAP = { ...@@ -2360,17 +2360,24 @@ ECONTRACT_KEYWORDS_MAP = {
2360 ('抵押贷款合同', CONTRACT_CLASSIFY), 2360 ('抵押贷款合同', CONTRACT_CLASSIFY),
2361 ('送达地址确认书', CONTRACT_QRS_CLASSIFY), 2361 ('送达地址确认书', CONTRACT_QRS_CLASSIFY),
2362 ('抵押登记豁免函', HMH_CLASSIFY), 2362 ('抵押登记豁免函', HMH_CLASSIFY),
2363 ('延长保修', FSM_CONTRACT_WEP_CLASSIFY),
2364 ('长悦保养', FSM_CONTRACT_MSI_CLASSIFY),
2365 ('汽车销售合同', FSM_CONTRACT_SC_CLASSIFY),
2366 ], 2363 ],
2367 HIL_PREFIX: [ 2364 HIL_PREFIX: [
2368 ('售后回租合同', HIL_CONTRACT_1_CLASSIFY), 2365 ('售后回租合同', HIL_CONTRACT_1_CLASSIFY),
2369 ('租赁抵押合同', HIL_CONTRACT_2_CLASSIFY), 2366 ('租赁抵押合同', HIL_CONTRACT_2_CLASSIFY),
2370 ('车辆处置协议', HIL_CONTRACT_3_CLASSIFY), 2367 ('车辆处置协议', HIL_CONTRACT_3_CLASSIFY),
2371 ('抵押登记豁免函', HMH_CLASSIFY), 2368 ('抵押登记豁免函', HMH_CLASSIFY),
2372 ('延长保修', FSM_CONTRACT_WEP_CLASSIFY), 2369 ]
2373 ('长悦保养', FSM_CONTRACT_MSI_CLASSIFY), 2370 }
2371
2372 FSM_ECONTRACT_KEYWORDS_MAP = {
2373 AFC_PREFIX: [
2374 ('延长保修条款与条件', FSM_CONTRACT_WEP_CLASSIFY),
2375 ('长悦保养套餐服务合同', FSM_CONTRACT_MSI_CLASSIFY),
2376 ('汽车销售合同', FSM_CONTRACT_SC_CLASSIFY),
2377 ],
2378 HIL_PREFIX: [
2379 ('延长保修条款与条件', FSM_CONTRACT_WEP_CLASSIFY),
2380 ('长悦保养套餐服务合同', FSM_CONTRACT_MSI_CLASSIFY),
2374 ('汽车销售合同', FSM_CONTRACT_SC_CLASSIFY), 2381 ('汽车销售合同', FSM_CONTRACT_SC_CLASSIFY),
2375 ] 2382 ]
2376 } 2383 }
......
...@@ -596,7 +596,15 @@ class UploadDocView(GenericView, DocHandler): ...@@ -596,7 +596,15 @@ class UploadDocView(GenericView, DocHandler):
596 if keyword in document_name: 596 if keyword in document_name:
597 classify_1 = classify_1_tmp 597 classify_1 = classify_1_tmp
598 break 598 break
599 elif document_name.endswith('.zip') or document_name.endswith('.rar') or document_name.endswith('.ZIP') \ 599 # FSM合同:WEP/MSI/SC
600 elif data_source == consts.DATA_SOURCE_LIST[0] and document_scheme == consts.DOC_SCHEME_LIST[0]:
601 for keyword, classify_1_tmp in consts.FSM_ECONTRACT_KEYWORDS_MAP.get(prefix):
602 if keyword in document_name:
603 classify_1 = classify_1_tmp
604 break
605
606
607 if document_name.endswith('.zip') or document_name.endswith('.rar') or document_name.endswith('.ZIP') \
600 or document_name.endswith('.RAR'): 608 or document_name.endswith('.RAR'):
601 is_zip = True 609 is_zip = True
602 610
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!