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

pull/393/head
RuoYi 2022-06-13 21:21:28 +08:00
parent 5c5961f1b4
commit d1b3f4f397
1 changed files with 1 additions and 1 deletions

View File

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