优化导入带标题文件关闭清理

springboot3
RuoYi 3 weeks ago
parent 7b4fbf4e13
commit 1215d5d474

@ -283,11 +283,23 @@ public class ExcelUtil<T>
* @return
*/
public List<T> importExcel(InputStream is)
{
return importExcel(is, 0);
}
/**
* excellist
*
* @param is
* @param titleNum
* @return
*/
public List<T> importExcel(InputStream is, int titleNum)
{
List<T> list = null;
try
{
list = importExcel(is, 0);
list = importExcel(StringUtils.EMPTY, is, titleNum);
}
catch (Exception e)
{
@ -301,18 +313,6 @@ public class ExcelUtil<T>
return list;
}
/**
* excellist
*
* @param is
* @param titleNum
* @return
*/
public List<T> importExcel(InputStream is, int titleNum) throws Exception
{
return importExcel(StringUtils.EMPTY, is, titleNum);
}
/**
* excellist
*

Loading…
Cancel
Save