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
89c76319
authored
2021-11-09 17:26:38 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix ecm
1 parent
e3565c7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/apps/doc/ocr/ecm.py
src/apps/doc/ocr/ecm.py
View file @
89c7631
...
...
@@ -37,8 +37,12 @@ class ECM:
'AFC'
:
'SF5_CN'
,
'HIL'
:
'SF5_CL'
,
}
self
.
b_region_name_map
=
{
'AFC'
:
'CN'
,
'HIL'
:
'CL'
,
}
self
.
prefix
=
'OCR'
self
.
upload_fields
=
[
"
b_region"
,
"b_region_name"
,
"
r_object_type"
,
"r_creation_date"
,
self
.
upload_fields
=
[
"r_object_type"
,
"r_creation_date"
,
"r_creator_name"
,
"r_modify_date"
,
"r_modifier"
,
"owner"
,
"b_short_application_no"
,
"b_short_contract_no"
,
"b_customer_id"
,
"b_customer_name"
,
"b_customer_mobile"
,
"b_coborrower_id"
,
"b_coborrower_name"
,
"b_guarantor_id"
,
"b_guarantor_name"
,
...
...
@@ -139,6 +143,8 @@ class ECM:
"format"
:
"excel12book"
,
"r_content_type"
:
"excel12book"
,
"b_application_no"
:
doc
.
application_id
,
"b_region"
:
"0"
,
"b_region_name"
:
self
.
b_region_name_map
.
get
(
business_type
),
# "file_base64_content": "",
}
for
key
in
self
.
upload_fields
:
...
...
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