|
@@ -323,7 +323,6 @@ class JianYeReport(object):
|
|
|
send_mail_info = []
|
|
|
rfu = ReportFileUtils()
|
|
|
customers = self.get_report_customers(task_key)
|
|
|
- message[0] = '客户信息获取成功'
|
|
|
send_mail_log = []
|
|
|
brand_table_one = None
|
|
|
brand_table_two = None
|
|
@@ -332,10 +331,8 @@ class JianYeReport(object):
|
|
|
send_data = []
|
|
|
if task_key == 12:
|
|
|
brand_table_one = self.brand_data()
|
|
|
- message['brand'] = 'success'
|
|
|
house_ids = self.get_house_id_by_brand_id('13')
|
|
|
brand_table_two = self.house_data(house_ids)
|
|
|
- message['house'] = 'success'
|
|
|
for customer in customers:
|
|
|
name = customer[2]
|
|
|
customer_type = customer[1]
|
|
@@ -390,6 +387,7 @@ class JianYeReport(object):
|
|
|
print(e)
|
|
|
send_mail_log.append([data[6], data[7], data[2], -1, '文件创建失败:{}'.format(str(e))])
|
|
|
message['file'] = 'success'
|
|
|
+ message['data'] = send_mail_info
|
|
|
for mail in send_mail_info:
|
|
|
try:
|
|
|
self.send_mail(mail, send_mail_log)
|