fix:添加注释【未登录,则不过滤数据(防止租户未登录 查询数据异常)】 org.dromara.common.mybatis.handler.PlusDataPermissionHandler.getSqlSegment

This commit is contained in:
insist 2024-12-21 16:32:22 +08:00
parent c526248465
commit 4eba0ee576

View File

@ -87,6 +87,7 @@ public class PlusDataPermissionHandler {
* @return 数据过滤条件的 SQL 片段
*/
public Expression getSqlSegment(Expression where, String mappedStatementId, boolean isSelect) {
// 未登录则不过滤数据防止租户未登录 查询数据异常
if (!StpUtil.isLogin()) {
return where;
}