my.properties 21.9 KB

spring.datasource.scrm_shopmall.jdbc-url=jdbc:mysql://192.168.5.1:3310/scrm_shopmall?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&characterEncoding=utf-8
spring.datasource.scrm_shopmall.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.scrm_shopmall.username=user_jinglf
spring.datasource.scrm_shopmall.password=jr2vL8Tx


spring.datasource.scrm_equity.jdbc-url=jdbc:mysql://192.168.5.1:3310/scrm_equity?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&characterEncoding=utf-8
spring.datasource.scrm_equity.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.scrm_equity.username=user_jinglf
spring.datasource.scrm_equity.password=jr2vL8Tx

spring.datasource.dj_smartcarlife1.jdbc-url=jdbc:mysql://192.168.5.23:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&characterEncoding=utf-8
spring.datasource.dj_smartcarlife1.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.dj_smartcarlife1.username=user_jinglf
spring.datasource.dj_smartcarlife1.password=jr2vL8Tx





##测试环境  application.properties
#spring.datasource.dj_business_school.jdbc-url=jdbc:mysql://192.168.1.39:3306/dj_business_school?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.dj_business_school.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.dj_business_school.username=insurance_user
#spring.datasource.dj_business_school.password=123456
#
#spring.datasource.dj_smartcarlife.jdbc-url=jdbc:mysql://192.168.3.93:3307/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.dj_smartcarlife.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.dj_smartcarlife.username=user_jinglf
#spring.datasource.dj_smartcarlife.password=jr2vL8Tx
#
#spring.datasource.scrm_account.jdbc-url=jdbc:mysql://192.168.3.222:3308/scrm_account?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.scrm_account.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.scrm_account.username=user_jinglf
#spring.datasource.scrm_account.password=jr2vL8Tx
#
#spring.datasource.insert.jdbc-url=jdbc:mysql://192.168.3.227:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.insert.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.insert.username=dev_admin
#spring.datasource.insert.password=1f7e1ed2
#
#spring.datasource.query.jdbc-url=jdbc:mysql://192.168.3.227:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.query.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.query.username=dev_admin
#spring.datasource.query.password=1f7e1ed2
#
#binlogip=192.168.1.39
#binlogport=3306
#binlogdb=dj_smartcarlife
#binlogusername=insurance_user
#binlogpassword=123456
#binlogip2=192.168.1.39
#binlogport2=3306
#binlogdb2=scrm_account
#binlogusername2=insurance_user
#binlogpassword2=123456
##测试
#absolutePath =/app/soft/java_project/appletBusinessAnalysis/品牌.json
#apiUrlName=测试
#whereupgradegoodstypesuppliercode=upgradegoodstypesuppliercode_test





##开发环境
#spring.datasource.dj_business_school.jdbc-url=jdbc:mysql://192.168.3.227:3306/dj_business_school?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.dj_business_school.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.dj_business_school.username=dev_admin
#spring.datasource.dj_business_school.password=1f7e1ed2
#
#spring.datasource.dj_smartcarlife.jdbc-url=jdbc:mysql://192.168.3.227:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.dj_smartcarlife.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.dj_smartcarlife.username=dev_admin
#spring.datasource.dj_smartcarlife.password=1f7e1ed2
#
#spring.datasource.scrm_account.jdbc-url=jdbc:mysql://192.168.3.227:3306/scrm_account?rewriteBatchedStatements=true&allowMultiQueries=true&characterEncoding=utf-8
#spring.datasource.scrm_account.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.scrm_account.username=dev_admin
#spring.datasource.scrm_account.password=1f7e1ed2
#
#spring.datasource.insert.jdbc-url=jdbc:mysql://192.168.3.227:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.insert.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.insert.username=dev_admin
#spring.datasource.insert.password=1f7e1ed2
#
#spring.datasource.query.jdbc-url=jdbc:mysql://192.168.3.227:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.query.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.query.username=dev_admin
#spring.datasource.query.password=1f7e1ed2
###本地
#absolutePath =src/main/resources/config/品牌.json
#apiUrlName=测试
#whereupgradegoodstypesuppliercode=upgradegoodstypesuppliercode_test







