Merge remote-tracking branch 'origin/prod' into prod

This commit is contained in:
张松 2025-03-25 00:29:44 +08:00
commit 9696b0edc3
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
log.info("支付计算金额不正确:商品券抵扣金额为:{},传递为:{}", prodCouponAmount.getPrice(), param.getProductCouponDiscountAmount());
throw new ValidateException("生成支付订单失败,商品优惠券优惠金额不正确");
}
orderInfo.setOriginAmount(totalAmount.getPrice().add(packAmount.getPrice()).add(orderInfo.getSeatAmount()));
// orderInfo.setOriginAmount(totalAmount.getPrice().add(packAmount.getPrice()).add(orderInfo.getSeatAmount()));
orderInfo.setOriginAmount(param.getOriginAmount());
BigDecimal newTotalAmount = totalAmount.getPrice();
//折扣金额 9折 计算 订单金额*0.9 向上取整
if (param.getDiscountRatio().compareTo(BigDecimal.ZERO) > 0) {