|
|
@@ -267,6 +267,8 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
ticket.setGptUserLimitNum(userInfo.getLimitNum());
|
|
|
ticket.setGptUserLimitTime(userInfo.getLimitTime());
|
|
|
ticket.setUse(userInfo.getUse());
|
|
|
+ Integer count = upgradePackageMapper.selectCount(Wrappers.lambdaQuery(UpgradePackage.class).apply("JSON_CONTAINS(sku_ids,'\"" + ticket.getSkuId() + "\"')").eq(UpgradePackage::getStatus, Boolean.TRUE));
|
|
|
+ ticket.setUpgrade(count > 0 ? true : false);
|
|
|
}
|
|
|
List<GroupsRelationUserView> relationUserViews = groupsRelationMapper.getUserRelationUserViews(ticket.getGroupId(), ticket.getRelationId(), ticket.getUserId(), List.of(GroupsRelation.Status.validity, GroupsRelation.Status.outside));
|
|
|
ticket.setRelationViews(relationUserViews);
|