订单金额 打印优化
This commit is contained in:
parent
73b56e7513
commit
0dbb0bf821
|
|
@ -535,9 +535,14 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||||
newTotalAmount = BigDecimal.ZERO;
|
newTotalAmount = BigDecimal.ZERO;
|
||||||
}
|
}
|
||||||
if (newTotalAmount.compareTo(param.getOrderAmount()) != 0) {
|
if (newTotalAmount.compareTo(param.getOrderAmount()) != 0) {
|
||||||
log.info("支付计算金额不正确,订单Id:{},支付计算金额为:{},打包费:{},餐位费:{},折扣金额:{},积分抵扣金额:{},抹零金额:{}",
|
log.info("""
|
||||||
orderInfo.getId(), newTotalAmount, packAmount.getPrice(), orderInfo.getSeatAmount(),
|
支付计算金额不正确,订单Id:{},支付计算金额为:{},商品总金额:{},打包费:{},餐位费:{},
|
||||||
param.getDiscountAmount(), param.getPointsDiscountAmount(), param.getRoundAmount());
|
传递支付金额为:{},商品券:{},其它券:{},新客立减:{},满减活动:{},
|
||||||
|
商家最终改价:{},积分抵扣金额:{},抹零金额:{}
|
||||||
|
""",
|
||||||
|
orderInfo.getId(), newTotalAmount, totalAmount.getPrice(), packAmount.getPrice(), orderInfo.getSeatAmount(),
|
||||||
|
param.getOrderAmount(), param.getProductCouponDiscountAmount(), param.getOtherCouponDiscountAmount(), param.getNewCustomerDiscountAmount(),
|
||||||
|
discountActAmount, param.getDiscountAmount(), param.getPointsDiscountAmount(), param.getRoundAmount());
|
||||||
throw new ValidateException("生成支付订单失败,支付金额不正确");
|
throw new ValidateException("生成支付订单失败,支付金额不正确");
|
||||||
}
|
}
|
||||||
orderInfo.setPackFee(packAmount.getPrice());
|
orderInfo.setPackFee(packAmount.getPrice());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue