diff --git a/pom.xml b/pom.xml
index 1a39c51..d13e8fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,24 +13,14 @@
org.redkale
redkale
- 1.9.9
+ 2.0.0.alpha1
-
- org.apache.poi
- poi
- 3.17
-
+
org.apache.poi
poi-ooxml
- 3.17
-
-
-
- com.lxyer
- excel
- 0.1.0
+ 4.1.0
@@ -38,12 +28,6 @@
gson
2.8.4
-
com.jfinal
enjoy
diff --git a/src/com/eversec/common/ExcelKit.java b/src/com/eversec/common/ExcelKit.java
new file mode 100644
index 0000000..a7cf472
--- /dev/null
+++ b/src/com/eversec/common/ExcelKit.java
@@ -0,0 +1,408 @@
+package com.eversec.common;
+
+import org.apache.poi.hssf.usermodel.HSSFWorkbook;
+import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
+import org.apache.poi.ss.formula.functions.T;
+import org.apache.poi.ss.usermodel.*;
+import org.apache.poi.xssf.usermodel.XSSFWorkbook;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.lang.reflect.Field;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+/**
+ 下载示例
+ private static boolean downloadExcel(Workbook wb, String xlsName, HttpServletRequest request, HttpServletResponse response) throws IOException{
+ if(request.getHeader("user-agent").indexOf("MSIE") != -1) {
+ xlsName = java.net.URLEncoder.encode(xlsName,"utf-8") + ".xls";
+ } else {
+ xlsName = new String(xlsName.getBytes("utf-8"),"iso-8859-1")+ ".xls";
+ }
+ OutputStream os = response.getOutputStream();
+ response.setContentType("application/vnd.ms-excel");
+ response.setHeader("Content-disposition", "attachment;filename="+xlsName);
+
+ wb.write(os);
+ return true;
+ }
+
+ * 使用poi报表导出工具类
+ * 把poi的一个调用接口抽出来,便于导出功能的管理
+ * @author LiangXianYou lxy208@126.com
+ * @param
+ *
+ */
+public class ExcelKit {
+
+ /**
+ * Excels导出多个sheet
+ *
+ * @author LiangXianYou
+ * @date 2015-6-16 下午5:56:56
+ */
+ //map:data,sheetName,hds,hdNames,
+ public static Workbook exportExcels(List