| | |
| | | return pricingDetail.getId(); |
| | | } |
| | | |
| | | private String getRoleNameByParam(BigDecimal basePrice, Integer baseTime, BigDecimal unitPrice, Integer unitTime) { |
| | | public static String getRoleNameByParam(BigDecimal basePrice, Integer baseTime, BigDecimal unitPrice, Integer unitTime) { |
| | | String title = ""; |
| | | if(baseTime < 0){ |
| | | title = "规则:"+Constants.translateMoney(basePrice).doubleValue()+"元畅骑一整天"; |
| | |
| | | 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); |