Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-auth-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bca5a395
authored
Mar 17, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
共享数据拦截器
1 parent
cbcadcef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/auth/interceptor/DataPermissionInterceptor.java
src/main/java/cn/com/glsx/auth/interceptor/DataPermitLinkInterceptor.java
src/main/java/cn/com/glsx/auth/interceptor/DataPermissionInterceptor.java
View file @
bca5a39
...
@@ -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
(
);
}
}
//如果方法有共享数据注解,直接跳过
//如果方法有共享数据注解,直接跳过
...
...
src/main/java/cn/com/glsx/auth/interceptor/DataPermitLinkInterceptor.java
View file @
bca5a39
...
@@ -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
(
);
}
}
//如果方法有共享数据注解,直接跳过
//如果方法有共享数据注解,直接跳过
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment