Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 Shiro 实现每个数据库行权限系统?假设我在一个表中有 10000 条记录,而某些用户只能看到 1000 条记录......只将这些记录返回给用户的最佳方法是什么?这是Shiro“用例”还是我完全走错了路?谢谢
这似乎是连接表的情况。
USER_RECORD 表:USER_ID | RECORD_ID
select record_id, record_field_1, record_field_2, ... from record r, user u, user_record ur where ur.user_id = u.user_id and ur.record_id = r.record_id and u.user_id = :userId