优化代码

This commit is contained in:
RuoYi
2024-06-27 16:44:51 +08:00
parent 447542656a
commit e9550ab5bd
5 changed files with 12 additions and 12 deletions

View File

@ -150,7 +150,7 @@ public class DataScopeAspect
conditions.add(dataScope);
}
// 多角色情况下,所有角色都不包含传递过来的权限字符这个时候sqlString也会为空所以要限制一下,不查询任何数据
// 角色都不包含传递过来的权限字符这个时候sqlString也会为空所以要限制一下,不查询任何数据
if (StringUtils.isEmpty(conditions))
{
sqlString.append(StringUtils.format(" OR {}.dept_id = 0 ", deptAlias));