This commit is contained in:
wulixaing
2021-04-09 09:02:35 +08:00
parent 286bedaa40
commit cdbb841f5e
2 changed files with 2 additions and 2 deletions

View File

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