@Component
public class SelectFieldPermInterceptor
extends com.baomidou.mybatisplus.extension.parser.JsqlParserSupport
implements com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
Constructor and Description |
---|
SelectFieldPermInterceptor() |
Modifier and Type | Method and Description |
---|---|
void |
beforeQuery(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameter,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql)
查询语句判断
|
protected boolean |
checkPermission()
判断是否需要进行数据权限控制
|
protected void |
processSelect(net.sf.jsqlparser.statement.select.Select select,
int index,
String sql,
Object obj)
查询处理
|
parserMulti, parserSingle, processDelete, processInsert, processParser, processUpdate
public void beforeQuery(org.apache.ibatis.executor.Executor executor, org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.session.ResultHandler resultHandler, org.apache.ibatis.mapping.BoundSql boundSql)
beforeQuery
in interface com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
protected void processSelect(net.sf.jsqlparser.statement.select.Select select, int index, String sql, Object obj)
processSelect
in class com.baomidou.mybatisplus.extension.parser.JsqlParserSupport
protected boolean checkPermission()
Copyright © 2023. All rights reserved.