升级单差价加成计算
This commit is contained in:
parent
e08c0cf431
commit
03a819189d
|
@ -1521,9 +1521,11 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
|||
chajiaTechnicianMoney = chajiaTechnicianMoney.setScale(0,BigDecimal.ROUND_UP);
|
||||
orders.setTechnicianMoney(chajiaTechnicianMoney);
|
||||
|
||||
BigDecimal chajiaVipMoney = chajiaTechnicianMoney.multiply(orders.getVipRate()).divide(new BigDecimal(100));
|
||||
BigDecimal chajiaPriceMarkup = chajiaTechnicianMoney.add(chajia);
|
||||
|
||||
BigDecimal chajiaVipMoney = chajiaPriceMarkup.multiply(orders.getVipRate()).divide(new BigDecimal(100));
|
||||
chajiaVipMoney = chajiaVipMoney.setScale(0,BigDecimal.ROUND_UP);
|
||||
BigDecimal chajiaVipReductionMoney = chajiaTechnicianMoney.subtract(chajiaVipMoney);
|
||||
BigDecimal chajiaVipReductionMoney = chajiaPriceMarkup.subtract(chajiaVipMoney);
|
||||
orders.setVipReductionMoney(chajiaVipReductionMoney);
|
||||
|
||||
//项目价格 = 会员金额
|
||||
|
|
Loading…
Reference in New Issue