Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
2ca9aa3b
Commit
2ca9aa3b
authored
Feb 06, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
类型转换
parent
fe703490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
folio_comment_service.py
app/service/folio_comment_service.py
+2
-1
No files found.
app/service/folio_comment_service.py
View file @
2ca9aa3b
...
...
@@ -23,6 +23,7 @@ def recalculation_fund_comment(args):
for
key
,
value_list
in
suggest_result
.
items
():
for
value
in
value_list
:
all_sug_amount_dict
[
value
[
"fund_id"
]]
=
value
[
"after_optimization"
]
value
[
"after_optimization"
]
=
round
(
float
(
value
[
"after_optimization"
]),
2
)
if
value
[
"after_optimization"
]
<=
0
:
continue
suggest_fund_dict
[
value
[
"fund_id"
]]
=
value
[
"fund_type"
]
...
...
@@ -72,5 +73,5 @@ def recalculation_fund_comment(args):
except
Exception
as
e
:
print
(
traceback
.
print_exc
())
return
False
#
print(json.dumps(dict_result, cls=npEncoder, ensure_ascii=False))
print
(
json
.
dumps
(
dict_result
,
cls
=
npEncoder
,
ensure_ascii
=
False
))
return
json
.
dumps
(
dict_result
,
cls
=
npEncoder
,
ensure_ascii
=
False
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment