mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-19 01:48:47 +08:00
fix:添加注释【未登录,则不过滤数据(防止租户未登录 查询数据异常)】 org.dromara.common.mybatis.handler.PlusDataPermissionHandler.getSqlSegment
This commit is contained in:
parent
c526248465
commit
4eba0ee576
@ -87,6 +87,7 @@ public class PlusDataPermissionHandler {
|
|||||||
* @return 数据过滤条件的 SQL 片段
|
* @return 数据过滤条件的 SQL 片段
|
||||||
*/
|
*/
|
||||||
public Expression getSqlSegment(Expression where, String mappedStatementId, boolean isSelect) {
|
public Expression getSqlSegment(Expression where, String mappedStatementId, boolean isSelect) {
|
||||||
|
// 未登录,则不过滤数据(防止租户未登录 查询数据异常)
|
||||||
if (!StpUtil.isLogin()) {
|
if (!StpUtil.isLogin()) {
|
||||||
return where;
|
return where;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user