升级单差价加成计算

This commit is contained in:
曹磊 2024-07-17 15:05:01 +08:00
parent e08c0cf431
commit 03a819189d
1 changed files with 4 additions and 2 deletions

View File

@ -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);
//项目价格 = 会员金额