use of com.albedo.java.plugins.database.mybatis.datascope.DataScopeInterceptor in project albedo by somowhere.
the class AuthorityMybatisAutoConfiguration method getPaginationBeforeInnerInterceptor.
/**
* 数据权限插件
*
* @return 数据权限插件
*/
@Override
protected List<InnerInterceptor> getPaginationBeforeInnerInterceptor() {
List<InnerInterceptor> list = new ArrayList<>();
Boolean isDataScope = databaseProperties.getIsDataScope();
if (isDataScope) {
list.add(new OptimisticLockerInnerInterceptor());
list.add(new DataScopeInterceptor());
}
return list;
}
Aggregations