单元格的值存储Map增加key重复性判断
This commit is contained in:
@@ -293,7 +293,9 @@ public abstract class XLSXCovertCSVReader {
|
|||||||
int len = countNullCell(refnum, preRefnum);
|
int len = countNullCell(refnum, preRefnum);
|
||||||
for(int i=0;i<len;i++){
|
for(int i=0;i<len;i++){
|
||||||
rowlist.add(curCol, "");
|
rowlist.add(curCol, "");
|
||||||
rowMap.put(thisColumn, "");
|
if(!rowMap.containsKey(thisColumn)){
|
||||||
|
rowMap.put(thisColumn, "");
|
||||||
|
}
|
||||||
curCol++;
|
curCol++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -332,7 +334,9 @@ public abstract class XLSXCovertCSVReader {
|
|||||||
int len = countNullCell(maxRefnum, refnum);
|
int len = countNullCell(maxRefnum, refnum);
|
||||||
for(int i=0;i<=len;i++){
|
for(int i=0;i<=len;i++){
|
||||||
rowlist.add(curCol, "");
|
rowlist.add(curCol, "");
|
||||||
//rowMap.put(thisColumn, "");
|
if(!rowMap.containsKey(thisColumn)){
|
||||||
|
rowMap.put(thisColumn, "");
|
||||||
|
}
|
||||||
curCol++;
|
curCol++;
|
||||||
}
|
}
|
||||||
int totalLen= countTotalCell(maxRefnum);
|
int totalLen= countTotalCell(maxRefnum);
|
||||||
|
|||||||
Reference in New Issue
Block a user