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
2c815433
authored
2021-12-07 17:12:15 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix asp
1 parent
8e146fd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
src/apps/doc/consts.py
src/celery_compare/tasks.py
src/apps/doc/consts.py
View file @
2c81543
...
...
@@ -1558,7 +1558,7 @@ BL_COMPARE_LOGIC = {
'registeredCapital'
:
(
'注册资本'
,
'se_rmb_compare'
,
{},
'营业执照注册资本与系统不一致'
),
}
BL_COMPARE_LOGIC
=
{
SME_
BL_COMPARE_LOGIC
=
{
'legalRepName'
:
(
'经营者姓名'
,
'se_name_compare'
,
{},
'营业执照法定代表人与系统不一致'
),
'businessLicenseDueDate'
:
(
'营业期限'
,
'se_date_compare'
,
{
'ocr_split'
:
True
,
'long'
:
True
,
'ocr_replace'
:
True
,
'today'
:
True
},
'公司营业期限疑似过期'
),
}
...
...
src/celery_compare/tasks.py
View file @
2c81543
...
...
@@ -1113,7 +1113,7 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
asp_list
=
[]
gzs_status
=
consts
.
GZS_STATUS
[
1
]
gzs_price
=
'0.00'
for
asp_info
in
cms_info
.
get
(
'associatedServices'
,
[]):
for
asp_info
in
cms_info
.
get
(
'associatedServices'
,
{})
.
get
(
'SubassociatedServices'
,
[]):
tmp_asp_name
=
asp_info
.
get
(
'associatedServices'
)
if
isinstance
(
tmp_asp_name
,
str
)
and
len
(
tmp_asp_name
)
>
0
:
if
gzs_status
==
consts
.
GZS_STATUS
[
1
]
and
tmp_asp_name
.
find
(
consts
.
GZS_NAME
)
!=
-
1
:
...
...
@@ -1127,16 +1127,16 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
)
)
fin_total
=
0
fin_total_tmp
=
cms_info
.
get
(
'associatedServices'
,
{})
.
get
(
'financed total'
,
'0.00'
)
fin_total
=
'0.00'
if
fin_total_tmp
.
strip
()
==
''
else
fin_total_tmp
for
asp_name
,
_
,
asp_fin
in
asp_list
:
if
gzs_status
==
consts
.
GZS_STATUS
[
2
]
and
asp_name
.
find
(
consts
.
GZS_NAME
)
==
-
1
:
gzs_status
=
consts
.
GZS_STATUS
[
0
]
fin_total
+=
float
(
asp_fin
)
asp_list
.
append
(
(
consts
.
ASP_SUM_NAME
,
''
,
f
ormat
(
fin_total
,
'.2f'
)
f
in_total
,
)
)
afc_contract_input
.
append
((
consts
.
SE_AFC_CON_FIELD
[
20
],
asp_list
))
...
...
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