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
952969b4
authored
2021-12-23 17:06:33 +0800
by
周伟奇
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chang asp
1 parent
00ece0bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
src/celery_compare/tasks.py
src/celery_compare/tasks.py
View file @
952969b
...
...
@@ -1141,19 +1141,19 @@ def get_se_cms_compare_info_auto(last_obj, application_entity):
# if tmp_asp_name.find('机动车辆保险') != -1:
# insurance_price = asp_info.get('price', '0.00')
#
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
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)
fin_total
+=
float
(
asp_fin
)
asp_list
.
append
(
(
consts
.
ASP_SUM_NAME
,
''
,
fin_total
,
#
format(fin_total, '.2f'),
#
fin_total,
format
(
fin_total
,
'.2f'
),
)
)
...
...
@@ -1615,19 +1615,19 @@ def get_se_cms_compare_info(last_obj, application_entity, detect_list):
if
tmp_asp_name
.
find
(
'机动车辆保险'
)
!=
-
1
:
insurance_price
=
asp_info
.
get
(
'price'
,
'0.00'
)
#
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
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)
fin_total
+=
float
(
asp_fin
)
asp_list
.
append
(
(
consts
.
ASP_SUM_NAME
,
''
,
fin_total
,
#
format(fin_total, '.2f'),
#
fin_total,
format
(
fin_total
,
'.2f'
),
)
)
...
...
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