|
|
@ -10,6 +10,7 @@ import com.alibaba.excel.constant.ExcelXmlConstants; |
|
|
|
import com.alibaba.excel.context.AnalysisContext; |
|
|
|
import com.alibaba.excel.context.AnalysisContext; |
|
|
|
import com.alibaba.excel.read.listener.event.EachRowAnalysisFinishEvent; |
|
|
|
import com.alibaba.excel.read.listener.event.EachRowAnalysisFinishEvent; |
|
|
|
import com.alibaba.excel.read.metadata.holder.ReadRowHolder; |
|
|
|
import com.alibaba.excel.read.metadata.holder.ReadRowHolder; |
|
|
|
|
|
|
|
import com.alibaba.excel.util.PositionUtils; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Cell Handler |
|
|
|
* Cell Handler |
|
|
@ -32,8 +33,8 @@ public class ProcessResultCellHandler implements XlsxCellHandler { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void startHandle(String name, Attributes attributes) { |
|
|
|
public void startHandle(String name, Attributes attributes) { |
|
|
|
analysisContext |
|
|
|
analysisContext.readRowHolder( |
|
|
|
.readRowHolder(new ReadRowHolder(Integer.valueOf(attributes.getValue(ExcelXmlConstants.POSITION)), |
|
|
|
new ReadRowHolder(PositionUtils.getRowByRowTagt(attributes.getValue(ExcelXmlConstants.POSITION)), |
|
|
|
analysisContext.readSheetHolder().getGlobalConfiguration())); |
|
|
|
analysisContext.readSheetHolder().getGlobalConfiguration())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|