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
e575d1b4
Commit
e575d1b4
authored
Jan 01, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置12月31日
parent
c0cfc2ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
data_service_v2.py
app/service/data_service_v2.py
+1
-1
result_service_v2.py
app/service/result_service_v2.py
+1
-1
No files found.
app/service/data_service_v2.py
View file @
e575d1b4
...
@@ -32,7 +32,7 @@ class UserCustomerDataAdaptor:
...
@@ -32,7 +32,7 @@ class UserCustomerDataAdaptor:
all_fund_distribution
=
{}
all_fund_distribution
=
{}
all_fund_performance
=
{}
all_fund_performance
=
{}
def
__init__
(
self
,
user_id
,
customer_id
,
end_date
=
str
(
datetime
.
date
.
today
()
),
index_id
=
"IN0000007M"
):
def
__init__
(
self
,
user_id
,
customer_id
,
end_date
=
str
(
"2020-12-31"
),
index_id
=
"IN0000007M"
):
self
.
user_id
=
user_id
self
.
user_id
=
user_id
self
.
customer_id
=
customer_id
self
.
customer_id
=
customer_id
self
.
compare_index_id
=
index_id
self
.
compare_index_id
=
index_id
...
...
app/service/result_service_v2.py
View file @
e575d1b4
...
@@ -342,7 +342,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
...
@@ -342,7 +342,7 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
# 月度回报表格数据
# 月度回报表格数据
start_year
=
self
.
start_date
.
year
start_year
=
self
.
start_date
.
year
now_year
=
datetime
.
datetime
.
now
()
.
year
now_year
=
self
.
end_date
.
year
month_return_data_dict
=
{}
month_return_data_dict
=
{}
for
i
in
range
(
now_year
-
start_year
+
1
):
for
i
in
range
(
now_year
-
start_year
+
1
):
month_return_data_dict
[
start_year
+
i
]
=
{
j
+
1
:
{
"profit"
:
"-"
,
"net_amount"
:
"-"
}
for
j
in
range
(
12
)}
month_return_data_dict
[
start_year
+
i
]
=
{
j
+
1
:
{
"profit"
:
"-"
,
"net_amount"
:
"-"
}
for
j
in
range
(
12
)}
...
...
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