|
@@ -12,7 +12,7 @@ class JianYeReport(object):
|
|
|
建业报表数据处理
|
|
|
"""
|
|
|
# customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com', 'plf@centralchina.com']
|
|
|
- customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com']
|
|
|
+ customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com', 'zhuyl@elab-plus.com', 'lijm@elab-plus.com', 'xuanxc@elab-plus.com']
|
|
|
|
|
|
#
|
|
|
index_type = [
|
|
@@ -289,6 +289,7 @@ class JianYeReport(object):
|
|
|
content, name, mail])
|
|
|
# rfu.create_excel_file(table_2, self.sheet_names_1, title, [self.head_1, self.head_1, self.head_1], file_path)
|
|
|
else:
|
|
|
+ send_mail_log.append([name, mail, title, -1, '客户类型错误{}'.format(customer_type)])
|
|
|
pass
|
|
|
except Exception as e:
|
|
|
print(str(e))
|
|
@@ -318,7 +319,7 @@ class JianYeReport(object):
|
|
|
except Exception as e:
|
|
|
print(str(e))
|
|
|
message['error1'] = str(e)
|
|
|
- send_mail_log.append([mail[5], mail[2], mail[3], -1, str(e)])
|
|
|
+ send_mail_log.append([mail[5], mail[2], mail[3], -1, '邮件发送失败:{}'.format(str(e))])
|
|
|
message['mail'] = 'success'
|
|
|
# 写入日志
|
|
|
self.db.add_some(Sql.sql_12, send_mail_log)
|