optimized code

This commit is contained in:
RuoYi
2022-06-13 20:57:03 +08:00
parent 5fd16ff806
commit 570d468814
6 changed files with 66 additions and 72 deletions

View File

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