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
ae029c03
authored
2021-06-14 20:49:18 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix compare report
1 parent
21cab0c8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
ae029c0
...
...
@@ -376,16 +376,21 @@ def compare(application_id, application_entity, uniq_seq, ocr_res_id):
}
individual_list
=
comparison_res
.
get
(
'OCR_Input'
,
{})
.
get
(
'individualCusInfo'
,
[])
total_fields
=
len
(
individual_list
)
*
4
total_fields
=
0
for
individual
in
individual_list
:
field_list
=
[]
if
individual
.
get
(
'customerType'
)
not
in
consts
.
NO_COMPARE_CUSTOMER_TYPE
and
\
individual
.
get
(
'idType'
)
in
consts
.
ID_TYPE_COMPARE
:
total_fields
+=
4
if
not
successful_at_this_level
:
for
field_name
,
_
,
_
,
_
,
result_field
in
consts
.
ITPRC
:
if
individual
.
get
(
result_field
)
!=
consts
.
RESULT_Y
:
field_list
.
append
(
field_name
)
if
individual
.
get
(
'secondIdType'
)
in
consts
.
SECOND_ID_TYPE_COMPARE
:
if
individual
.
get
(
'customerType'
)
not
in
consts
.
NO_COMPARE_CUSTOMER_TYPE
and
\
individual
.
get
(
'secondIdType'
)
in
consts
.
SECOND_ID_TYPE_COMPARE
:
total_fields
+=
1
if
not
successful_at_this_level
:
if
individual
.
get
(
consts
.
SECOND_ID_RES
)
!=
consts
.
RESULT_Y
:
...
...
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