新客立减 0的情况
This commit is contained in:
@@ -968,7 +968,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
||||
}
|
||||
} else {
|
||||
//新客立减
|
||||
if (orderInfo.getNewCustomerDiscountAmount() != null) {
|
||||
if (orderInfo.getNewCustomerDiscountAmount() != null && orderInfo.getNewCustomerDiscountAmount().compareTo(BigDecimal.ZERO) > 0) {
|
||||
newConsumerDiscountRecordService.useDiscount(shopUser.getId(), orderInfo.getId(), orderInfo.getNewCustomerDiscountAmount());
|
||||
}
|
||||
//积分使用
|
||||
|
||||
Reference in New Issue
Block a user