Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lzzzzl
/
PipData
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0b337ed6
authored
Oct 15, 2021
by
刘豪
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
89309a84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
extract/ex_dashboard.py
extract/ex_dashboard.py
View file @
0b337ed6
...
...
@@ -8,22 +8,22 @@ class ExDashboard(Base):
def
email_list
(
self
,
condition
):
# 筛选字段
#
con_str = super().condition_to_str(condition['condition'])
#
#
#
订单数据库
#
db = ConnList.Dashboard()
#
sql = "SELECT email \
#
FROM \
#
lie_email_list \
#
WHERE %s" \
#
% con_str
#
results = DBHandler.read(db=db, sql=sql)
#
#
#
结果格式转换为字典
#
final_result = super().result_to_list(results)
#
print('final_result', len(final_result))
return
[
"hao@ichunt.com"
,
"xb@ichunt.com"
]
con_str
=
super
()
.
condition_to_str
(
condition
[
'condition'
])
# 订单数据库
db
=
ConnList
.
Dashboard
()
sql
=
"SELECT email
\
FROM
\
lie_email_list
\
WHERE
%
s"
\
%
con_str
results
=
DBHandler
.
read
(
db
=
db
,
sql
=
sql
)
# 结果格式转换为字典
final_result
=
super
()
.
result_to_list
(
results
)
print
(
'final_result'
,
len
(
final_result
))
return
final_result
"""
汇总订单数据
...
...
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