Merge remote-tracking branch 'base-version/main' into dev

This commit is contained in:
chenbowen
2025-11-03 14:21:25 +08:00
20 changed files with 580 additions and 11 deletions

View File

@@ -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();
}
}