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
97dc8fb0
Commit
97dc8fb0
authored
Dec 07, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最新净值日,起始日等日期
parent
3b59628c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
data_service.py
app/service/data_service.py
+1
-0
monthReportV2.html
app/templates/v2/monthReportV2.html
+6
-6
jinjia2html.py
app/utils/jinjia2html.py
+3
-2
No files found.
app/service/data_service.py
View file @
97dc8fb0
...
@@ -126,6 +126,7 @@ class UserCustomerDataAdaptor:
...
@@ -126,6 +126,7 @@ class UserCustomerDataAdaptor:
all_fund_nav
=
all_fund_nav
[
all_fund_nav
.
index
<=
self
.
end_date
]
all_fund_nav
=
all_fund_nav
[
all_fund_nav
.
index
<=
self
.
end_date
]
all_fund_cnav
=
all_fund_cnav
[
all_fund_cnav
.
index
<=
self
.
end_date
]
all_fund_cnav
=
all_fund_cnav
[
all_fund_cnav
.
index
<=
self
.
end_date
]
self
.
last_nav_date
=
str
(
all_fund_cnav
.
dropna
(
how
=
"all"
)
.
index
.
values
[
-
1
])[:
10
]
return
all_fund_nav
,
all_fund_cnav
return
all_fund_nav
,
all_fund_cnav
# 获取客户对比指数净值数据
# 获取客户对比指数净值数据
...
...
app/templates/v2/monthReportV2.html
View file @
97dc8fb0
...
@@ -929,7 +929,7 @@
...
@@ -929,7 +929,7 @@
<img
src=
{{cover_back}}
alt=
""
class=
"cover_back"
>
<img
src=
{{cover_back}}
alt=
""
class=
"cover_back"
>
<div
class=
"cover_date"
>
<div
class=
"cover_date"
>
<div
class=
"cover_time"
>
<div
class=
"cover_time"
>
2020.10
{{year_month}}
</div>
</div>
</div>
</div>
<div
class=
"cover_title dtable"
>
<div
class=
"cover_title dtable"
>
...
@@ -1279,10 +1279,10 @@
...
@@ -1279,10 +1279,10 @@
<div
class=
"tss3"
>
<div
class=
"tss3"
>
<div
class=
"tss3_head dtable"
>
<div
class=
"tss3_head dtable"
>
<div
class=
"tss3_title dcell"
>
<div
class=
"tss3_title dcell"
>
指标对比
<span
class=
"tss3_start_time"
>
(起始日期
2019-11-06
)
</span>
指标对比
<span
class=
"tss3_start_time"
>
(起始日期
{{start_date}}
)
</span>
</div>
</div>
<div
class=
"tss3_now_time dcell"
>
<div
class=
"tss3_now_time dcell"
>
截止日:最新净值日(
2020-11-05
)
截止日:最新净值日(
{{latest_worth_day}}
)
</div>
</div>
</div>
</div>
<table
border=
"1"
>
<table
border=
"1"
>
...
@@ -1475,7 +1475,7 @@
...
@@ -1475,7 +1475,7 @@
持仓收益汇总
持仓收益汇总
</div>
</div>
<div
class=
"tss3_now_time dcell"
>
<div
class=
"tss3_now_time dcell"
>
截止日:最新净值日(
2020-11-05
)
截止日:最新净值日(
{{latest_worth_day}}
)
</div>
</div>
</div>
</div>
<div
style=
"position: relative;"
>
<div
style=
"position: relative;"
>
...
@@ -1541,7 +1541,7 @@
...
@@ -1541,7 +1541,7 @@
基金净值
基金净值
</div>
</div>
<div
class=
"tss3_now_time dcell"
>
<div
class=
"tss3_now_time dcell"
>
截止日:最新净值日(
2020-11-05
)
截止日:最新净值日(
{{latest_worth_day}}
)
</div>
</div>
</div>
</div>
<table
border=
"1"
>
<table
border=
"1"
>
...
@@ -1746,7 +1746,7 @@
...
@@ -1746,7 +1746,7 @@
指标对比
<span
class=
"tss3_start_time"
>
(起始日期2019-11-06)
</span>
指标对比
<span
class=
"tss3_start_time"
>
(起始日期2019-11-06)
</span>
</div>
</div>
<div
class=
"tss3_now_time dcell"
>
<div
class=
"tss3_now_time dcell"
>
截止日:最新净值日(
2020-11-05
)
截止日:最新净值日(
{{latest_worth_day}}
)
</div>
</div>
</div>
</div>
<table
border=
"1"
>
<table
border=
"1"
>
...
...
app/utils/jinjia2html.py
View file @
97dc8fb0
...
@@ -173,7 +173,8 @@ class DataIntegrate:
...
@@ -173,7 +173,8 @@ class DataIntegrate:
'team'
:
template_folder
+
'/v2/img/team.png'
,
'team'
:
template_folder
+
'/v2/img/team.png'
,
'customer_name'
:
self
.
customer_name
,
'customer_name'
:
self
.
customer_name
,
'customer_gender'
:
'女'
,
'customer_gender'
:
'女'
,
'year_month'
:
'2020年10月'
,
'year_month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
Y-
%
m"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'ifa_company'
:
'飞度工作室'
,
'ifa_company'
:
'飞度工作室'
,
'title'
:
'10月综述'
,
'brand_name'
:
'飞度工作室'
,
'title'
:
'10月综述'
,
'brand_name'
:
'飞度工作室'
,
'customer_old'
:
42
,
'customer_level'
:
'平衡型'
,
'customer_old'
:
42
,
'customer_level'
:
'平衡型'
,
...
@@ -187,7 +188,7 @@ class DataIntegrate:
...
@@ -187,7 +188,7 @@ class DataIntegrate:
'month_rise'
:
self
.
month_rise
,
'year_totoal_rate_of_return'
:
self
.
year_totoal_rate_of_return
,
'month_rise'
:
self
.
month_rise
,
'year_totoal_rate_of_return'
:
self
.
year_totoal_rate_of_return
,
'annualised_return'
:
self
.
annualised_return
,
'cost_of_investment'
:
self
.
cost_of_investment
,
'annualised_return'
:
self
.
annualised_return
,
'cost_of_investment'
:
self
.
cost_of_investment
,
'final_balance'
:
self
.
final_balance
,
'total_profit'
:
self
.
total_profit
,
'final_balance'
:
self
.
final_balance
,
'total_profit'
:
self
.
total_profit
,
'latest_worth_day'
:
'2020-11-05'
,
'latest_worth_day'
:
self
.
user_customer
.
last_nav_date
,
'index_comparison'
:
{
'section_return'
:
self
.
totoal_rate_of_return
,
'annualized_returns'
:
self
.
annualised_return
,
'index_comparison'
:
{
'section_return'
:
self
.
totoal_rate_of_return
,
'annualized_returns'
:
self
.
annualised_return
,
'volatility'
:
self
.
volatility
,
'max_withdrawal'
:
self
.
max_withdrawal
,
'volatility'
:
self
.
volatility
,
'max_withdrawal'
:
self
.
max_withdrawal
,
...
...
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