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
f22c77dd
Commit
f22c77dd
authored
Jan 18, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月度回报字符串key
parent
c57136a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
26 deletions
+26
-26
result_service_v2.py
app/service/result_service_v2.py
+2
-2
monthReportV2.1.html
app/templates/v2/monthReportV2.1.html
+24
-24
No files found.
app/service/result_service_v2.py
View file @
f22c77dd
...
@@ -353,8 +353,8 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
...
@@ -353,8 +353,8 @@ class UserCustomerResultAdaptor(UserCustomerDataAdaptor):
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
)}
for
d_index
,
d_row
in
month_sum
.
items
():
for
d_index
,
d_row
in
month_sum
.
items
():
cur_year
=
int
(
d_index
[:
4
]
)
cur_year
=
str
(
int
(
d_index
[:
4
])
)
cur_month
=
int
(
d_index
[
5
:]
)
cur_month
=
str
(
int
(
d_index
[
5
:])
)
cur_profit
=
round
(
d_row
/
10000.0
,
2
)
cur_profit
=
round
(
d_row
/
10000.0
,
2
)
cur_net_amount
=
round
(
month_amount_sum
.
loc
[
d_index
]
/
10000
,
2
)
cur_net_amount
=
round
(
month_amount_sum
.
loc
[
d_index
]
/
10000
,
2
)
month_return_data_dict
[
cur_year
][
cur_month
][
"profit"
]
=
"
%.2
f"
%
cur_profit
month_return_data_dict
[
cur_year
][
cur_month
][
"profit"
]
=
"
%.2
f"
%
cur_profit
...
...
app/templates/v2/monthReportV2.1.html
View file @
f22c77dd
...
@@ -1215,40 +1215,40 @@
...
@@ -1215,40 +1215,40 @@
盈亏
盈亏
</td>
</td>
<td>
<td>
{{value[
1
]["profit"]}}
{{value[
"1"
]["profit"]}}
</td>
</td>
<td
>
<td
>
{{value[
2
]["profit"]}}
{{value[
"2"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
3
]["profit"]}}
{{value[
"3"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
4
]["profit"]}}
{{value[
"4"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
5
]["profit"]}}
{{value[
"5"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
6
]["profit"]}}
{{value[
"6"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
7
]["profit"]}}
{{value[
"7"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
8
]["profit"]}}
{{value[
"8"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
9
]["profit"]}}
{{value[
"9"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
10
]["profit"]}}
{{value[
"10"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
11
]["profit"]}}
{{value[
"11"
]["profit"]}}
</td>
</td>
<td>
<td>
{{value[
12
]["profit"]}}
{{value[
"12"
]["profit"]}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -1256,40 +1256,40 @@
...
@@ -1256,40 +1256,40 @@
期末资产
期末资产
</td>
</td>
<td>
<td>
{{value[
1
]["net_amount"]}}
{{value[
"1"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
2
]["net_amount"]}}
{{value[
"2"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
3
]["net_amount"]}}
{{value[
"3"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
4
]["net_amount"]}}
{{value[
"4"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
5
]["net_amount"]}}
{{value[
"5"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
6
]["net_amount"]}}
{{value[
"6"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
7
]["net_amount"]}}
{{value[
"7"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
8
]["net_amount"]}}
{{value[
"8"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
9
]["net_amount"]}}
{{value[
"9"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
10
]["net_amount"]}}
{{value[
"10"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
11
]["net_amount"]}}
{{value[
"11"
]["net_amount"]}}
</td>
</td>
<td>
<td>
{{value[
12
]["net_amount"]}}
{{value[
"12"
]["net_amount"]}}
</td>
</td>
</tr>
</tr>
{%endfor%}
{%endfor%}
...
...
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