|  | @@ -12,8 +12,8 @@ class JianYeReport(object):
 | 
	
		
			
				|  |  |          建业报表数据处理
 | 
	
		
			
				|  |  |      """
 | 
	
		
			
				|  |  |      # customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com', 'plf@centralchina.com']
 | 
	
		
			
				|  |  | -    customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com', 'lijm@elab-plus.com', 'xuanxc@elab-plus.com']
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    # customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com', 'lijm@elab-plus.com', 'xuanxc@elab-plus.com']
 | 
	
		
			
				|  |  | +    customer_mails = ['binrenzhang@qq.com']
 | 
	
		
			
				|  |  |      #
 | 
	
		
			
				|  |  |      index_type = [
 | 
	
		
			
				|  |  |          'fenxianghuodian',
 | 
	
	
		
			
				|  | @@ -29,7 +29,7 @@ class JianYeReport(object):
 | 
	
		
			
				|  |  |                '扫码到访数', '全民经纪人注册数', '老业主注册数', '报备成功数', '报备到访数']
 | 
	
		
			
				|  |  |      brand_id = '13'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    head_2 = ['区域名称', '城市', '项目名称', '推荐人姓名', '推荐人手机号', '分享获电', '组织', '经纪人注册数', '报备成功数']
 | 
	
		
			
				|  |  | +    head_2 = ['区域名称', '城市', '项目名称', '推荐人姓名', '推荐人手机号', '组织', '分享获电', '经纪人注册数', '报备成功数']
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      sheet_names_1 = ['当日数据', '当月数据', '上线以来所有数据']
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -487,17 +487,17 @@ class JianYeReport(object):
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      def send_mail(self, mail, send_mail_log):
 | 
	
		
			
				|  |  |          result = None
 | 
	
		
			
				|  |  | -        # for m in self.customer_mails:
 | 
	
		
			
				|  |  | -        if len(mail) == 6:
 | 
	
		
			
				|  |  | -            result = self.mail_util.send_mail_by_admin(mail[0], mail[1], mail[2], mail[3], mail[4])
 | 
	
		
			
				|  |  | -        elif len(mail) == 8:
 | 
	
		
			
				|  |  | -            result = self.mail_util.send_mail_by_admin(mail[0], mail[1], mail[2], mail[3], mail[4], mail[6],
 | 
	
		
			
				|  |  | -                                                  mail[7])
 | 
	
		
			
				|  |  | -        if result:
 | 
	
		
			
				|  |  | -            # name, mail, report_name, push_time, send_status, status, error_message
 | 
	
		
			
				|  |  | -            send_mail_log.append([mail[5], mail[2], mail[3], 1, 'success'])
 | 
	
		
			
				|  |  | -        else:
 | 
	
		
			
				|  |  | -            send_mail_log.append([mail[5], mail[2], mail[3], -1, '调用邮件接口失败:{}'.format(str(result))])
 | 
	
		
			
				|  |  | +        for m in self.customer_mails:
 | 
	
		
			
				|  |  | +            if len(mail) == 6:
 | 
	
		
			
				|  |  | +                result = self.mail_util.send_mail_by_admin(mail[0], mail[1], m, mail[3], mail[4])
 | 
	
		
			
				|  |  | +            elif len(mail) == 8:
 | 
	
		
			
				|  |  | +                result = self.mail_util.send_mail_by_admin(mail[0], mail[1], m, mail[3], mail[4], mail[6],
 | 
	
		
			
				|  |  | +                                                      mail[7])
 | 
	
		
			
				|  |  | +            if result:
 | 
	
		
			
				|  |  | +                # name, mail, report_name, push_time, send_status, status, error_message
 | 
	
		
			
				|  |  | +                send_mail_log.append([mail[5], mail[2], mail[3], 1, 'success'])
 | 
	
		
			
				|  |  | +            else:
 | 
	
		
			
				|  |  | +                send_mail_log.append([mail[5], mail[2], mail[3], -1, '调用邮件接口失败:{}'.format(str(result))])
 | 
	
		
			
				|  |  |          return send_mail_log
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      def get_house_ids(self, ids_str):
 |