zoujiajian %!s(int64=3) %!d(string=hai) anos
pai
achega
46f756a214

+ 3 - 1
netflix-web/src/main/java/com/cyksj/web/controller/group/GroupRelationController.java

@@ -110,7 +110,9 @@ public class GroupRelationController {
     @GetMapping("/recordView/{relationId}")
     public Result<String> recordGPTPwdView(@PathVariable Long relationId) {
         long userId = StpUserUtil.getLoginIdAsLong();
-        GroupsRelationView groupsRelationView = beanSearcher.searchFirst(GroupsRelationView.class, MapUtils.builder().field(GroupsRelationView::getUserId, userId)
+        List<Long> userIds = userService.getRelationUserIdList(userId, null);
+        GroupsRelationView groupsRelationView = beanSearcher.searchFirst(GroupsRelationView.class, MapUtils.builder()
+                .field(GroupsRelationView::getUserId, userIds).op(Operator.InList)
                 .field(GroupsRelationView::getId, relationId).build());
         if (groupRelationFrontService == null) throw BusinessRuntimeException.getInstance("车票已不存在");
         ChatGptPwdViewRecord viewRecord = new ChatGptPwdViewRecord();