|
|
@ -417,16 +417,18 @@ public class ExcelKit {
|
|
|
|
Row row = sheet.getRow(rowIndex);
|
|
|
|
Row row = sheet.getRow(rowIndex);
|
|
|
|
if (row != null && row.getCell(0) != null
|
|
|
|
if (row != null && row.getCell(0) != null
|
|
|
|
&& row.getCell(0).toString().contains(keyword)) {
|
|
|
|
&& row.getCell(0).toString().contains(keyword)) {
|
|
|
|
if (start == -1)
|
|
|
|
if (start == -1) {
|
|
|
|
start = rowIndex;
|
|
|
|
start = rowIndex;
|
|
|
|
System.out.println("找到" + keyword + ",start=" + start);
|
|
|
|
System.out.println("找到" + keyword + ",start=" + start);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (start > 0 && row == null) {
|
|
|
|
if (start > 0 && (row == null || row.getCell(0) == null)) {
|
|
|
|
end = rowIndex - 1;
|
|
|
|
end = rowIndex - 1;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
start += headRows;//第二个表的表头有几行
|
|
|
|
start += headRows;//第二个表的表头有几行
|
|
|
|
|
|
|
|
|
|
|
|
//System.out.println("第二个表格开始行索引=" + start + ",结束行索引=" + end);
|
|
|
|
//System.out.println("第二个表格开始行索引=" + start + ",结束行索引=" + end);
|
|
|
|
//输出第二个表格的数据
|
|
|
|
//输出第二个表格的数据
|
|
|
|
for (rowIndex = start; rowIndex <= end; rowIndex++) {
|
|
|
|
for (rowIndex = start; rowIndex <= end; rowIndex++) {
|
|
|
|