Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
e6c0c971
Commit
e6c0c971
authored
Apr 04, 2019
by
mars
Browse files
更新 DataAccessFunction.java
修复由数据权限引起的查询结果集异常问题。
parent
39ac361b
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/java/com/ibeetl/admin/core/util/beetl/DataAccessFunction.java
View file @
e6c0c971
...
@@ -82,7 +82,7 @@ public class DataAccessFunction implements Function {
...
@@ -82,7 +82,7 @@ public class DataAccessFunction implements Function {
List
<
Object
>
list
=
(
List
<
Object
>)
ctx
.
getGlobal
(
"_paras"
);
List
<
Object
>
list
=
(
List
<
Object
>)
ctx
.
getGlobal
(
"_paras"
);
StringBuilder
sb
=
new
StringBuilder
(
"
"
);
StringBuilder
sb
=
new
StringBuilder
(
"
(
"
);
//数据权限范围划定
//数据权限范围划定
boolean
hasAppend
=
false
;
boolean
hasAppend
=
false
;
for
(
int
i
=
0
;
i
<
roleFuns
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
roleFuns
.
size
();
i
++){
...
@@ -165,7 +165,7 @@ public class DataAccessFunction implements Function {
...
@@ -165,7 +165,7 @@ public class DataAccessFunction implements Function {
}
}
sb
.
append
(
" ) "
);
return
sb
.
toString
();
return
sb
.
toString
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment