|
@@ -175,7 +175,7 @@ public class ImportExcel {
|
|
|
* @return
|
|
|
*/
|
|
|
public int getLastDataRowNum(){
|
|
|
- return this.sheet.getLastRowNum()+headerNum;
|
|
|
+ return this.sheet.getLastRowNum();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -292,6 +292,7 @@ public class ImportExcel {
|
|
|
//log.debug("Import column count:"+annotationList.size());
|
|
|
// Get excel data
|
|
|
List<E> dataList = Lists.newArrayList();
|
|
|
+
|
|
|
for (int i = this.getDataRowNum(); i <= this.getLastDataRowNum(); i++) {
|
|
|
E e = (E)cls.newInstance();
|
|
|
int column = 0;
|