|
|
@@ -1049,11 +1049,20 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (renewalView == null) {
|
|
|
throw BusinessRuntimeException.getInstance("车票不存在");
|
|
|
}
|
|
|
+ AccountView accountView = new AccountView();
|
|
|
+ //奈飞超过3帐车票不给看
|
|
|
+ Number number = beanSearcher.searchCount(RenewalView.class, MapUtils.builder()
|
|
|
+ .field(RenewalView::getUserId, userIdList).op(Operator.InList)
|
|
|
+ .field(RenewalView::getGoodsId, 1)
|
|
|
+ .field(RenewalView::getExpiryTime, DateTime.now()).op(Operator.GreaterThan)
|
|
|
+ .build());
|
|
|
+ if (number.intValue() > 2) {
|
|
|
+ return accountView;
|
|
|
+ }
|
|
|
NetflixTempAccountUser netflixTempAccountUser = netflixTempAccountUserMapper.selectOne(Wrappers.lambdaQuery(NetflixTempAccountUser.class)
|
|
|
.eq(NetflixTempAccountUser::getRelationId, relationId)
|
|
|
.in(NetflixTempAccountUser::getUserId, userIdList)
|
|
|
.last("limit 1"));
|
|
|
- AccountView accountView = new AccountView();
|
|
|
Account account;
|
|
|
if (netflixTempAccountUser == null) {
|
|
|
account = accountMapper.selectNetflixTempAccount();
|