|  |  |  | 
|---|
|  |  |  | public static  String getRoleNameByParam(BigDecimal basePrice, Integer baseTime, BigDecimal unitPrice, Integer unitTime) { | 
|---|
|  |  |  | String title = "计费规则:"; | 
|---|
|  |  |  | if(baseTime < 0){ | 
|---|
|  |  |  | title = basePrice.doubleValue()+"元畅骑一整天"; | 
|---|
|  |  |  | title = (basePrice.divide(new BigDecimal(100))).doubleValue()+"元畅骑一整天"; | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | title = "起步"; | 
|---|
|  |  |  | int time = baseTime / 60; | 
|---|
|  |  |  | 
|---|
|  |  |  | if(min >0){ | 
|---|
|  |  |  | title += min+"分钟"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | title += Constants.translateMoney(unitPrice).doubleValue() | 
|---|
|  |  |  | +"元,超过后"+basePrice.doubleValue()+"元/" | 
|---|
|  |  |  | title += basePrice.doubleValue() | 
|---|
|  |  |  | +"元,超过后"+unitPrice.doubleValue()+"元/" | 
|---|
|  |  |  | +unitTime+"分钟"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return  title; | 
|---|