d0d6db09 by 王聪

pre settlement pos 接口更新

1 parent aa782a35
......@@ -19,7 +19,46 @@ HIL_CONTRACT_1_EN = '售后回租合同'
HIL_CONTRACT_2_EN = '车辆租赁抵押合同'
HIL_CONTRACT_3_EN = '车辆处置协议'
OCR_COMPARE_COMMENT = {
ID_EN: {
'idExpiryDate': '身份证疑似过期',
'customerName': '身份证姓名与系统不一致',
'idNum': '身份证号码与系统不一致',
'other': '请确认是否提供身份证件'
},
MVI_EN: {
'firstSubmmisonDate': '请确认发票开票日期,若发票开票日期早于首次提交审批日期则无法受理放款申请',
'customerName': '发票购买方姓名与系统不一致',
'idNum': '发票购买方证件号码与系统不一致',
'vinNo': '发票车架号与系统不一致',
'vehicleTransactionAmount': '发票车辆价格与系统不一致',
'productGroupName': '请确认是否提供发票'
},
BC_EN: {
'bankName': '银行卡开户行与系统不一致',
'accountNo': '银行卡卡号与系统不一致',
'bankVerificationStatus': '请确认是否提供银行卡'
},
AFC_CONTRACT_EN: {
'applicationId & applicationVersion': '',
'service': '',
'amount': '',
'financedAmount': '',
'associatedServicePrincipal': '',
'vinNo': '',
'accountNo': '',
'accountHolderName': '',
'bankName': '',
'term': '',
'applicationEntity': ''
},
HIL_CONTRACT_1_EN: {
},
HIL_CONTRACT_2_EN: {
},
BD_EN: {
'': ''
}
}
......
......@@ -39,6 +39,7 @@ from apps.doc.exceptions import GCAPException
from apps.doc.named_enum import RequestTeam, RequestTrigger, ProcessName, ErrorType
from common.tools.comparison import cp
from common.tools.des import decode_des
from apps.doc.comments import OCR_COMPARE_COMMENT
compare_log = logging.getLogger('compare')
log_base = '[Compare]'
......@@ -3283,6 +3284,9 @@ def pos_result_output(compare_result):
particulars = []
for license, license_items in license_map.items():
particular = {"object_name": license}
license_comments = OCR_COMPARE_COMMENT.get(license)
if not license_comments:
continue
fields = []
particular["fields"] = fields
for license_item in license_items:
......@@ -3292,7 +3296,7 @@ def pos_result_output(compare_result):
field["field_is_pass"] = license_item.get("Result") == 'Y'
if not field["field_is_pass"]:
is_pass = False
field["comments"] = ''
field["comments"] = license_comments.get(license_item.get("Field"), '')
fields.append(field)
particular["fields"] = fields
particulars.append(particular)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!