Skip to content

Commit dcfda81

Browse files
committed
feat: 使用模板导出的时候,不写入头,补充代码
1 parent eccd490 commit dcfda81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/pig4cloud/plugin/excel/handler/AbstractSheetWriteHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ private void fillCustomHeadInfo(Class<?> dataClass, Class<? extends HeadGenerato
248248
* @return true 已指定 false 未指定(默认值)
249249
*/
250250
private boolean isNotInterface(Class<? extends HeadGenerator> headGeneratorClass) {
251+
if (headGeneratorClass == null) {
252+
return false;
253+
}
251254
return !Modifier.isInterface(headGeneratorClass.getModifiers());
252255
}
253256

0 commit comments

Comments
 (0)