luoyb
2021-07-30 65f1296728ac4a2c207d411b50659af683628413
febs-server/febs-server-hr/src/main/java/cc/mrbird/febs/server/hr/util/PoiImportExcel.java
@@ -9,6 +9,7 @@
import java.util.List;
import cn.hutool.core.util.StrUtil;
import com.esotericsoftware.minlog.Log;
import org.apache.poi.hssf.usermodel.HSSFDataFormat;
import org.apache.poi.hssf.usermodel.HSSFDateUtil;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
@@ -111,6 +112,7 @@
         throw new Exception("创建Excel工作薄为空!");
      }
      List<List<List<Object>>> returnList = new ArrayList<List<List<Object>>>();
      try {
      for (Sheet sheet : work) {
         Row row = null;
         Cell cell = null;
@@ -161,6 +163,9 @@
         work.close();
         returnList.add(list);
      }
        } catch (Exception e){
            Log.error(e.getMessage());
        }
      return returnList;
   }