Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
d0d6db09
authored
2022-09-23 20:36:20 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pre settlement pos 接口更新
1 parent
aa782a35
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
2 deletions
src/apps/doc/comments.py
src/celery_compare/tasks.py
src/apps/doc/comments.py
View file @
d0d6db0
...
...
@@ -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
:
{
''
:
''
}
}
...
...
src/celery_compare/tasks.py
View file @
d0d6db0
...
...
@@ -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
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment