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
578a5e19
authored
2024-09-30 17:57:52 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/fix/hil_excel_sql'
2 parents
40c49a7c
5958e83d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/management/commands/ocr_process.py
View file @
578a5e1
...
...
@@ -1018,9 +1018,9 @@ class Command(BaseCommand, LoggerMixin):
# 添加处理,
# [售后回租合同] - 如果 key 是 "承租人签字", 且内容中包含 签署日期:XXXX, 则将签署日期去除
# [车辆租赁抵押合同] - 如果 key 是 ""
if
key
==
'承租人签字'
and
'签署日期'
in
tmp_res
:
if
key
==
'承租人签字'
and
tmp_res
is
not
None
and
'签署日期'
in
tmp_res
:
res
[
key
]
=
tmp_res
.
split
(
'签署日期'
)[
0
]
if
key
==
"抵押人签字"
and
"签署日期"
in
tmp_res
:
if
key
==
"抵押人签字"
and
tmp_res
is
not
None
and
"签署日期"
in
tmp_res
:
res
[
key
]
=
tmp_res
.
split
(
"签署日期"
)[
0
]
res
.
setdefault
(
consts
.
IMG_PATH_KEY
,
dict
())[
key
]
=
page_info_dict
.
get
(
str
(
img_pno
),
{})
.
get
(
consts
.
IMG_PATH_KEY
,
''
)
...
...
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