f4ea862e by 冯轩

Merge branch 'feature/CHINARPA-3290-FSM-AUTO'

2 parents 124f57ec cf68bbb7
...@@ -1569,6 +1569,7 @@ SE_AFC_CON_MAP = { ...@@ -1569,6 +1569,7 @@ SE_AFC_CON_MAP = {
1569 '见证人日期': (7, 8, '见证人签字', '日期'), 1569 '见证人日期': (7, 8, '见证人签字', '日期'),
1570 1570
1571 '还款计划表': (3, 3, '还款计划表', None), 1571 '还款计划表': (3, 3, '还款计划表', None),
1572 '车辆代理商': (3, 3, '车辆代理商', None),
1572 1573
1573 'ASP项目详情-重要条款': (None, 1, '附加产品融资贷款本金总金额明细', None), 1574 'ASP项目详情-重要条款': (None, 1, '附加产品融资贷款本金总金额明细', None),
1574 'ASP项目详情': (None, 4, '附加产品融资贷款本金总金额明细', None), 1575 'ASP项目详情': (None, 4, '附加产品融资贷款本金总金额明细', None),
...@@ -1612,6 +1613,8 @@ SE_HIL_CON_1_MAP = { ...@@ -1612,6 +1613,8 @@ SE_HIL_CON_1_MAP = {
1612 1613
1613 '共同承租人&抵押人姓名': (1, 1, 7, '共同承租人-姓名', None), 1614 '共同承租人&抵押人姓名': (1, 1, 7, '共同承租人-姓名', None),
1614 '共同承租人&抵押人证件号': (1, 1, 7, '共同承租人-证件号码', None), 1615 '共同承租人&抵押人证件号': (1, 1, 7, '共同承租人-证件号码', None),
1616
1617 '车辆代理商': (5, 5, 7, '车辆代理商', None),
1615 } 1618 }
1616 1619
1617 SE_HIL_CON_2_MAP = { 1620 SE_HIL_CON_2_MAP = {
......
...@@ -948,7 +948,8 @@ class Command(BaseCommand, LoggerMixin): ...@@ -948,7 +948,8 @@ class Command(BaseCommand, LoggerMixin):
948 'role': bs_info.get('role', ''), 948 'role': bs_info.get('role', ''),
949 'print_time': print_date, 949 'print_time': print_date,
950 'timedelta': bs_info.get('timedelta', ''), 950 'timedelta': bs_info.get('timedelta', ''),
951 'verify': bs_info.get('verify_res_ebank', True) 951 'verify': bs_info.get('verify_res_ebank', True),
952 'e_bank': bs_info.get('e_bank', False)
952 } 953 }
953 ) 954 )
954 return res 955 return res
......
...@@ -771,6 +771,7 @@ class BSWorkbook(Workbook): ...@@ -771,6 +771,7 @@ class BSWorkbook(Workbook):
771 summary['end_date'] = end_date 771 summary['end_date'] = end_date
772 summary['verify_res_ebank'] = verify_res_ebank 772 summary['verify_res_ebank'] = verify_res_ebank
773 summary['verify_res_paper_bank'] = verify_res_paper_bank 773 summary['verify_res_paper_bank'] = verify_res_paper_bank
774 summary['e_bank'] = metadata is not None
774 775
775 # 3.创建月份表、提取/高亮关键行 776 # 3.创建月份表、提取/高亮关键行
776 # 倒序处理 777 # 倒序处理
......
...@@ -3275,7 +3275,15 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= ...@@ -3275,7 +3275,15 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=
3275 is_ca, is_cms)) 3275 is_ca, is_cms))
3276 # 调用java fsm 比对流程接口(http) 3276 # 调用java fsm 比对流程接口(http)
3277 # 调用Java fsm 比对流程接口, fsm 是se流程, ca可以暂时忽略 3277 # 调用Java fsm 比对流程接口, fsm 是se流程, ca可以暂时忽略
3278 auto_class = HILAutoSettlement if application_entity == consts.HIL_PREFIX else AFCAutoSettlement
3279 auto_obj = auto_class.objects.filter(application_id=application_id, on_off=True).first()
3280 if auto_obj is not None:
3281 url = conf.FSM_AUTO_URL
3282 is_auto = True
3283 else:
3278 url = conf.FSM_URL 3284 url = conf.FSM_URL
3285 is_auto = False
3286
3279 body = { 3287 body = {
3280 'applicationId': application_id, 3288 'applicationId': application_id,
3281 'businessType': application_entity, 3289 'businessType': application_entity,
...@@ -3284,7 +3292,7 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca= ...@@ -3284,7 +3292,7 @@ def fsm_compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=
3284 'isCms': is_cms 3292 'isCms': is_cms
3285 } 3293 }
3286 try: 3294 try:
3287 compare_log.info("request java fsm api, url:{0}, body:{1}".format(url, json.dumps(body))) 3295 compare_log.info("request java fsm api, url:{0}, body:{1}, is_auto:{2}".format(url, json.dumps(body), is_auto))
3288 headers = { 3296 headers = {
3289 'Content-Type': 'application/json' 3297 'Content-Type': 'application/json'
3290 } 3298 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!