新客立减 0的情况

This commit is contained in:
2025-09-28 17:41:27 +08:00
parent 629cb43741
commit c34a1d1f88

View File

@@ -968,7 +968,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
} }
} else { } else {
//新客立减 //新客立减
if (orderInfo.getNewCustomerDiscountAmount() != null) { if (orderInfo.getNewCustomerDiscountAmount() != null && orderInfo.getNewCustomerDiscountAmount().compareTo(BigDecimal.ZERO) > 0) {
newConsumerDiscountRecordService.useDiscount(shopUser.getId(), orderInfo.getId(), orderInfo.getNewCustomerDiscountAmount()); newConsumerDiscountRecordService.useDiscount(shopUser.getId(), orderInfo.getId(), orderInfo.getNewCustomerDiscountAmount());
} }
//积分使用 //积分使用