提交 dcaf2ab1 authored 作者: renjiancai's avatar renjiancai

--no commit message

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