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
82e1a38f
authored
2022-01-20 10:27:41 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ltgt
1 parent
3586d37a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
src/apps/doc/consts.py
src/apps/doc/management/commands/folder_ltgt_process.py
src/apps/doc/consts.py
View file @
82e1a38
...
...
@@ -1433,7 +1433,7 @@ ASP_KEY = 'is_asp'
AFC_CON_MAP_LTGT
=
{
'合同编号'
:
(
1
,
1
,
'合同编号'
,
None
),
'合同编号'
:
(
2
,
2
,
'合同编号'
,
None
),
'借款人姓名'
:
(
2
,
2
,
'借款人及抵押人'
,
'name'
),
'共借人姓名'
:
(
2
,
2
,
'共同借款人及共同抵押人'
,
'name'
),
'保证人姓名1'
:
(
2
,
2
,
'保证人1'
,
'name'
),
...
...
src/apps/doc/management/commands/folder_ltgt_process.py
View file @
82e1a38
...
...
@@ -598,6 +598,10 @@ class Command(BaseCommand, LoggerMixin):
first_head_row
=
head_fields
else
:
sheet_name
,
key_field
,
side_field_order
,
field_order
=
self
.
field_map_2
[
result
[
self
.
CLASSIFY_KEY
]]
if
key_field
is
not
None
and
key_field
in
result
[
self
.
RESULT_KEY
]
and
result
[
self
.
CLASSIFY_KEY
]
==
consts
.
IC_CLASSIFY
:
continue
if
key_field
is
not
None
and
len
(
side_field_order
)
>
len
(
field_order
):
first_head_row
=
[]
for
a
,
_
in
side_field_order
:
...
...
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