正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -118,7 +118,7 @@ public class DataScopeAspect | @@ -118,7 +118,7 @@ public class DataScopeAspect | ||
| 118 | else | 118 | else |
| 119 | { | 119 | { |
| 120 | // 数据权限为仅本人且没有userAlias别名不查询任何数据 | 120 | // 数据权限为仅本人且没有userAlias别名不查询任何数据 |
| 121 | - sqlString.append(" OR 1=0 "); | 121 | + sqlString.append(StringUtils.format(" OR {}.dept_id = 0 ", deptAlias)); |
| 122 | } | 122 | } |
| 123 | } | 123 | } |
| 124 | } | 124 | } |
-
请 注册 或 登录 后发表评论