|
|
@@ -207,9 +207,10 @@ public class CmsVipOrderServiceImpl implements CmsVipOrderService {
|
|
|
throw BusinessRuntimeException.getInstance("订单状态异常");
|
|
|
}
|
|
|
Long userId = orderDon.getUserId();
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
//会员是否已过期
|
|
|
VipUser vipUser = vipUserMapper.selectOne(Wrappers.lambdaQuery(VipUser.class)
|
|
|
- .eq(VipUser::getUserId, userId)
|
|
|
+ .in(VipUser::getUserId, userIdList)
|
|
|
.gt(VipUser::getExpiryTime, DateTime.now())
|
|
|
.last("limit 1"));
|
|
|
if (vipUser == null) {
|