Compare commits
5 Commits
24450664b1
...
349f74140f
| Author | SHA1 | Date |
|---|---|---|
|
|
349f74140f | |
|
|
4ca9f67d08 | |
|
|
2a12a7f2fa | |
|
|
c6d740cc26 | |
|
|
68ad7921f8 |
|
|
@ -472,8 +472,30 @@ public class Orders implements Serializable {
|
|||
|
||||
private String startRemark;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 选择技师后,计算完技师加成后的价格
|
||||
*/
|
||||
private BigDecimal priceMarkup;
|
||||
/**
|
||||
* 原技师加成后的价格
|
||||
*/
|
||||
private BigDecimal oldPriceMarkup;
|
||||
/**
|
||||
* 技师加成金额
|
||||
*/
|
||||
private BigDecimal technicianMoney;
|
||||
/**
|
||||
* 原技师加成金额
|
||||
*/
|
||||
private BigDecimal oldTechnicianMoney;
|
||||
/**
|
||||
* VIP减免价格
|
||||
*/
|
||||
private BigDecimal vipReductionMoney;
|
||||
/**
|
||||
* 原VIP减免价格
|
||||
*/
|
||||
private BigDecimal oldVipReductionMoney;
|
||||
|
||||
@TableField(exist = false)
|
||||
private List<OrdersMassage> ordersMassageList;
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -279,7 +279,9 @@ public class TravelConfServiceImpl extends ServiceImpl<TravelConfDao, TravelConf
|
|||
// fixedPrice = NumberUtil.mul(fixedPrice, 2);
|
||||
// }
|
||||
//最终价格
|
||||
vo.setTravelPrice(NumberUtil.decimalFormat("0.00", fixedPrice));
|
||||
// vo.setTravelPrice(NumberUtil.decimalFormat("0", fixedPrice));
|
||||
fixedPrice = fixedPrice.setScale(0,BigDecimal.ROUND_UP);
|
||||
vo.setTravelPrice(fixedPrice.toString());
|
||||
}else if(TravelEnum.PricingType.TRENDS.getValue().equals(pricingType)){
|
||||
//动态的
|
||||
BigDecimal nightTravelExpenses = new BigDecimal("0");//白天
|
||||
|
|
@ -298,7 +300,9 @@ public class TravelConfServiceImpl extends ServiceImpl<TravelConfDao, TravelConf
|
|||
//最终价格
|
||||
//计算公式为【起步价 + 夜间出行费 + ((公里数 -起步公里数 - 免费公里数) * 每公里价格)= 最终价格】
|
||||
BigDecimal travelPrice = NumberUtil.add(startingPrice, nightTravelExpenses, NumberUtil.mul(NumberUtil.sub(NumberUtil.sub(kilometerNum,startKilometers), freeKilometers), pricePerKilometer));
|
||||
vo.setTravelPrice(NumberUtil.decimalFormat("0.00", travelPrice));
|
||||
// vo.setTravelPrice(NumberUtil.decimalFormat("0.00", travelPrice));
|
||||
travelPrice = travelPrice.setScale(0,BigDecimal.ROUND_UP);
|
||||
vo.setTravelPrice(travelPrice.toString());
|
||||
}
|
||||
return vo;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue