|
@@ -141,6 +141,12 @@ public class DataScopeAspect
|
|
|
conditions.add(dataScope);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ if (StringUtils.isEmpty(conditions))
|
|
|
+ {
|
|
|
+ sqlString.append(StringUtils.format(" OR {}.dept_id = 0 ", deptAlias));
|
|
|
+ }
|
|
|
+
|
|
|
if (StringUtils.isNotBlank(sqlString.toString()))
|
|
|
{
|
|
|
Object params = joinPoint.getArgs()[0];
|