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
315b5a64
authored
2025-01-26 17:34:10 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/CHINARPA-5075' into feature/uat-tmp
2 parents
6487af2b
4773bbdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
src/apps/doc/consts.py
src/common/tools/comparison.py
src/apps/doc/consts.py
View file @
315b5a6
...
...
@@ -2195,7 +2195,7 @@ DP_COMPARE_LOGIC = {
'姓名'
:
(
'main_borrower_name'
,
'se_common_compare'
,
{
'remove_space'
:
True
},
'首付款支付承诺书姓名与系统不一致'
),
'证件号码'
:
(
'main_borrower_id_no'
,
'se_common_compare'
,
{
'remove_space'
:
True
},
'首付款支付承诺书证件号码与系统不一致'
),
'合同编号(含版本号)'
:
(
'apply_no'
,
'se_common_compare'
,
{
'remove_space'
:
True
},
'首付款支付承诺书合同编号与系统不一致'
),
'承诺人签字-电子'
:
(
'promisor_signature'
,
'se_common_compare'
,
{
'remove_space'
:
True
},
'首付款支付承诺书承诺人签字与系统不一致'
),
'承诺人签字-电子'
:
(
'promisor_signature'
,
'se_common_compare'
,
{
'remove_
all_
space'
:
True
},
'首付款支付承诺书承诺人签字与系统不一致'
),
'承诺人签字日期-电子'
:
(
'promisor_signature_date'
,
'se_have_compare'
,
{},
'N-首付款支付承诺书缺少签字日期'
),
}
...
...
src/common/tools/comparison.py
View file @
315b5a6
...
...
@@ -324,6 +324,9 @@ class Comparison:
return
self
.
RESULT_Y
if
kwargs
.
get
(
'remove_space'
,
False
):
input_str
=
input_str
.
replace
(
' '
,
''
)
if
kwargs
.
get
(
'remove_all_space'
,
False
):
input_str
=
input_str
.
replace
(
' '
,
''
)
ocr_str
=
ocr_str
.
replace
(
' '
,
''
)
if
kwargs
.
get
(
'brackets_replace'
,
False
):
input_str
=
input_str
.
translate
(
self
.
KH_TRANS
)
ocr_str
=
ocr_str
.
translate
(
self
.
KH_TRANS
)
...
...
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