|
|
@@ -1372,11 +1372,11 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void getVipMirrorTicketIfEmpty(long userId, Long skuId) {
|
|
|
+ public Boolean getVipMirrorTicketIfEmpty(long userId, Long skuId) {
|
|
|
Integer selectCount = vipGoodsSkuMapper.selectCount(Wrappers.lambdaQuery(VipGoodsSku.class)
|
|
|
.eq(VipGoodsSku::getSkuId, skuId));
|
|
|
if (selectCount == 0) {
|
|
|
- return;
|
|
|
+ return false;
|
|
|
}
|
|
|
List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
VipUser vipUser = vipUserMapper.selectOne(Wrappers.lambdaQuery(VipUser.class)
|
|
|
@@ -1385,7 +1385,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
.last("limit 1"));
|
|
|
//不是会员 或已到期
|
|
|
if (vipUser == null) {
|
|
|
- return;
|
|
|
+ return false;
|
|
|
}
|
|
|
Number number = beanSearcher.searchCount(GroupsRelationView.class, MapUtils.builder()
|
|
|
.field(GroupsRelationView::getUserId, userIdList).op(Operator.InList)
|
|
|
@@ -1399,7 +1399,9 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
.set(GroupsRelation::getExpiryTime, vipUser.getExpiryTime())
|
|
|
.eq(GroupsRelation::getUserId, vipUser.getUserId())
|
|
|
.eq(GroupsRelation::getId, relationId));
|
|
|
+ return true;
|
|
|
}
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
private DistributePosterGoodsDetailView setGoodsPoster(RenewalView ticket, User user, List<Long> userIds) {
|