积分抵扣问题

This commit is contained in:
wangw 2025-03-24 10:20:59 +08:00
parent e866456f82
commit 410a0bc7c1
1 changed files with 2 additions and 0 deletions

View File

@ -287,6 +287,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
if (param.getUserId() == null) {
throw new ValidateException("生成支付订单失败,请选择用户后再使用积分抵扣");
}
} else if (param.getPointsDiscountAmount().compareTo(BigDecimal.ZERO) > 0) {
throw new ValidateException("生成支付订单失败,已使用积分抵扣,积分数量不正确");
}
ShopUser shopUser = null;
if (param.getUserId() != null) {