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
c19efa71
authored
2023-01-05 17:23:16 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/fsm-contract' into feature/uat-tmp
2 parents
20360921
846c5468
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/apps/doc/management/commands/ocr_process.py
src/apps/doc/ocr/ecm.py
src/apps/doc/management/commands/ocr_process.py
View file @
c19efa7
...
...
@@ -1028,7 +1028,7 @@ class Command(BaseCommand, LoggerMixin):
res
=
{}
for
key
,
(
pno1
,
key1
)
in
consts
.
SE_FSM_CON_MAP
[
classify
]
.
items
():
res
[
key
]
=
page_info_dict
.
get
(
str
(
pno1
),
{})
.
get
(
key1
)
res
.
setdefault
(
consts
.
IMG_PATH_KEY
,
dict
())[
key
]
=
page_info_dict
.
get
(
str
(
img_pno
),
{})
.
get
(
res
.
setdefault
(
consts
.
IMG_PATH_KEY
,
dict
())[
key
]
=
page_info_dict
.
get
(
str
(
pno1
),
{})
.
get
(
consts
.
IMG_PATH_KEY
,
''
)
license_summary
[
classify
]
=
[
res
]
...
...
src/apps/doc/ocr/ecm.py
View file @
c19efa7
...
...
@@ -34,7 +34,7 @@ class ECM:
'ACCEPTANCE'
:
(
'acceptance'
,
conf
.
ECM_FOLDER_CA
,
conf
.
ECM_FOLDER_CA_HIL
),
'SETTLEMENT'
:
(
self
.
settlement_type
,
conf
.
ECM_FOLDER_SE
,
conf
.
ECM_FOLDER_SE_HIL
),
'CONTRACTMANAGEMENT'
:
(
'contract_management'
,
conf
.
ECM_FOLDER_CA
,
conf
.
ECM_FOLDER_CA_HIL
),
'INSURANCE'
:
(
'insurance'
,
conf
.
ECM_FOLDER_
INSURANCE
,
conf
.
ECM_FOLDER_INSURANC
E_HIL
),
'INSURANCE'
:
(
'insurance'
,
conf
.
ECM_FOLDER_
SE
,
conf
.
ECM_FOLDER_S
E_HIL
),
}
self
.
doc_base_map
=
{
'AFC'
:
'SF5_CN'
,
...
...
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