#预发布环境  application.properties
#spring.datasource.dj_business_school.jdbc-url=jdbc:mysql://192.168.5.4:3306/dj_business_school?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.dj_business_school.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.dj_business_school.username=user_jinglf
#spring.datasource.dj_business_school.password=jr2vL8Tx
#
#spring.datasource.dj_smartcarlife.jdbc-url=jdbc:mysql://192.168.5.4:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.dj_smartcarlife.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.dj_smartcarlife.username=user_jinglf
#spring.datasource.dj_smartcarlife.password=jr2vL8Tx
#
#spring.datasource.scrm_account.jdbc-url=jdbc:mysql://192.168.5.4:3306/scrm_account?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.scrm_account.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.scrm_account.username=user_jinglf
#spring.datasource.scrm_account.password=jr2vL8Tx
#
#spring.datasource.insert.jdbc-url=jdbc:mysql://192.168.5.77:3306/gh_bidata?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.insert.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.insert.username=biz_bi
#spring.datasource.insert.password=bwVg2FZC
#
#spring.datasource.query.jdbc-url=jdbc:mysql://192.168.5.77:3306/gh_bidata?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
#spring.datasource.query.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.query.username=biz_bi
#spring.datasource.query.password=bwVg2FZC
#
#binlogip=192.168.5.77
#binlogport=3306
#binlogdb=dj_smartcarlife
#binlogusername=user_jinglf
#binlogpassword=jr2vL8Tx
#
#binlogip2=192.168.5.77
#binlogport2=3306
#binlogdb2=scrm_account
#binlogusername2=biz_bi
#binlogpassword2=bwVg2FZC
#whereupgradegoodstypesuppliercode=upgradegoodstypesuppliercode_beta



#生产环境 application.properties
spring.datasource.dj_business_school.jdbc-url=jdbc:mysql://192.168.5.23:3306/dj_business_school?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
spring.datasource.dj_business_school.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.dj_business_school.username=user_jinglf
spring.datasource.dj_business_school.password=jr2vL8Tx

spring.datasource.dj_smartcarlife.jdbc-url=jdbc:mysql://192.168.5.23:3306/dj_smartcarlife?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
spring.datasource.dj_smartcarlife.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.dj_smartcarlife.username=user_jinglf
spring.datasource.dj_smartcarlife.password=jr2vL8Tx

spring.datasource.scrm_account.jdbc-url=jdbc:mysql://192.168.5.1:3310/scrm_account?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
spring.datasource.scrm_account.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.scrm_account.username=user_jinglf
spring.datasource.scrm_account.password=jr2vL8Tx


spring.datasource.insert.jdbc-url=jdbc:mysql://192.168.5.24:3306/dj_operationreport?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
spring.datasource.insert.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.insert.username=user_jinglf
spring.datasource.insert.password=jr2vL8Tx


spring.datasource.query.jdbc-url=jdbc:mysql://192.168.5.24:3306/dj_operationreport?rewriteBatchedStatements=true&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&characterEncoding=utf-8
spring.datasource.query.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.query.username=user_jinglf
spring.datasource.query.password=jr2vL8Tx

binlogip=192.168.5.23
binlogport=3306
binlogdb=dj_smartcarlife
binlogusername=user_jinglf
binlogpassword=jr2vL8Tx

binlogip2=192.168.5.1
binlogport2=3310
binlogdb2=scrm_account
binlogusername2=user_jinglf
binlogpassword2=jr2vL8Tx

#生产环境
absolutePath =/app/soft/java_project/appletBusinessAnalysis/品牌.json
apiUrlName=正式
whereupgradegoodstypesuppliercode=upgradegoodstypesuppliercode_product







##广联开发测试
#spring.datasource.query.jdbc-url=jdbc:mysql://192.168.3.171:3307/scrm_label?rewriteBatchedStatements=true&allowMultiQueries=true&characterEncoding=utf-8
#spring.datasource.query.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.query.username=biz_scrm_label
#spring.datasource.query.password=a9XykLdV

#
##广联线上
#spring.datasource.query.jdbc-url=jdbc:mysql://192.168.5.2:3307/rd_bidata?rewriteBatchedStatements=true&allowMultiQueries=true&characterEncoding=utf-8
#spring.datasource.query.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.query.username=user_jinglf
#spring.datasource.query.password=jr2vL8Tx

































newIndicatorssql=select * from dj_smart_bi_roadshow


