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
3744ea66
authored
2021-04-14 13:17:34 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug
1 parent
8a3a0bab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
3744ea6
...
...
@@ -1131,7 +1131,7 @@ RESULT_NA = 'NA'
IN_ORDER
=
(
'applicantType'
,
'idType'
,
'secondIdType'
,
'customerType'
,
'customerChineseName'
,
'idNum'
,
'secondIdNum'
,
"idExpiryDate"
,
"dateOfBirth"
,
'companyName'
,
"registeredCapital"
,
'selfEmployedSubType'
,)
UC_ORDER
=
(
'vinNo'
,
'manufactureDate'
,
'firstRegistrationDate'
)
CO_ORDER
=
(
'customer
ChineseName'
,
'legalRepName'
,
'idNum'
,
'customerType
'
,
'businessLicenseNo'
,
'taxRegistrationCode'
,
CO_ORDER
=
(
'customer
Type'
,
'customerChineseName'
,
'legalRepName'
,
'idNum
'
,
'businessLicenseNo'
,
'taxRegistrationCode'
,
'incorporationDate'
,
'businessLicenseDueDate'
,
'capitalRegAmount'
)
...
...
src/celery_compare/tasks.py
View file @
3744ea6
...
...
@@ -138,7 +138,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id):
res_set
=
set
()
is_sep
=
True
if
last_obj
.
customer_type
==
consts
.
CUSTOMER_TYPE
[
5
]
else
False
#
is_sep = True if last_obj.customer_type == consts.CUSTOMER_TYPE[5] else False
individual_cus_info_list
=
json
.
loads
(
last_obj
.
individual_cus_info
)
order_individual_cus_info_list
=
[]
...
...
@@ -153,7 +153,7 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id):
field_compare
(
order_individual_cus_info
,
ocr_res_dict
,
compare_info_list
[
0
],
compare_info_list
[
1
],
res_set
)
# sep营业执照
if
is_sep
and
order_individual_cus_info
.
get
(
'companyName'
)
is
not
None
:
if
order_individual_cus_info
.
get
(
'customerType'
)
==
consts
.
CUSTOMER_TYPE
[
5
]
:
field_compare
(
order_individual_cus_info
,
ocr_res_dict
,
consts
.
BL_OCR_FIELD
,
consts
.
TCSEP
,
res_set
)
order_individual_cus_info_list
.
append
(
order_individual_cus_info
)
...
...
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