修改3-18问题

This commit is contained in:
2023-03-21 13:35:42 +08:00
parent 1bbb4a183f
commit f7ba13eed9
2 changed files with 5 additions and 4 deletions

View File

@@ -2196,10 +2196,10 @@ public class OmsOrderServiceImpl extends ServiceImpl<OmsOrderMapper, OmsOrder> i
//总金额+运费-促销优惠-优惠券优惠-积分抵扣
BigDecimal payAmount = order.getTotalAmount()
.add(order.getFreightAmount())
.subtract(order.getPromotionAmount())
/*.subtract(order.getPromotionAmount())*/
.subtract(order.getCouponAmount())
.subtract(order.getIntegrationAmount())
.subtract(order.getVipAmount());
/*.subtract(order.getIntegrationAmount())*/;
// .subtract(order.getVipAmount());
return payAmount;
}