Merge remote-tracking branch 'base-version/main' into dev
This commit is contained in:
@@ -49,4 +49,11 @@ public class ExcelUtils {
|
||||
.doReadAllSync();
|
||||
}
|
||||
|
||||
public static <T> List<T> read(MultipartFile file, Class<T> head, int sheetNo) throws IOException {
|
||||
return EasyExcel.read(file.getInputStream(), head, null)
|
||||
.autoCloseStream(false)
|
||||
.sheet(sheetNo)
|
||||
.doReadSync();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user