Browse Source

iiiiii

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 4 years ago
parent
commit
317c9d21c8
2 changed files with 4 additions and 4 deletions
  1. 1 1
      jianye_report.py
  2. 3 3
      sql.py

+ 1 - 1
jianye_report.py

@@ -29,7 +29,7 @@ class JianYeReport(object):
               '扫码到访数', '全民经纪人注册数', '老业主注册数', '报备成功数', '报备到访数']
               '扫码到访数', '全民经纪人注册数', '老业主注册数', '报备成功数', '报备到访数']
     brand_id = '13'
     brand_id = '13'
 
 
-    head_2 = ['区域名称', '城市', '项目名称', '推荐人姓名', '推荐人手机号', '组织','分享获电', '经纪人注册数', '报备成功数']
+    head_2 = ['区域名称', '城市', '项目名称', '推荐人姓名', '推荐人手机号', '分享获电', '组织', '经纪人注册数', '报备成功数']
 
 
     sheet_names_1 = ['当日数据', '当月数据', '上线以来所有数据']
     sheet_names_1 = ['当日数据', '当月数据', '上线以来所有数据']
 
 

+ 3 - 3
sql.py

@@ -268,13 +268,13 @@ class Sql:
     """
     """
 
 
     sql_16 = """
     sql_16 = """
-          SELECT b.region, b.city, a.house_name, a.advi_name, a.org_name, a.mobile, IFNULL(a.fx_mobile,0), IFNULL(a.zc_mobile, 0), IFNULL(a.bb_mobile, 0) FROM f_dm_jianye_agent_house_day a left join d_jianye_house_city_region_rlat b on a.house_id = b.house_id  where a.report_d = %s and a.house_id in %s order by a.org_name, CAST(a.fx_mobile AS SIGNED) desc
+          SELECT b.region, b.city, a.house_name, a.advi_name, a.mobile, a.org_name, IFNULL(a.fx_mobile,0), IFNULL(a.zc_mobile, 0), IFNULL(a.bb_mobile, 0) FROM f_dm_jianye_agent_house_day a left join d_jianye_house_city_region_rlat b on a.house_id = b.house_id  where a.report_d = %s and a.house_id in %s order by a.org_name, CAST(a.fx_mobile AS SIGNED) desc
     """
     """
     sql_17 = """
     sql_17 = """
-          SELECT b.region, b.city, a.house_name, a.advi_name, a.org_name, a.mobile, IFNULL(a.fx_mobile,0), IFNULL(a.zc_mobile, 0), IFNULL(a.bb_mobile, 0) FROM f_dm_jianye_agent_house_month a left join d_jianye_house_city_region_rlat b on a.house_id = b.house_id  where a.report_d = %s and a.house_id in %s order by a.org_name, CAST(a.fx_mobile AS SIGNED) desc
+          SELECT b.region, b.city, a.house_name, a.advi_name, a.mobile, a.org_name, IFNULL(a.fx_mobile,0), IFNULL(a.zc_mobile, 0), IFNULL(a.bb_mobile, 0) FROM f_dm_jianye_agent_house_month a left join d_jianye_house_city_region_rlat b on a.house_id = b.house_id  where a.report_d = %s and a.house_id in %s order by a.org_name, CAST(a.fx_mobile AS SIGNED) desc
     """
     """
     sql_18 = """
     sql_18 = """
-          SELECT b.region, b.city, a.house_name, a.advi_name, a.org_name,a.mobile, IFNULL(a.fx_mobile,0), IFNULL(a.zc_mobile, 0), IFNULL(a.bb_mobile, 0) FROM f_dm_jianye_agent_house_all a left join d_jianye_house_city_region_rlat b on a.house_id = b.house_id where a.report_d = %s and a.house_id in %s order by a.org_name, CAST(a.fx_mobile AS SIGNED) desc
+          SELECT b.region, b.city, a.house_name, a.advi_name, a.mobile, a.org_name, IFNULL(a.fx_mobile,0), IFNULL(a.zc_mobile, 0), IFNULL(a.bb_mobile, 0) FROM f_dm_jianye_agent_house_all a left join d_jianye_house_city_region_rlat b on a.house_id = b.house_id where a.report_d = %s and a.house_id in %s order by a.org_name, CAST(a.fx_mobile AS SIGNED) desc
     """
     """