fix 实现权限组拦截-兼容旧数据

This commit is contained in:
bwcx_jzy 2022-08-07 19:00:20 +08:00
parent 16792df9af
commit d20b59c62e
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5

View File

@ -182,6 +182,8 @@ public class UserBindWorkspaceService extends BaseDbService<UserBindWorkspaceMod
list = list.stream() list = list.stream()
.map(s -> UserBindWorkspaceModel.getId(s, workspaceId)) .map(s -> UserBindWorkspaceModel.getId(s, workspaceId))
.collect(Collectors.toList()); .collect(Collectors.toList());
// 兼容旧数据
list.add(UserBindWorkspaceModel.getId(userModel.getId(), workspaceId));
return this.getByKey(list); return this.getByKey(list);
} }