| | |
| | | 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 = Constants.translateMoney(basePrice).doubleValue()+"元畅骑一整天"; |
| | | }else { |
| | | title = "规则:起步"; |
| | | title = "起步"; |
| | | int time = baseTime / 60; |
| | | int min = baseTime % 60; |
| | | if(time > 0){ |
| | |
| | | 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); |