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

pull/394/head
RuoYi 2024-12-25 16:37:26 +08:00
parent 7b4fbf4e13
commit 1215d5d474
1 changed files with 13 additions and 13 deletions

View File

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