Commit 77dba7c2 authored by renjie's avatar renjie

批量添加bug

parent 83de5382
...@@ -80,14 +80,11 @@ public class FileUtil { ...@@ -80,14 +80,11 @@ public class FileUtil {
//总行数 //总行数
int rowLength = sheet.getLastRowNum() -1; int rowLength = sheet.getLastRowNum() -1;
log.error(rowLength + "");
log.error(sheet.getLastRowNum() + "");
//工作表的列 //工作表的列
Row row = sheet.getRow(0); Row row = sheet.getRow(0);
//总列数 //总列数
int colLength = row.getLastCellNum(); int colLength = row.getLastCellNum();
log.error(colLength + "!");
//得到指定的单元格 //得到指定的单元格
Cell cell = row.getCell(0);; Cell cell = row.getCell(0);;
int size = 1; int size = 1;
...@@ -100,7 +97,6 @@ public class FileUtil { ...@@ -100,7 +97,6 @@ public class FileUtil {
// System.out.println(cell); // System.out.println(cell);
if (cell!=null) { if (cell!=null) {
Object cellValue = getCellFormatValue(cell); Object cellValue = getCellFormatValue(cell);
log.error(cellValue.toString());
rowvalue.add(cellValue); rowvalue.add(cellValue);
if (StringUtils.isNotBlank(cellValue.toString())) { if (StringUtils.isNotBlank(cellValue.toString())) {
size++; size++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment