|
|
@ -14,7 +14,7 @@ import com.ruoyi.system.api.model.LoginUser;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 数据过滤处理
|
|
|
|
* 数据过滤处理
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author ruoyi
|
|
|
|
* @author ruoyi
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Aspect
|
|
|
|
@Aspect
|
|
|
@ -76,7 +76,7 @@ public class DataScopeAspect
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 数据范围过滤
|
|
|
|
* 数据范围过滤
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param joinPoint 切点
|
|
|
|
* @param joinPoint 切点
|
|
|
|
* @param user 用户
|
|
|
|
* @param user 用户
|
|
|
|
* @param deptAlias 部门别名
|
|
|
|
* @param deptAlias 部门别名
|
|
|
@ -119,7 +119,7 @@ public class DataScopeAspect
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// 数据权限为仅本人且没有userAlias别名不查询任何数据
|
|
|
|
// 数据权限为仅本人且没有userAlias别名不查询任何数据
|
|
|
|
sqlString.append(" OR 1=0 ");
|
|
|
|
sqlString.append(StringUtils.format(" OR {}.dept_id is null ",deptAlias));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|