Commit bca5a395 by levphon

共享数据拦截器

1 parent cbcadcef
...@@ -78,7 +78,7 @@ public class DataPermissionInterceptor implements Interceptor { ...@@ -78,7 +78,7 @@ public class DataPermissionInterceptor implements Interceptor {
Method method = getMapperExecutingMethod(mappedStatement); Method method = getMapperExecutingMethod(mappedStatement);
if (method == null) { if (method == null) {
throw new Exception("Mybatis拦截器执行异常"); return invocation.proceed();
} }
//如果方法有共享数据注解,直接跳过 //如果方法有共享数据注解,直接跳过
......
...@@ -86,7 +86,7 @@ public class DataPermitLinkInterceptor implements Interceptor { ...@@ -86,7 +86,7 @@ public class DataPermitLinkInterceptor implements Interceptor {
Method method = getMapperExecutingMethod(mappedStatement); Method method = getMapperExecutingMethod(mappedStatement);
if (method == null) { if (method == null) {
throw new Exception("Mybatis拦截器执行异常"); return invocation.proceed();
} }
//如果方法有共享数据注解,直接跳过 //如果方法有共享数据注解,直接跳过
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!