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
5d8b6382
Commit
5d8b6382
authored
Nov 27, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复html模板综述数据
parent
f229262f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
result_service.py
app/service/result_service.py
+1
-1
monthReport.html
app/templates/monthReport.html
+6
-5
No files found.
app/service/result_service.py
View file @
5d8b6382
...
...
@@ -44,7 +44,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
# 总成本
total_cost
=
float
(
cur_folio_order_data
[
cur_folio_order_data
[
"order_type"
]
==
1
][
"confirm_amount"
]
.
sum
()
-
\
cur_folio_order_data
[
cur_folio_order_data
[
"order_type"
]
==
2
][
"confirm_amount"
]
.
sum
())
folio_report_data
[
"total_cos
e
"
]
=
total_cost
folio_report_data
[
"total_cos
t
"
]
=
total_cost
# 累积盈利
cumulative_profit
=
profit_df
.
sum
()
.
sum
()
...
...
app/templates/monthReport.html
View file @
5d8b6382
...
...
@@ -2141,9 +2141,10 @@
中证500:
</div>
<div
class=
"scp_now_value"
>
1000.00
{{index_yield}}
<!-- 1000.00 -->
<span
class=
"scp_now_unit"
>
万元
%
</span>
</div>
</div>
...
...
@@ -2174,9 +2175,9 @@
中证500:
</div>
<div
class=
"scp_now_value"
>
1000.00
{{index_withdrawal}}
<span
class=
"scp_now_unit"
>
万元
%
</span>
</div>
</div>
...
...
@@ -2318,7 +2319,7 @@
</td>
<td>
<!-- 0.40 -->
{{index_comparison_500['
volatility
']}}
{{index_comparison_500['
annualized_returns
']}}
</td>
<td>
<!-- 2.29 -->
...
...
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