main
黄海 8 months ago
parent ab2fcebbb5
commit a761c200e4

@ -550,6 +550,10 @@ public class ExcelKit {
List<String> rowData = new ArrayList<>();
for (int j = 0; j < tableWidth; j++) {
Cell cell = row.getCell(j);
if (cell == null) {
rowData.add(null);
continue;
}
// 如果单元格是公式类型
if (cell.getCellType() == CellType.FORMULA) {
// 计算公式结果

@ -13,7 +13,7 @@ public class TestRead {
public static void main(String[] args) throws IOException {
//待读取的EXCEL文件
String filePath = "D:\\dsWork\\YunNanDsBase\\Doc\\待处理\\区\\【1】学前幼儿入园总量预测\\鲁甸县教育发展规模数据收集表.xlsx";
String filePath = "D:\\dsWork\\YunNanDsBase\\Doc\\全省及州市县区人口与教育报告集20241023\\133个县区报告2022\\县区研究报告\\临沧市各县区报告8\\云县教育体育局关于做好人口变化趋势对基础教育影响研究工作材料\\表2云县教育发展规模数据收集表-20240422-镇乡两类适用.xlsx";
//表格正文上方的文字
String keyword = "自动计算招生数、在校生数";

Loading…
Cancel
Save