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
47cff431
Commit
47cff431
authored
Dec 07, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签位置
parent
d376ee92
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20947 additions
and
4 deletions
+20947
-4
draw.py
app/utils/draw.py
+2
-2
timed_task.py
app/utils/timed_task.py
+1
-2
tamp_course_order.log
logs/tamp_course_order.log
+20944
-0
No files found.
app/utils/draw.py
View file @
47cff431
...
@@ -74,9 +74,9 @@ def draw_month_return_chart(xlabels, product_list, cumulative):
...
@@ -74,9 +74,9 @@ def draw_month_return_chart(xlabels, product_list, cumulative):
ax
=
ax1
.
bar
(
loc
,
product_list
[
i
][
'data'
],
width
,
bottom
=
bottom
,
alpha
=
0.8
)
ax
=
ax1
.
bar
(
loc
,
product_list
[
i
][
'data'
],
width
,
bottom
=
bottom
,
alpha
=
0.8
)
for
a
,
b
in
zip
(
range
(
len
(
xlabels
)),
product_list
[
0
][
'data'
]):
for
a
,
b
in
zip
(
range
(
len
(
xlabels
)),
product_list
[
0
][
'data'
]):
if
b
>
0
:
if
b
>
0
:
ax1
.
text
(
a
,
b
+
0.
2
,
'
%.0
f万'
%
b
,
ha
=
'center'
,
va
=
'bottom'
,
fontsize
=
fontsize
)
ax1
.
text
(
a
,
b
+
0.
1
,
'
%.2
f万'
%
b
,
ha
=
'center'
,
va
=
'bottom'
,
fontsize
=
fontsize
)
elif
b
<
0
:
elif
b
<
0
:
ax1
.
text
(
a
,
b
-
0.
5
,
'
%.0
f万'
%
b
,
ha
=
'center'
,
va
=
'top'
,
fontsize
=
fontsize
)
ax1
.
text
(
a
,
b
-
0.
1
,
'
%.2
f万'
%
b
,
ha
=
'center'
,
va
=
'top'
,
fontsize
=
fontsize
)
prod_legend
.
append
(
ax
[
0
])
prod_legend
.
append
(
ax
[
0
])
ax1
.
legend
(
prod_legend
,
[
prod
[
'name'
]
for
prod
in
product_list
],
loc
=
'upper left'
,
fontsize
=
fontsize
)
ax1
.
legend
(
prod_legend
,
[
prod
[
'name'
]
for
prod
in
product_list
],
loc
=
'upper left'
,
fontsize
=
fontsize
)
...
...
app/utils/timed_task.py
View file @
47cff431
...
@@ -51,8 +51,7 @@ with TAMP_SQL(tamp_user_engine) as tamp_user, TAMP_SQL(tamp_order_engine) as tam
...
@@ -51,8 +51,7 @@ with TAMP_SQL(tamp_user_engine) as tamp_user, TAMP_SQL(tamp_order_engine) as tam
tamp_order_session
=
tamp_order
.
session
tamp_order_session
=
tamp_order
.
session
# for ifauser in ifausers:
# for ifauser in ifausers:
for
ifauser
in
ifausers
[:
5
]:
for
ifauser
in
ifausers
[
1000
:
2000
]:
# 获取某个 ifa 的所有 customer
# 获取某个 ifa 的所有 customer
customers
=
tamp_order_session
.
query
(
Ifa_Customer
)
.
\
customers
=
tamp_order_session
.
query
(
Ifa_Customer
)
.
\
filter_by
(
ifa_id
=
ifauser
.
id
)
.
all
()
filter_by
(
ifa_id
=
ifauser
.
id
)
.
all
()
...
...
logs/tamp_course_order.log
View file @
47cff431
This diff is collapsed.
Click to expand it.
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