bank_sql6="select * from lie_basic_month_tolerance where erp_company_code='%s' and month in(%s)"//获取详情
bank_sql6="select * from lie_basic_month_tolerance where erp_company_code='%s' and month in(%s)"//获取详情
bank_sql7="SELECT ((t.my_rate+1)/(t.plat_rate+1))-1 as delay_rate FROM "+
//平台逾期金额率
"( "+
bank_sql7="SELECT ( sum(delay_amount)/sum(receive_amount) ) as plat_rate from lie_basic_month where MONTH in (%s)"
"SELECT "+
//客户近6个月平均逾期金额率
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month_tolerance where erp_company_code = '%s' and MONTH in (%s)) my_rate, "+
bank_sql8="SELECT ( SELECT SUM(delay_amount) / SUM(receive_amount) FROM lie_basic_month_tolerance WHERE erp_company_code = '%s' AND MONTH IN (%s)) AS my_rate "
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month_tolerance where MONTH in (%s)) plat_rate "+
//平台完成账期订单金额
")t "
bank_sql10="SELECT (sum(receive_amount)) as success_money from lie_basic_month_tolerance where MONTH in (%s)"
//近6个月平台账期金额
bank_sql11="SELECT sum(receive_amount) as sum_money from lie_basic_month_tolerance where MONTH in (%s)"