|
@@ -119,6 +119,9 @@ public class ExcelUtil {
|
|
|
int lastcell = row.getLastCellNum();
|
|
|
o = clazz.get(y).newInstance();
|
|
|
Field[] fields = o.getClass().getDeclaredFields();
|
|
|
+ if (lastcell > fields.length) {
|
|
|
+ throw ExceptionResultEnum.ERROR.exception("导入文件和模版不一致");
|
|
|
+ }
|
|
|
boolean extend = fields[fields.length - 1].getName().contains(SystemConstant.EXTEND_COLUMN);
|
|
|
for (int j = firstcell; j < lastcell; j++) {
|
|
|
//获取第j列
|