sql01=select  stat_date,ifnull(total_num,0)total_num,ifnull(incre_num_thisyear,0)incre_num_thisyear,ifnull(retention_rate,0)retention_rate,ifnull(output_value,0)output_value from dj_smart_bi_merchant_static where stat_date=(select max(stat_date) from dj_smart_bi_merchant_static)
sql02=select a.thismonth stat_date,ifnull(a.total_num,0)total_num,ifnull(a.incre_num_thismonth,0)incre_num_thismonth,  ifnull(b.beforemonthtotal,0)beforemonthtotal,ifnull(b.beforemonthincre ,0)beforemonthincre from (select DATE_FORMAT(stat_date,'%Y-%m')thismonth,total_num,incre_num_thismonth from (select stat_date,total_num,incre_num_thismonth from dj_smart_bi_merchant_static where stat_date  in (select concat(yearmonth,'-',days)stat_date from  (select concat(year(stat_date),'-',(case when month(stat_date)<10 then concat(0,month(stat_date))else month(stat_date) end)) yearmonth, (case when max(day(stat_date))<10 then concat(0,max(day(stat_date))) else max(day(stat_date)) end )days  from  dj_smart_bi_merchant_static  where stat_date>=DATE_SUB(curdate(),INTERVAL 12 month) group by  concat(year(stat_date),month(stat_date)))t)  group by stat_date )t)a left join (select DATE_FORMAT(stat_date,'%Y-%m')thismonth,DATE_FORMAT(DATE_ADD(stat_date,INTERVAL 1 month),'%Y-%m') beforemonth,total_num beforemonthtotal,incre_num_thismonth beforemonthincre from (select stat_date,total_num,incre_num_thismonth from dj_smart_bi_merchant_static where stat_date  in (select concat(yearmonth,'-',days)stat_date from  (select concat(year(stat_date),'-',(case when month(stat_date)<10 then concat(0,month(stat_date))else month(stat_date) end)) yearmonth, (case when max(day(stat_date))<10 then concat(0,max(day(stat_date))) else max(day(stat_date)) end )days  from  dj_smart_bi_merchant_static  where stat_date>=DATE_SUB(curdate(),INTERVAL 13 month) group by  concat(year(stat_date),month(stat_date)))t)  group by stat_date  )t)b on a.thismonth=b.beforemonth order by a.thismonth
sql0345=select CONCAT_WS(',',province_first,province_second,province_third,province_fourth,province_fifth,province_other) province,CONCAT_WS(',',brand_first,brand_second,brand_third,brand_fourth,brand_fifth,brand_other) brand,CONCAT_WS(',',merchanttype_luxury,merchanttype_joint,merchanttype_newenergy,merchanttype_owned)merchanttype from dj_smart_bi_merchant_static where stat_date =(select max(stat_date)from dj_smart_bi_merchant_static)


sql06=select ifnull(smart_merchant_total,0)smart_merchant_total,ifnull(smart_merchant_incret,0)smart_merchant_incret,ifnull(smart_merchant_active,0)smart_merchant_active,ifnull(smart_merchant_retention,0)smart_merchant_retention,ifnull(smart_merchant_arrival,0)smart_merchant_arrival,ifnull(smart_merchant_repair,0)smart_merchant_repair,ifnull(smart_merchant_renewinsuranc,0)smart_merchant_renewinsuranc,ifnull(smart_merchant_arrival_output,0)smart_merchant_arrival_output,ifnull(smart_merchant_repair_output,0)smart_merchant_repair_output,ifnull(smart_merchant_reinsu_output,0)smart_merchant_reinsu_output from dj_smart_bi_SaasSubscriptionBusinessOverview where stat_date =(select max(stat_date) from dj_smart_bi_SaasSubscriptionBusinessOverview)
sql07=select ifnull(merchant_member_total,0)merchant_member_total,ifnull(merchant_member_incre,0)merchant_member_incre,ifnull(merchant_member_active,0)merchant_member_active, ifnull(merchant_member_retention,0)merchant_member_retention,ifnull(merchant_member_selfshop_equity,0)merchant_member_selfshop_equity,ifnull(merchant_member_digital_equity,0)merchant_member_digital_equity,ifnull(merchant_member_selfshop_output,0)merchant_member_selfshop_output,ifnull(merchant_member_digital_output,0)merchant_member_digital_output from dj_smart_bi_saassubscriptionbusinessoverview where stat_date =(select max(stat_date) from dj_smart_bi_SaasSubscriptionBusinessOverview)
sql08=select ifnull(smart_vehicle_manage_total,0)smart_vehicle_manage_total,ifnull(smart_vehicle_manage_incre,0)smart_vehicle_manage_incre,ifnull(smart_vehicle_manage_active,0)smart_vehicle_manage_active,ifnull(smart_vehicle_manage_retention,0)smart_vehicle_manage_retention,ifnull(smart_vehicle_manage_highrisk_point,0)smart_vehicle_manage_highrisk_point,ifnull(smart_vehicle_manage_highrisk_alarm,0)smart_vehicle_manage_highrisk_alarm,ifnull(smart_vehicle_manage_retrieve_loss,0)smart_vehicle_manage_retrieve_loss from dj_smart_bi_saassubscriptionbusinessoverview where stat_date =(select max(stat_date) from dj_smart_bi_SaasSubscriptionBusinessOverview)
sql09=select ifnull(total_num,0) totalnum,ifnull(incre_thisyear,0) increnum,ifnull(output_thismonth,0) output_value_thismonth,ifnull(output_thisyear,0) output_value_thisyear,ifnull(total_atv,0)total_atv ,ifnull(businesstype_equity,0)businesstype_equity ,ifnull(businesstype_membrane,0)businesstype_membrane,ifnull(businesstype_electronics,0)businesstype_electronics,ifnull(businesstype_equity/(businesstype_equity+businesstype_membrane+businesstype_electronics),0) businesstype_equity_rate,ifnull(businesstype_membrane/(businesstype_equity+businesstype_membrane+businesstype_electronics),0) businesstype_membrane_rate,ifnull(businesstype_electronics/(businesstype_equity+businesstype_membrane+businesstype_electronics),0) businesstype_electronics_rate from dj_smart_bi_saasvalueaddedtrans_static where stat_date=(select max(stat_date)from dj_smart_bi_saasvalueaddedtrans_static)




