提交 ecbcbaa9 authored 作者: 任建宇's avatar 任建宇

1

上级 1485bd37
......@@ -695,16 +695,17 @@ public class ImportExcelUtil {
System.out.println(++q);
System.out.println(key);
Field f = fieldMap.get(key);
System.out.println(f.getName());
System.out.println(cell.getStringCellValue());
f.setAccessible(true);
try {
//不能为空值的map
if (columnMap.get(f.getName()) != null) {
if(StringUtils.isNotBlank(cell.getStringCellValue())) {
buffer.append(++q + f.getName() + "不能为空 \n");
System.out.println(cell);
if(StringUtils.isBlank(cell.toString())) {
Integer count = ++q;
buffer.append(" 第"+count+"行," + key + "列不能为空 \n");
}
}
if (f.getType() == String.class) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论