a1f6365c by 周伟奇

update param

1 parent db94f0e1
......@@ -1091,8 +1091,9 @@ class SECMSView(GenericView):
authentication_classes = [OAuth2AuthenticationWithUser]
# pos上传比对信息接口 SE
@use_args(se_cms_args, location='data')
def post(self, request, args):
# @use_args(se_cms_args, location='data')
def post(self, request):
args = request.data
cms_info = args.get('content', {})
business_type = consts.AFC_PREFIX if cms_info.get('financeCompany', '').startswith('宝马') else consts.HIL_PREFIX
src_application_id = cms_info.get('settlemnetVerification', {}).get('applicationNo', '')
......
......@@ -1291,7 +1291,7 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
detect_list = se_result_detect(ocr_res_dict)
if is_cms:
last_obj = rebuild_compare_info(last_obj, application_id)
compare_info, is_gsyh = get_se_compare_info(last_obj, application_entity, detect_list)
compare_info = get_se_compare_info(last_obj, application_entity, detect_list)
compare_result, total_fields, failed_count, successful_at_this_level, failure_reason_str = se_compare_process(
compare_info, ocr_res_dict)
compare_log.info('{0} [SE] [compare success] [entity={1}] [id={2}] [ocr_res_id={3}] [result={4}]'.format(
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!