sql10=select distinct merchant_id,merchant_name,province,city from dj_smart_bi_saasvalueaddedtransfor  where 1=1  xxxxxxIncre and STAT_DATE=(SELECT MAX(STAT_DATE) FROM dj_smart_bi_SaasValueaddedTransfor)
sql11=select name_1_0 name1,ifnull(equity_mer_total,0) equitytotalnum,ifnull(equity_mer_incre_thisyear,0) equityincrenum,ifnull(equity_convers_rate,0) equityinversion_rate,ifnull(equity_atv,0) equitytotal_atv,ifnull(equity_output,0) equitytotaloutput,name_1_1 name2,ifnull(refined_mer_total,0) refinedtotalnum,ifnull(refined_mer_incre_thisyear,0) refinedincrenum,ifnull(refined_convers_rate,0) refinedinversion_rate,ifnull(refined_atv,0) refinedtotal_atv,ifnull(refined_output,0) refinedtotaloutput,name_1_2 name3,ifnull(online_mer_total,0) onlinetotalnum,ifnull(online_mer_incre_thisyear,0) onlineincrenum,ifnull(online_convers_rate,0) onlineinversion_rate,ifnull(online_atv,0) onlinetotal_atv,ifnull(online_output,0) onlinetotaloutput,name_1_3 name4,ifnull(crowdfunding_mer_total,0) crowdfundingtotalnum,ifnull(crowdfunding_mer_incre_thisyear,0) crowdfundingincrenum,ifnull(crowdfunding_convers_rate,0) crowdfundinginversion_rate,ifnull(crowdfunding_atv,0) crowdfundingtotal_atv,ifnull(crowdfunding_output,0) crowdfundingtotaloutput from dj_smart_bi_saasvalueaddedtrans_static  where stat_date=(select max(stat_date)from dj_smart_bi_saasvalueaddedtrans_static)
sql12=select COUNT(DISTINCT MERCHANT_ID)totalnum,count(distinct (case when year(incre_date)= year(curdate()) then MERCHANT_ID else null end)) increnum,sum(total_deal_customer)total_deal_customer,sum(output_value)/sum(total_deal_customer) atv,sum(output_value)output_value from dj_smart_bi_SaasValueaddedTransfor  WHERE STAT_DATE=(SELECT MAX(STAT_DATE) FROM dj_smart_bi_SaasValueaddedTransfor)   replacedxxxxxx  
sql12_2=select distinct province from dj_smart_bi_SaasValueaddedTransfor  WHERE STAT_DATE=(SELECT MAX(STAT_DATE) FROM dj_smart_bi_SaasValueaddedTransfor)    replacedxxxxxx



