From 26b7123ebccf218d17cf015566e0ad6b0bc3ea2c Mon Sep 17 00:00:00 2001
From: lxyer <237809796@qq.com>
Date: Sun, 2 Dec 2018 14:03:46 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=96=84=E4=BB=A3=E7=A0=81=E5=AE=9E?=
=?UTF-8?q?=E7=8E=B0=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 62 +--
src/com/lxyer/excel/poi/ExcelKit.java | 666 ++++++++++++------------
test/com/lxyer/excel/ExcelKitTest.java | 4 +-
test/com/lxyer/excel/ExportKitTest.java | 19 +-
4 files changed, 359 insertions(+), 392 deletions(-)
diff --git a/pom.xml b/pom.xml
index 07af22b..ea9a234 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,9 +5,34 @@
4.0.0
com.lxyer
- jdk-demo
- 1.0-SNAPSHOT
+ excel
+ 0.1.0
+ jar
+
+
+
+
+ org.apache.poi
+ poi
+ 3.17
+
+
+ org.apache.poi
+ poi-ooxml
+ 3.17
+
+
+
+
+ junit
+ junit
+ 4.12
+ test
+
+
+
+ JExcel
src
test
@@ -26,37 +51,4 @@
-
-
-
- org.apache.poi
- poi
- 3.17
-
-
- org.apache.poi
- poi-ooxml
- 3.17
-
-
-
- org.redkale
- redkale
- 1.9.3
- test
-
-
- org.apache.tomcat
- servlet-api
- 6.0.37
- compile
-
-
- junit
- junit
- 4.12
- test
-
-
-
\ No newline at end of file
diff --git a/src/com/lxyer/excel/poi/ExcelKit.java b/src/com/lxyer/excel/poi/ExcelKit.java
index 6650ffe..7b5765f 100644
--- a/src/com/lxyer/excel/poi/ExcelKit.java
+++ b/src/com/lxyer/excel/poi/ExcelKit.java
@@ -5,392 +5,366 @@ import org.apache.poi.poifs.filesystem.OfficeXmlFileException;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
-import java.io.OutputStream;
import java.lang.reflect.Field;
import java.text.SimpleDateFormat;
import java.util.*;
/**
- * 使用poi报表导出工具类
- * 把poi的一个调用接口抽出来,便于导出功能的管理
- * @author LiangXianYou lxy208@126.com
- * @param
- *
- */
-public class ExcelKit {
-
- /**
- * 导出list中map做载体的数据到excel
- * 参数说明:
- * list:存放了Map数据的集合
- * hdNames:表头列名
- * hds:对应表头的数据KEY
- * xlsName:导出文件名
- * @author LiangXianYou
- * @date 2015-6-25 上午10:22:51
- */
- public static boolean exportByMap(List