MOD:cms压测
Showing
1 changed file
with
5 additions
and
5 deletions
... | @@ -3283,8 +3283,8 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res | ... | @@ -3283,8 +3283,8 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res |
3283 | data = { | 3283 | data = { |
3284 | "SubtenantId": consts.TENANT_MAP[application_entity], | 3284 | "SubtenantId": consts.TENANT_MAP[application_entity], |
3285 | "Data": { | 3285 | "Data": { |
3286 | "Result_Message": "Pass" if successful_at_this_level else "Fail", | 3286 | "Result_Message": "Pass" , |
3287 | "AutoCheckResult": "Pass" if auto_result else "Fail", | 3287 | "AutoCheckResult": "Pass" , |
3288 | "Failure_Reason": cn_failure_reason_str, | 3288 | "Failure_Reason": cn_failure_reason_str, |
3289 | "Application_Number": application_id, | 3289 | "Application_Number": application_id, |
3290 | "Bank_Statement": bs_failure_reason_str, | 3290 | "Bank_Statement": bs_failure_reason_str, |
... | @@ -3375,7 +3375,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True | ... | @@ -3375,7 +3375,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True |
3375 | comparison_class = HILSECMSInfo if is_cms else HILSEComparisonInfo | 3375 | comparison_class = HILSECMSInfo if is_cms else HILSEComparisonInfo |
3376 | else: | 3376 | else: |
3377 | comparison_class = AFCSECMSInfo if is_cms else AFCSEComparisonInfo | 3377 | comparison_class = AFCSECMSInfo if is_cms else AFCSEComparisonInfo |
3378 | last_obj = comparison_class.objects.filter(application_id=application_id).last() | 3378 | last_obj = comparison_class.objects.filter().last() |
3379 | if last_obj is None: | 3379 | if last_obj is None: |
3380 | compare_log.info('{0} [comparison info empty] [entity={1}] [id={2}] [uniq_seq={3}] [ocr_res_id={4}] ' | 3380 | compare_log.info('{0} [comparison info empty] [entity={1}] [id={2}] [uniq_seq={3}] [ocr_res_id={4}] ' |
3381 | '[is_ca={5}] [is_cms]={6}'.format(log_base, application_entity, application_id, uniq_seq, | 3381 | '[is_ca={5}] [is_cms]={6}'.format(log_base, application_entity, application_id, uniq_seq, |
... | @@ -3390,13 +3390,13 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True | ... | @@ -3390,13 +3390,13 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id, is_ca=True |
3390 | result_class = HILSEOCRResult if application_entity == consts.HIL_PREFIX else AFCSEOCRResult | 3390 | result_class = HILSEOCRResult if application_entity == consts.HIL_PREFIX else AFCSEOCRResult |
3391 | ca_result_class = HILOCRResult if application_entity == consts.HIL_PREFIX else AFCOCRResult | 3391 | ca_result_class = HILOCRResult if application_entity == consts.HIL_PREFIX else AFCOCRResult |
3392 | # if ocr_res_id is None: | 3392 | # if ocr_res_id is None: |
3393 | ca_ocr_res_dict = ca_result_class.objects.filter(application_id=application_id).values( | 3393 | ca_ocr_res_dict = ca_result_class.objects.filter().values( |
3394 | *consts.CA_ADD_COMPARE_FIELDS).first() | 3394 | *consts.CA_ADD_COMPARE_FIELDS).first() |
3395 | # else: | 3395 | # else: |
3396 | # ca_ocr_res_dict = ca_result_class.objects.filter(id=ocr_res_id).values( | 3396 | # ca_ocr_res_dict = ca_result_class.objects.filter(id=ocr_res_id).values( |
3397 | # *consts.CA_ADD_COMPARE_FIELDS).first() | 3397 | # *consts.CA_ADD_COMPARE_FIELDS).first() |
3398 | if ocr_res_id is None: | 3398 | if ocr_res_id is None: |
3399 | ocr_res_dict = result_class.objects.filter(application_id=application_id).values(*consts.COMPARE_FIELDS).first() | 3399 | ocr_res_dict = result_class.objects.filter().values(*consts.COMPARE_FIELDS).first() |
3400 | else: | 3400 | else: |
3401 | ocr_res_dict = result_class.objects.filter(id=ocr_res_id).values(*consts.COMPARE_FIELDS).first() | 3401 | ocr_res_dict = result_class.objects.filter(id=ocr_res_id).values(*consts.COMPARE_FIELDS).first() |
3402 | if ocr_res_dict is None: | 3402 | if ocr_res_dict is None: | ... | ... |
-
Please register or sign in to post a comment