金额问题

This commit is contained in:
2025-10-09 19:29:08 +08:00
parent 5054534e01
commit ad14b7ec56

View File

@@ -476,7 +476,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
}
//折扣金额
if (param.getDiscountAmount().compareTo(BigDecimal.ZERO) > 0) {
newTotalAmount = totalAmount.getPrice().subtract(param.getDiscountAmount());
newTotalAmount = newTotalAmount.subtract(param.getDiscountAmount());
}
//积分抵扣 金额范围校验 抵扣金额校验
if (param.getPointsNum() > 0) {