| | |
| | | double estimateMileage = (null == orderPrivateCar.getEstimateMileage() ? 0D : orderPrivateCar.getEstimateMileage()); |
| | | System.out.println("预估里程数"+estimateMileage); |
| | | //在价格区间按照一口价算,不在区间按实时价格算 |
| | | if(d<estimateMileage+contentPrice.getDouble("exceedMileageInner")*1000 && d>estimateMileage-contentPrice.getDouble("belowMileageInner")*1000){ |
| | | double exceedMileageInner = Optional.ofNullable(query1.get("exceedMileageInner")).map(Object::toString).map(Double::parseDouble).orElse(0d); |
| | | double belowMileageInner = Optional.ofNullable(query1.get("belowMileageInner")).map(Object::toString).map(Double::parseDouble).orElse(0d); |
| | | if(d<estimateMileage+exceedMileageInner*1000 && d>estimateMileage-belowMileageInner*1000) { |
| | | System.out.println("在区间==============="); |
| | | orderPrivateCar = calculationPrice(orderPrivateCar,contentPrice,jsonObject.getLongValue("num1"),jsonObject.getDouble("num2"),parkingFee,crossingFee); |
| | | System.out.println("返回订单数据"+orderPrivateCar); |
| | |
| | | contentNotThree as contentNotThree, |
| | | contentExclusive as contentExclusive, |
| | | contentPrice as contentPrice, |
| | | isOpen as isOpen |
| | | isOpen as isOpen, |
| | | exceedMileageInner as exceedMileageInner, |
| | | exceedMileageOut as exceedMileageOut, |
| | | belowMileageOut as belowMileageOut, |
| | | belowMileageInner as belowMileageInner |
| | | from t_system_price where state = 1 and systemPriceCityId = #{systemPriceCityId} |
| | | <if test="null != type"> |
| | | and `type` = #{type} |
| | |
| | | return serverCarModelWarpper; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 专车费用计算 |
| | | */ |