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

pull/511/MERGE
RuoYi 2024-12-10 16:37:17 +08:00
parent c51e8d80a8
commit adfa0888ef
1 changed files with 13 additions and 13 deletions

View File

@ -310,11 +310,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)
{ {
@ -328,18 +340,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
* *