在使用公式格式解析列中值的 excel 文件时,我收到 null。这是我的代码:  Cell cell = row.getCell(i);          CellValue cellValue = evaluator.evaluate(cell);          switch(cell.getCellType())          {            case Cell.CELL_TYPE_NUMERIC:                returnedMap.put(arrayForMappingNames[index], ""+cell.getNumericCellValue());                break;            case Cell.CELL_TYPE_STRING:                returnedMap.put(arrayForMappingNames[index], cell.getStringCellValue());                break;            case Cell.CELL_TYPE_FORMULA :                 returnedMap.put(arrayForMappingNames[index], cellValue.getStringValue());                break;            default :                 returnedMap.put(arrayForMappingNames[index], ExcellUtil.DEFAULT_VALUE);          }
                    
                    
                1 回答
 
                    
                    
                            芜湖不芜
                            
                                
                            
                        
                        
                                                
                    TA贡献1796条经验 获得超7个赞
Cell cell = row.getCell(i);
CellValue cellValue = evaluator.evaluate(cell);
String columnValue = formatter.formatCellValue(cell, evaluator);
returnedMap.put(arrayForMappingNames[index], columnValue);
添加回答
举报
0/150
	提交
		取消
	