Эх сурвалжийг харах

fix: 导出没有表头问题

lixuesong 2 өдөр өмнө
parent
commit
eb177c6cc3

+ 1 - 1
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/util/ExportUtils.java

@@ -48,7 +48,7 @@ public final class ExportUtils {
 		String ret = ERROR_MSG_UNKNOWN;
 		try {
 			// 写入excel文件
-			EasyExcel.write(fullPath).sheet(exportType.getDescription())
+			EasyExcel.write(fullPath, head).sheet(exportType.getDescription())
 					.doWrite(data);
 			log.info("{}导出生成缓存文件:{}", exportType.getDescription(), fullPath);