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
da800495
authored
2024-08-02 18:38:37 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
MOD:fss 公章逻辑
1 parent
39c6b60f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
src/apps/doc/consts.py
src/common/tools/comparison.py
src/apps/doc/consts.py
View file @
da80049
...
...
@@ -2179,7 +2179,7 @@ FS_COMPARE_LOGIC = {
FSS_COMPARE_LOGIC
=
{
'公司名称'
:
(
'title'
,
'se_company_compare'
,
{},
'财报情况说明公司名称错误'
),
'公章'
:
(
'stamp'
,
'stamp_
dict
_compare'
,
{},
'财报情况说明无公章'
),
'公章'
:
(
'stamp'
,
'stamp_
str
_compare'
,
{},
'财报情况说明无公章'
),
}
AFC_HT_DATE_FIELDS
=
[
'主借人日期'
,
'共借人日期'
,
'保证人日期1'
,
'保证人日期2'
]
...
...
src/common/tools/comparison.py
View file @
da80049
...
...
@@ -700,6 +700,15 @@ class Comparison:
except
Exception
as
e
:
return
self
.
RESULT_N
def
stamp_str_compare
(
self
,
input_str
,
ocr_str
,
**
kwargs
):
try
:
if
ocr_str
!=
1
:
return
self
.
RESULT_N
else
:
return
self
.
RESULT_Y
except
Exception
as
e
:
return
self
.
RESULT_N
def
fiscal_year_compare
(
self
,
input_str
,
ocr_list
,
**
kwargs
):
try
:
this_year_str
=
datetime
.
now
()
.
strftime
(
'
%
Y'
)
...
...
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