提交 4f02f3c6 authored 作者: RuoYi's avatar RuoYi

支持自定义隐藏属性列过滤子对象(I6GKPE)

上级 5ca9bd68
......@@ -1440,7 +1440,8 @@ public class ExcelUtil<T>
Excel[] excels = attrs.value();
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);
fields.add(new Object[] { field, attr });
......
......@@ -106,7 +106,7 @@ public class DataScopeAspect
continue;
}
if (DATA_SCOPE_ALL.equals(dataScope))
{
{
sqlString = new StringBuilder();
conditions.add(dataScope);
break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论