修改shiro拦截器问题
This commit is contained in:
@@ -46,15 +46,14 @@ public class RequestSearchPlugin implements Interceptor {
|
||||
|
||||
@Override
|
||||
public Object intercept(Invocation invocation) throws Throwable {
|
||||
Method method = invocation.getMethod();
|
||||
logger.info("method is " + method.getName());
|
||||
if ("findByAccount".equals(method.getName())){
|
||||
return invocation.proceed();
|
||||
}
|
||||
// 准备参数
|
||||
Executor executor = (Executor) invocation.getTarget();
|
||||
Object[] args = invocation.getArgs();
|
||||
MappedStatement ms = (MappedStatement) args[0];
|
||||
logger.info("query by intercept Id is {}",ms.getId());
|
||||
if ("com.ydd.oms.mapper.sys.AdminMapper.findByAccount".equals(ms.getId())){
|
||||
return invocation.proceed();
|
||||
}
|
||||
Object parameter = args[1];
|
||||
BoundSql boundSql;
|
||||
//由于逻辑关系,只会进入一次
|
||||
|
||||
Reference in New Issue
Block a user