正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -1440,7 +1440,8 @@ public class ExcelUtil<T> | @@ -1440,7 +1440,8 @@ public class ExcelUtil<T> | ||
| 1440 | Excel[] excels = attrs.value(); | 1440 | Excel[] excels = attrs.value(); |
| 1441 | for (Excel attr : excels) | 1441 | for (Excel attr : excels) |
| 1442 | { | 1442 | { |
| 1443 | - if (attr != null && (attr.type() == Type.ALL || attr.type() == type)) | 1443 | + if (!ArrayUtils.contains(this.excludeFields, field.getName() + "." + attr.targetAttr()) |
| 1444 | + && (attr != null && (attr.type() == Type.ALL || attr.type() == type))) | ||
| 1444 | { | 1445 | { |
| 1445 | field.setAccessible(true); | 1446 | field.setAccessible(true); |
| 1446 | fields.add(new Object[] { field, attr }); | 1447 | fields.add(new Object[] { field, attr }); |
-
请 注册 或 登录 后发表评论