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

springboot3
RuoYi 3 weeks ago
parent 7b4fbf4e13
commit 1215d5d474

@ -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
* *

Loading…
Cancel
Save