Commit 5aed1617 by Joneq

增加银行数据的使用

parent e5346fcf
Showing with 4 additions and 4 deletions
......@@ -27,16 +27,16 @@ const (
"sum(unload_amount) unload_amount," + //出货总金额
"sum(insurance_user_count) insurance_user_count," + //社保参保人数
"sum(gross_profit) gross_profit " + //累计毛利
" from lie_basic_month where erp_company_code='%s' and month in(%s)" //基础数据
" from lie_basic_month_tolerance where erp_company_code='%s' and month in(%s)" //基础数据
bank_sql5 = "select sum(final_score) sum_dong_score from lie_scores where type=2 and com_credits_id=%d and month in(%s)"; //总计动态信用分
bank_sql6 = "select * from lie_basic_month 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 " +
"( " +
"SELECT " +
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month where erp_company_code = '%s' and MONTH in (%s)) my_rate, " +
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month where MONTH in (%s)) plat_rate " +
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month_tolerance where erp_company_code = '%s' and MONTH in (%s)) my_rate, " +
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month_tolerance where MONTH in (%s)) plat_rate " +
")t "
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment