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
236a4023
authored
2024-04-28 15:33:27 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ADD:log
1 parent
c11096ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
236a402
...
...
@@ -901,7 +901,7 @@ def ca_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
traceback
.
format_exc
()))
def
get_se_cms_compare_info_auto
(
last_obj
,
application_entity
,
data_source
,
auto
=
True
,
ignore_bank
=
False
):
def
get_se_cms_compare_info_auto
(
application_id
,
last_obj
,
application_entity
,
data_source
,
auto
=
True
,
ignore_bank
=
False
):
cms_info
=
json
.
loads
(
last_obj
.
content
)
compare_info
=
{}
...
...
@@ -923,6 +923,8 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, data_source, auto
dealer_name
.
append
(
dealer_name_list
[
-
1
])
# CMS的最后一个值
issuer_dealer
=
[]
issuer_dealer
.
append
(
cms_info
.
get
(
'fapiaoIssuerDealer'
,
''
)
.
strip
())
compare_log
.
info
(
'[get_se_cms_compare_info_auto] [新车发票] [application_id {0}] [dealer_name_mapper_list {1}] [dealer_name {2}] [issuer_dealer {3}]'
.
format
(
application_id
,
dealer_name_mapper_list
,
dealer_name
,
issuer_dealer
))
# 个人信息证件------------------------------------------------------------------------------------------------------
# is_cdfl = True # 车贷分离
...
...
@@ -1464,7 +1466,7 @@ def get_se_cms_compare_info_auto(last_obj, application_entity, data_source, auto
return
compare_info
,
cms_info
.
get
(
'autoApprovedDetails'
,
{})
.
get
(
'aaType'
,
''
),
is_gsyh
def
get_se_cms_compare_info
(
last_obj
,
application_entity
,
detect_list
,
data_source
,
auto
=
False
,
ignore_bank
=
False
):
def
get_se_cms_compare_info
(
application_id
,
last_obj
,
application_entity
,
detect_list
,
data_source
,
auto
=
False
,
ignore_bank
=
False
):
cms_info
=
json
.
loads
(
last_obj
.
content
)
compare_info
=
{}
...
...
@@ -1486,6 +1488,8 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list, data_sour
dealer_name
.
append
(
dealer_name_list
[
-
1
])
# CMS的最后一个值
issuer_dealer
=
[]
issuer_dealer
.
append
(
cms_info
.
get
(
'fapiaoIssuerDealer'
,
''
)
.
strip
())
compare_log
.
info
(
'[get_se_cms_compare_info] [新车发票] [application_id {0}] [dealer_name_mapper_list {1}] [dealer_name {2}] [issuer_dealer {3}]'
.
format
(
application_id
,
dealer_name_mapper_list
,
dealer_name
,
issuer_dealer
))
# 个人信息证件------------------------------------------------------------------------------------------------------
is_cdfl_bo
=
False
# 车贷分离,主借
...
...
@@ -3147,7 +3151,7 @@ def se_compare_auto(application_id, application_entity, ocr_res_id, last_obj, oc
# 比对逻辑
# detect_list = se_result_detect(ocr_res_dict)
compare_info
,
aa_type
,
is_gsyh
=
get_se_cms_compare_info_auto
(
last_obj
,
application_entity
,
data_source
,
ignore_bank
=
ignore_bank
)
application_id
,
last_obj
,
application_entity
,
data_source
,
ignore_bank
=
ignore_bank
)
compare_result
,
total_fields
,
failed_count
,
successful_at_this_level
,
failure_reason_str
,
\
cn_failure_reason_str
,
bs_failure_reason_str
,
_
,
field_result_dict
=
se_compare_process
(
compare_info
,
ocr_res_dict
,
is_gsyh
,
True
,
id_res_list
,
aa_type
)
...
...
@@ -3214,7 +3218,7 @@ def se_compare(application_id, application_entity, ocr_res_id, last_obj, ocr_res
start_time
=
datetime
.
now
()
detect_list
=
se_result_detect
(
ocr_res_dict
)
compare_info
,
application_version
,
aa_type
,
is_gsyh
=
get_se_cms_compare_info
(
last_obj
,
application_entity
,
detect_list
,
data_source
,
ignore_bank
=
ignore_bank
)
application_id
,
last_obj
,
application_entity
,
detect_list
,
data_source
,
ignore_bank
=
ignore_bank
)
compare_result
,
total_fields
,
failed_count
,
successful_at_this_level
,
failure_reason_str
,
\
cn_failure_reason_str
,
bs_failure_reason_str
,
rpa_failure_reason
,
field_result_dict
=
se_compare_process
(
compare_info
,
ocr_res_dict
,
is_gsyh
,
False
,
id_res_list
,
aa_type
)
...
...
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