| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | work.close(); |
| | | returnList.add(list); |
| | | } |
| | | } catch (Exception e){ |
| | | Log.error(e.getMessage()); |
| | | } |
| | | |
| | | return returnList; |
| | | } |