sql13_2=select ifnull(total_customer,0)total_customer,ifnull(incre_customer,0)incre_customer,ifnull(total_wechat,0)total_wechat,ifnull(incre_wechat,0)incre_wechat,ifnull(total_wechat_group,0)total_wechat_group,ifnull(incre_wechat_group,0)incre_wechat_group,ifnull(total_applet,0)total_applet,ifnull(incre_applet,0)incre_applet,ifnull(total_singlewechant,0)total_singlewechant,ifnull(incre_singlewechant,0)incre_singlewechant from dj_smart_bi_private    where stat_date=(select max(stat_date) from dj_smart_bi_private)
sql14_2=select stat_date,ifnull(total_customer,0)total_customer,ifnull(incre_customer,0)incre_customer,ifnull(total_wechat,0)total_wechat,ifnull(incre_wechat,0)incre_wechat,ifnull(total_wechat_group,0)total_wechat_group,ifnull(incre_wechat_group,0)incre_wechat_group,ifnull(total_applet,0)total_applet,ifnull(incre_applet,0)incre_applet,ifnull(total_singlewechant,0)total_singlewechant,ifnull(incre_singlewechant,0)incre_singlewechant from dj_smart_bi_private where stat_date  in (select concat(yearmonth,'-',days)stat_date from  (select concat(year(stat_date),'-',(case when month(stat_date)<10 then concat(0,month(stat_date))else month(stat_date) end)) yearmonth, (case when max(day(stat_date))<10 then concat(0,max(day(stat_date))) else max(day(stat_date)) end )days  from  dj_smart_bi_private  where stat_date>=DATE_SUB(curdate(),INTERVAL 12 month) group by  concat(year(stat_date),month(stat_date)))t) group by stat_date order  by stat_date
sql15_2=select  age_range_18to25,age_range_18to25/agetotal age_range_18to25_rate,age_range_26to30,age_range_26to30/agetotal age_range_26to30_rate,age_range_31to35,age_range_31to35/agetotal age_range_31to35_rate,age_range_36to40,age_range_36to40/agetotal age_range_36to40_rate,age_range_41to45,age_range_41to45/agetotal age_range_41to45_rate,age_range_46to50,age_range_46to50/agetotal age_range_46to50_rate,age_range_50up,age_range_50up/agetotal age_range_50up_rate,vehicle_price_10under,vehicle_price_10under/pricetotal vehicle_price_10under_rate,vehicle_price_10to20,vehicle_price_10to20/pricetotal vehicle_price_10to20_rate,vehicle_price_20to30,vehicle_price_20to30/pricetotal vehicle_price_20to30_rate,vehicle_price_30to40,vehicle_price_30to40/pricetotal vehicle_price_30to40_rate,vehicle_price_40to50,vehicle_price_40to50/pricetotal vehicle_price_40to50_rate,vehicle_price_50up,vehicle_price_50up/pricetotal vehicle_price_50up_rate,buycar_range_less1year,buycar_range_less1year/rangetotal buycar_range_less1year_rate,buycar_range_1yearto2year,buycar_range_1yearto2year/rangetotal buycar_range_1yearto2year_rate,buycar_range_2yearto3year,buycar_range_2yearto3year/rangetotal buycar_range_2yearto3year_rate,buycar_range_3yearto4year,buycar_range_3yearto4year/rangetotal buycar_range_3yearto4year_rate,buycar_range_4yearto5year,buycar_range_4yearto5year/rangetotal buycar_range_4yearto5year_rate,buycar_range_more5year,buycar_range_more5year/rangetotal buycar_range_more5year_rate,vehiclemilerange_less1,vehiclemilerange_less1/miletotal vehiclemilerange_less1_rate,vehiclemilerange_1to5,vehiclemilerange_1to5/miletotal vehiclemilerange_1to5_rate,vehiclemilerange_5to10,vehiclemilerange_5to10/miletotal vehiclemilerange_5to10_rate,vehiclemilerange_10up,vehiclemilerange_10up/miletotal vehiclemilerange_10up_rate from (select age_range_18to25+age_range_26to30+age_range_31to35+age_range_36to40+age_range_41to45+age_range_46to50+age_range_50up agetotal,vehicle_price_10under+vehicle_price_10to20+vehicle_price_20to30+vehicle_price_30to40+vehicle_price_40to50+vehicle_price_50up pricetotal,buycar_range_less1year+buycar_range_1yearto2year+buycar_range_2yearto3year+buycar_range_3yearto4year+buycar_range_4yearto5year+buycar_range_more5year rangetotal,vehiclemilerange_less1+vehiclemilerange_1to5+vehiclemilerange_5to10+vehiclemilerange_10up  miletotal,t.*from dj_smart_bi_private t    where stat_date=(select max(stat_date) from dj_smart_bi_private))t
sql16_2=select  aftersale_valuetype_major_val_num	,aftersale_valuetype_major_dev_num	,aftersale_valuetype_major_recall_num	,aftersale_valuetype_major_save_num	,aftersale_valuetype_gen_val_num	,aftersale_valuetype_gen_dev_num	,aftersale_valuetype_gen_recall_num	,aftersale_valuetype_gen_save_num	from dj_smart_bi_private where stat_date=(select max(stat_date) from dj_smart_bi_private)
sql1718=select provincexxxxxx province,brandxxxxxx brand from dj_smart_bi_private  where stat_date=(select max(stat_date) from dj_smart_bi_private)