|
|
@@ -76,7 +76,7 @@ public class VipFrontServiceImpl implements VipFrontService {
|
|
|
//会员规格
|
|
|
Set<Long> goodsIds = goodsDonSkuMapper.selectList(Wrappers.lambdaQuery(GoodsDonSku.class)
|
|
|
.in(GoodsDonSku::getId, vipSkuIds)).stream().map(GoodsDonSku::getGoodsId).collect(Collectors.toSet());
|
|
|
- Number count = beanSearcher.searchCount(GroupsRelationView.class, MapUtils.builder().field(GroupsRelationView::getUserId, userIdList).op(Operator.InList).field(GroupsRelationView::getGoodsId, goodsIds).op(Operator.InList).field(GroupsRelationView::getExpiryTime, now).op(Operator.GreaterThan).build());
|
|
|
+ Number count = beanSearcher.searchCount(GroupsRelationView.class, MapUtils.builder().field(GroupsRelationView::getUserId, userIdList).op(Operator.InList).field(GroupsRelationView::getGoodsId, goodsIds).op(Operator.InList).field(GroupsRelationView::getIsMirror, Boolean.TRUE).field(GroupsRelationView::getExpiryTime, now).op(Operator.GreaterThan).build());
|
|
|
//可抵扣车票
|
|
|
if (count.intValue() > 0) {
|
|
|
Integer months = vipUserPageResp.getMonths();
|
|
|
@@ -137,6 +137,7 @@ public class VipFrontServiceImpl implements VipFrontService {
|
|
|
BigDecimal vipMoney = getVipMoney(months);
|
|
|
List<GroupsRelationView> relations = beanSearcher.searchAll(GroupsRelationView.class, MapUtils.builder()
|
|
|
.field(GroupsRelationView::getGoodsId, goodsIds).op(Operator.InList)
|
|
|
+ .field(GroupsRelationView::getIsMirror, Boolean.TRUE)
|
|
|
.field(GroupsRelationView::getUserId, userIdList).op(Operator.InList)
|
|
|
.field(GroupsRelationView::getIsVip, false)
|
|
|
.field(GroupsRelationView::getExpiryTime, DateTime.now()).op(Operator.GreaterThan)
|