Merge remote-tracking branch 'origin/prod' into prod
This commit is contained in:
@@ -325,7 +325,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||||||
log.info("支付计算金额不正确:商品券抵扣金额为:{},传递为:{}", prodCouponAmount.getPrice(), param.getProductCouponDiscountAmount());
|
log.info("支付计算金额不正确:商品券抵扣金额为:{},传递为:{}", prodCouponAmount.getPrice(), param.getProductCouponDiscountAmount());
|
||||||
throw new ValidateException("生成支付订单失败,商品优惠券优惠金额不正确");
|
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();
|
BigDecimal newTotalAmount = totalAmount.getPrice();
|
||||||
//折扣金额 如 9折 计算 为 订单金额*0.9 向上取整
|
//折扣金额 如 9折 计算 为 订单金额*0.9 向上取整
|
||||||
if (param.getDiscountRatio().compareTo(BigDecimal.ZERO) > 0) {
|
if (param.getDiscountRatio().compareTo(BigDecimal.ZERO) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user