From 1b170de4c1d4bd3f43f7a401fd68e73effd3f464 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期五, 19 二月 2021 17:19:34 +0800
Subject: [PATCH] feat(分支合并): 在职员工
---
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/PoiImportExcel.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/PoiImportExcel.java b/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/PoiImportExcel.java
index 3f5b6e7..f73ff68 100644
--- a/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/PoiImportExcel.java
+++ b/febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/PoiImportExcel.java
@@ -29,11 +29,11 @@
* @return
* @throws IOException
*/
- public List<List<Object>> getListByExcel(InputStream in, String fileName) throws Exception {
+ public static List<List<Object>> getListByExcel(InputStream in, String fileName) throws Exception {
List<List<Object>> list = null;
// 创建Excel工作薄
- Workbook work = this.getWorkbook(in, fileName);
+ Workbook work = getWorkbook(in, fileName);
if (null == work) {
throw new Exception("创建Excel工作薄为空!");
}
@@ -101,7 +101,7 @@
* @return
* @throws Exception
*/
- public Workbook getWorkbook(InputStream inStr, String fileName) throws Exception {
+ public static Workbook getWorkbook(InputStream inStr, String fileName) throws Exception {
Workbook wb = null;
String fileType = fileName.substring(fileName.lastIndexOf("."));
if (excel2003L.equals(fileType)) {
@@ -121,7 +121,7 @@
* @return
*/
@SuppressWarnings("deprecation")
- public Object getCellValue(Cell cell) {
+ public static Object getCellValue(Cell cell) {
try {
Object value = null;
--
Gitblit v1.8.0