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
fb1a1507
authored
2025-08-01 17:11:55 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init 5620
1 parent
adb37243
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
fb1a150
...
...
@@ -2731,6 +2731,14 @@ def se_compare_license(license_en, ocr_res_dict, field_list, is_auto):
value
=
json
.
dumps
(
value
,
ensure_ascii
=
False
)
error_type
=
empty_error_type
if
result
==
consts
.
RESULT_Y
else
ErrorType
.
OCR
.
value
result_field_list
.
append
((
name
,
value
,
result
,
ocr_str
,
img_path
,
error_type
,
compare_logic
[
name
][
3
]))
# CHINARPA-5620 电子发票返回CMS时 增加COMMENTS "此单为电子数控发票"
if
ocr_field
==
consts
.
MVI_OCR_FIELD
:
e_invoice
=
ocr_res_list
[
res_idx
]
.
get
(
'电子发票'
)
if
e_invoice
is
not
None
and
e_invoice
==
'是'
:
result_field_list
.
append
((
'是否电子发票'
,
'是/否'
,
'Y'
,
'是'
,
empty_str
,
empty_error_type
,
'此单为电子数控发票'
))
else
:
result_field_list
.
append
((
'是否电子发票'
,
'是/否'
,
'Y'
,
'否'
,
empty_str
,
empty_error_type
,
'此单为电子数控发票'
))
else
:
no_ocr_result
=
True
...
...
@@ -3523,6 +3531,9 @@ def se_compare_process(compare_info, ocr_res_dict, is_gsyh, is_auto, id_res_list
elif
isinstance
(
cn_reason
,
list
):
cn_reason_list
.
extend
(
cn_reason
)
rpa_failure_reason
.
setdefault
(
'、'
.
join
(
cn_reason
),
[])
.
append
(
value
)
#
if
license_en
==
consts
.
MVI_EN
and
name
==
'是否电子发票'
and
ocr_str
==
'是'
:
cn_reason_list
.
append
(
cn_reason
)
compare_result
.
append
(
{
consts
.
HEAD_LIST
[
0
]:
info_key
,
...
...
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