Pre Merge pull request !78 from 零度/master
This commit is contained in:
commit
05a1d02345
|
|
@ -14,7 +14,7 @@ import com.ruoyi.system.api.model.LoginUser;
|
|||
|
||||
/**
|
||||
* 数据过滤处理
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@Aspect
|
||||
|
|
@ -76,7 +76,7 @@ public class DataScopeAspect
|
|||
|
||||
/**
|
||||
* 数据范围过滤
|
||||
*
|
||||
*
|
||||
* @param joinPoint 切点
|
||||
* @param user 用户
|
||||
* @param deptAlias 部门别名
|
||||
|
|
@ -119,7 +119,7 @@ public class DataScopeAspect
|
|||
else
|
||||
{
|
||||
// 数据权限为仅本人且没有userAlias别名不查询任何数据
|
||||
sqlString.append(" OR 1=0 ");
|
||||
sqlString.append(StringUtils.format(" OR {}.dept_id is null ",deptAlias));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue