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
RuoYi Vue
Commits
4f02f3c6
Commit
4f02f3c6
authored
Mar 17, 2023
by
RuoYi
Browse files
支持自定义隐藏属性列过滤子对象(I6GKPE)
parent
5ca9bd68
Changes
2
Show whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java
View file @
4f02f3c6
...
@@ -1440,7 +1440,8 @@ public class ExcelUtil<T>
...
@@ -1440,7 +1440,8 @@ public class ExcelUtil<T>
Excel
[]
excels
=
attrs
.
value
();
Excel
[]
excels
=
attrs
.
value
();
for
(
Excel
attr
:
excels
)
for
(
Excel
attr
:
excels
)
{
{
if
(
attr
!=
null
&&
(
attr
.
type
()
==
Type
.
ALL
||
attr
.
type
()
==
type
))
if
(!
ArrayUtils
.
contains
(
this
.
excludeFields
,
field
.
getName
()
+
"."
+
attr
.
targetAttr
())
&&
(
attr
!=
null
&&
(
attr
.
type
()
==
Type
.
ALL
||
attr
.
type
()
==
type
)))
{
{
field
.
setAccessible
(
true
);
field
.
setAccessible
(
true
);
fields
.
add
(
new
Object
[]
{
field
,
attr
});
fields
.
add
(
new
Object
[]
{
field
,
attr
});
...
...
ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/DataScopeAspect.java
View file @
4f02f3c6
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