|
@@ -112,7 +112,7 @@ public class SaxDataBatchHandler extends DefaultHandler {
|
|
|
// 转义单引号,防止SQL语法报错
|
|
// 转义单引号,防止SQL语法报错
|
|
|
//针对无抬头特殊处理取headerList(从第3列开始)
|
|
//针对无抬头特殊处理取headerList(从第3列开始)
|
|
|
if(m > 1 && detNo ==0){
|
|
if(m > 1 && detNo ==0){
|
|
|
- cellVal = headerList.get(m);
|
|
|
|
|
|
|
+ cellVal = headerList.get(m-1);
|
|
|
}else {
|
|
}else {
|
|
|
cellVal = m < currentRowCells.size() ? currentRowCells.get(m).trim() : "";
|
|
cellVal = m < currentRowCells.size() ? currentRowCells.get(m).trim() : "";
|
|
|
}
|
|
}
|