会员价 判空
This commit is contained in:
parent
fa868f6414
commit
4b08359ddd
|
|
@ -401,7 +401,8 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
|
|||
orderInfo.setUserId(userInfo.getId());
|
||||
}
|
||||
//会员价校验
|
||||
if (param.isVipPrice() && (shopUser == null || shopUser.getIsMemberPrice() == 0 || shopUser.getIsVip().equals(0))) {
|
||||
if (param.isVipPrice() && (shopUser == null || shopUser.getIsMemberPrice() == null
|
||||
|| shopUser.getIsMemberPrice() == 0 || shopUser.getIsVip().equals(0))) {
|
||||
throw new ValidateException("生成支付订单失败,仅会员可使用会员价");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue