|  |  |  | 
|---|
|  |  |  | return pricingDetail.getId(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private  String getRoleNameByParam(BigDecimal basePrice, Integer baseTime, BigDecimal unitPrice, Integer unitTime) { | 
|---|
|  |  |  | String title = ""; | 
|---|
|  |  |  | public static  String getRoleNameByParam(BigDecimal basePrice, Integer baseTime, BigDecimal unitPrice, Integer unitTime) { | 
|---|
|  |  |  | String title = "计费规则:"; | 
|---|
|  |  |  | if(baseTime < 0){ | 
|---|
|  |  |  | title = "规则:"+Constants.translateMoney(basePrice).doubleValue()+"元畅骑一整天"; | 
|---|
|  |  |  | title = (basePrice.divide(new BigDecimal(100))).doubleValue()+"元畅骑一整天"; | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | title = "规则:起步"; | 
|---|
|  |  |  | title = "起步"; | 
|---|
|  |  |  | int time = baseTime / 60; | 
|---|
|  |  |  | int min = baseTime % 60; | 
|---|
|  |  |  | if(time > 0){ | 
|---|
|  |  |  | 
|---|
|  |  |  | if(min >0){ | 
|---|
|  |  |  | title += min+"分钟"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | title = Constants.translateMoney(unitPrice).doubleValue() | 
|---|
|  |  |  | +"元,超过后"+Constants.translateMoney(basePrice).doubleValue()+"元/" | 
|---|
|  |  |  | title += basePrice.doubleValue() | 
|---|
|  |  |  | +"元,超过后"+unitPrice.doubleValue()+"元/" | 
|---|
|  |  |  | +unitTime+"分钟"; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return  title; | 
|---|
|  |  |  | 
|---|
|  |  |  | put.setBikeTypeId(s.getId()); | 
|---|
|  |  |  | put.setPricePramId(pricingDetail.getPricePramId()); | 
|---|
|  |  |  | put.setBikeTypeName(s.getName()); | 
|---|
|  |  |  | put.setSortnum(s.getSortnum()); | 
|---|
|  |  |  | put.setBasePrice(Objects.nonNull(put.getBasePrice()) ? Constants.translateMoney(put.getBasePrice()) : null); | 
|---|
|  |  |  | put.setHolidayBasePrice(Objects.nonNull(put.getHolidayBasePrice()) ? Constants.translateMoney(put.getHolidayBasePrice()):null); | 
|---|
|  |  |  | put.setUnitPrice(Objects.nonNull(put.getUnitPrice()) ? Constants.translateMoney(put.getUnitPrice()):null); | 
|---|