| 
					
				 | 
			
			
				@@ -11,8 +11,8 @@ class JianYeReport(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         建业报表数据处理 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     """ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    # customer_mails = ['plf@centralchina.com', 'liutt@elab-plus.com', 'binrenzhang@qq.com'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    customer_mails = ['binrenzhang@qq.com'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    customer_mails = ['liutt@elab-plus.com', 'binrenzhang@qq.com'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    # customer_mails = ['binrenzhang@qq.com'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     # 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     index_type = [ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -25,7 +25,8 @@ class JianYeReport(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'baobeidaofang' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    head_1 = ['城市', '项目名称', '浏览量', '浏览人数', '新增用户', '新增获电', '推荐用户', '分享获电', '裂变获电', '扫码到访数', '全民经纪人注册数', '报备成功数', '报备到访数'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    head_1 = ['城市', '项目名称', '浏览量', '浏览人数', '新增用户', '新增获电', '推荐用户', '分享获电', '裂变获电', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              '扫码到访数', '全民经纪人注册数', '老业主注册数','报备成功数', '报备到访数'] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     brand_id = '13' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     sheet_names_1 = ['当日数据', '当月数据', '上线以来所有数据'] 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -261,6 +262,7 @@ class JianYeReport(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                     table_1[26], table_1[27], table_1[28], table_1[29], table_1[30], table_1[31], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                     table_1[32], table_1[33], table_1[34], table_1[35] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                     ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    table_2.sort(key=lambda obj: obj[2]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     rfu.create_excel_file(table_2, self.sheet_names_1, title, [self.head_1, self.head_1, self.head_1], save_path) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 elif customer_type == 1: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     # 项目 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -279,7 +281,6 @@ class JianYeReport(object): 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     pass 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 send_mail_info.append([title, content, mail, file_path, title + '.xlsx', name]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 message[1] = '数据查询和excel生成完毕' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             # 发送邮件 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             send_mail_log = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             for mail in send_mail_info: 
			 |