数据权限为仅本人且没有userAlias别名不查询任何数据

pull/108/head
RuoYi 2019-07-17 20:51:28 +08:00
parent dcd6f2252f
commit d9d63cc09d
1 changed files with 2 additions and 1 deletions

View File

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