提交 060efd99 authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 8081133b
...@@ -565,7 +565,6 @@ public class ExcelUtil { ...@@ -565,7 +565,6 @@ public class ExcelUtil {
// 创建一个Map来存储行数和Field的对应关系 // 创建一个Map来存储行数和Field的对应关系
Map<String, Field> fieldMap = new HashMap<String, Field>(); Map<String, Field> fieldMap = new HashMap<String, Field>();
log.info("=========================="+fieldMap);
Field[] flds = targetClass.getDeclaredFields(); Field[] flds = targetClass.getDeclaredFields();
for (Field fld : flds) { for (Field fld : flds) {
ExcelResources columnIndex = fld.getAnnotation(ExcelResources.class); ExcelResources columnIndex = fld.getAnnotation(ExcelResources.class);
...@@ -611,7 +610,6 @@ public class ExcelUtil { ...@@ -611,7 +610,6 @@ public class ExcelUtil {
// sheet = workbook.getSheet(sheetParams.sheetName()); // sheet = workbook.getSheet(sheetParams.sheetName());
// }else{ // }else{
sheet = workbook.getSheetAt(0); sheet = workbook.getSheetAt(0);
log.info("++++++++++++++++++++++++++++"+sheet);
// } // }
// 如果最小行大于实际行数,则最小行使用实际行数 // 如果最小行大于实际行数,则最小行使用实际行数
...@@ -669,7 +667,6 @@ public class ExcelUtil { ...@@ -669,7 +667,6 @@ public class ExcelUtil {
for (int j = 0; j < colNum; j++) { for (int j = 0; j < colNum; j++) {
// 获取单元格 // 获取单元格
Cell cell = row.getCell(j); Cell cell = row.getCell(j);
log.info("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"+cell);
if (cell == null) { if (cell == null) {
continue; continue;
} }
...@@ -702,7 +699,6 @@ public class ExcelUtil { ...@@ -702,7 +699,6 @@ public class ExcelUtil {
} else { } else {
f.set(obj, cell.getStringCellValue()); f.set(obj, cell.getStringCellValue());
} }
log.info("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"+cell);
} catch (Exception e) { } catch (Exception e) {
throw new BaseException("设置对象属性值时发生错误," + e.getMessage()); throw new BaseException("设置对象属性值时发生错误," + e.getMessage());
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论