优化druid开启wall过滤器出现的异常问题

This commit is contained in:
RuoYi 2022-06-13 21:43:31 +08:00
parent eab1b450d5
commit 8fd4ae1282
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ public class DataScopeAspect
else
{
// 数据权限为仅本人且没有userAlias别名不查询任何数据
sqlString.append(" OR 1=0 ");
sqlString.append(StringUtils.format(" OR {}.dept_id = 0 ", deptAlias));
}
}
}