feat: 导入自动匹配文件类型 不限制xls
This commit is contained in:
+1
-1
@@ -1777,7 +1777,7 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
||||
} else {
|
||||
inputStream = Files.newInputStream(excelfilelist.get(0).toPath());
|
||||
}
|
||||
try (Workbook workbook = new HSSFWorkbook(inputStream)) {
|
||||
try (Workbook workbook = WorkbookFactory.create(inputStream)) {
|
||||
// 检测是否是空Excel
|
||||
Sheet sheet = workbook.getSheetAt(0);
|
||||
// 验证前三行是否有数据
|
||||
|
||||
Reference in New Issue
Block a user