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