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 3677df74
authored
Mar 17, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
共享数据拦截器
1 parent
c1bbbfce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/cn/com/glsx/auth/interceptor/DataPermitLinkInterceptor.java
src/main/java/cn/com/glsx/auth/interceptor/DataPermitLinkInterceptor.java
View file @
3677df7
...
@@ -114,7 +114,7 @@ public class DataPermitLinkInterceptor implements Interceptor {
...
@@ -114,7 +114,7 @@ public class DataPermitLinkInterceptor implements Interceptor {
String
linkPermitSql
=
assembleLinkPermitSql
(
originSql
,
dataAuth
,
ShieldContextHolder
.
getUserId
());
//绝对数据权限过滤组装
String
linkPermitSql
=
assembleLinkPermitSql
(
originSql
,
dataAuth
,
ShieldContextHolder
.
getUserId
());
//绝对数据权限过滤组装
//合并查询sql
//合并查询sql
String
linkUnionSql
=
relativePertSql
+
"
union all
"
+
linkPermitSql
;
String
linkUnionSql
=
relativePertSql
+
"
UNION
"
+
linkPermitSql
;
if
(
dataAuth
.
showSql
())
{
if
(
dataAuth
.
showSql
())
{
log
.
info
(
"\nrelativePertSql:{}\nlinkPermitSql:{}\nlinkUnionSql:{}"
,
relativePertSql
,
linkPermitSql
,
linkUnionSql
);
log
.
info
(
"\nrelativePertSql:{}\nlinkPermitSql:{}\nlinkUnionSql:{}"
,
relativePertSql
,
linkPermitSql
,
linkUnionSql
);
...
...
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