Commit 28498033 by 刘豪

update

parent 3697aaed
Showing with 21 additions and 21 deletions
......@@ -7,23 +7,23 @@ 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 final_result
return ["hao@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
# return ["hao@ichunt.com"]
"""
汇总订单数据
......
......@@ -26,8 +26,8 @@ class MsgHandler:
"content": msg
}
}
print("send_dd_msg", data)
# res = requests.post(robot_api + robot, json=data)
# print("send_dd_msg", data)
res = requests.post(robot_api + robot, json=data)
# print(res)
@staticmethod
......@@ -38,8 +38,8 @@ class MsgHandler:
"content": msg
}
}
print("send_point_dd_msg", data)
# res = requests.post(robot_api, json=data)
# print("send_point_dd_msg", data)
res = requests.post(robot_api, json=data)
# print(res)
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment