pre settlement pos 接口更新
Showing
2 changed files
with
46 additions
and
3 deletions
... | @@ -19,7 +19,46 @@ HIL_CONTRACT_1_EN = '售后回租合同' | ... | @@ -19,7 +19,46 @@ HIL_CONTRACT_1_EN = '售后回租合同' |
19 | HIL_CONTRACT_2_EN = '车辆租赁抵押合同' | 19 | HIL_CONTRACT_2_EN = '车辆租赁抵押合同' |
20 | HIL_CONTRACT_3_EN = '车辆处置协议' | 20 | HIL_CONTRACT_3_EN = '车辆处置协议' |
21 | 21 | ||
22 | |||
23 | OCR_COMPARE_COMMENT = { | 22 | OCR_COMPARE_COMMENT = { |
23 | ID_EN: { | ||
24 | 'idExpiryDate': '身份证疑似过期', | ||
25 | 'customerName': '身份证姓名与系统不一致', | ||
26 | 'idNum': '身份证号码与系统不一致', | ||
27 | 'other': '请确认是否提供身份证件' | ||
28 | }, | ||
29 | MVI_EN: { | ||
30 | 'firstSubmmisonDate': '请确认发票开票日期,若发票开票日期早于首次提交审批日期则无法受理放款申请', | ||
31 | 'customerName': '发票购买方姓名与系统不一致', | ||
32 | 'idNum': '发票购买方证件号码与系统不一致', | ||
33 | 'vinNo': '发票车架号与系统不一致', | ||
34 | 'vehicleTransactionAmount': '发票车辆价格与系统不一致', | ||
35 | 'productGroupName': '请确认是否提供发票' | ||
36 | }, | ||
37 | BC_EN: { | ||
38 | 'bankName': '银行卡开户行与系统不一致', | ||
39 | 'accountNo': '银行卡卡号与系统不一致', | ||
40 | 'bankVerificationStatus': '请确认是否提供银行卡' | ||
41 | }, | ||
42 | AFC_CONTRACT_EN: { | ||
43 | 'applicationId & applicationVersion': '', | ||
44 | 'service': '', | ||
45 | 'amount': '', | ||
46 | 'financedAmount': '', | ||
47 | 'associatedServicePrincipal': '', | ||
48 | 'vinNo': '', | ||
49 | 'accountNo': '', | ||
50 | 'accountHolderName': '', | ||
51 | 'bankName': '', | ||
52 | 'term': '', | ||
53 | 'applicationEntity': '' | ||
54 | }, | ||
55 | HIL_CONTRACT_1_EN: { | ||
56 | |||
57 | }, | ||
58 | HIL_CONTRACT_2_EN: { | ||
24 | 59 | ||
25 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
60 | }, | ||
61 | BD_EN: { | ||
62 | '': '' | ||
63 | } | ||
64 | } | ... | ... |
... | @@ -39,6 +39,7 @@ from apps.doc.exceptions import GCAPException | ... | @@ -39,6 +39,7 @@ from apps.doc.exceptions import GCAPException |
39 | from apps.doc.named_enum import RequestTeam, RequestTrigger, ProcessName, ErrorType | 39 | from apps.doc.named_enum import RequestTeam, RequestTrigger, ProcessName, ErrorType |
40 | from common.tools.comparison import cp | 40 | from common.tools.comparison import cp |
41 | from common.tools.des import decode_des | 41 | from common.tools.des import decode_des |
42 | from apps.doc.comments import OCR_COMPARE_COMMENT | ||
42 | 43 | ||
43 | compare_log = logging.getLogger('compare') | 44 | compare_log = logging.getLogger('compare') |
44 | log_base = '[Compare]' | 45 | log_base = '[Compare]' |
... | @@ -3283,6 +3284,9 @@ def pos_result_output(compare_result): | ... | @@ -3283,6 +3284,9 @@ def pos_result_output(compare_result): |
3283 | particulars = [] | 3284 | particulars = [] |
3284 | for license, license_items in license_map.items(): | 3285 | for license, license_items in license_map.items(): |
3285 | particular = {"object_name": license} | 3286 | particular = {"object_name": license} |
3287 | license_comments = OCR_COMPARE_COMMENT.get(license) | ||
3288 | if not license_comments: | ||
3289 | continue | ||
3286 | fields = [] | 3290 | fields = [] |
3287 | particular["fields"] = fields | 3291 | particular["fields"] = fields |
3288 | for license_item in license_items: | 3292 | for license_item in license_items: |
... | @@ -3292,7 +3296,7 @@ def pos_result_output(compare_result): | ... | @@ -3292,7 +3296,7 @@ def pos_result_output(compare_result): |
3292 | field["field_is_pass"] = license_item.get("Result") == 'Y' | 3296 | field["field_is_pass"] = license_item.get("Result") == 'Y' |
3293 | if not field["field_is_pass"]: | 3297 | if not field["field_is_pass"]: |
3294 | is_pass = False | 3298 | is_pass = False |
3295 | field["comments"] = '' | 3299 | field["comments"] = license_comments.get(license_item.get("Field"), '') |
3296 | fields.append(field) | 3300 | fields.append(field) |
3297 | particular["fields"] = fields | 3301 | particular["fields"] = fields |
3298 | particulars.append(particular) | 3302 | particulars.append(particular) | ... | ... |
-
Please register or sign in to post a comment