|
|
@@ -2733,7 +2733,14 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
}
|
|
|
if (cell != null || ObjectUtils.isNotEmpty(cell)) {
|
|
|
// 获取单元格的现有值
|
|
|
- String existingValue = cell.getStringCellValue();
|
|
|
+ String existingValue = "";
|
|
|
+ switch (cell.getCellTypeEnum()) {
|
|
|
+ case STRING:
|
|
|
+ existingValue = cell.getStringCellValue();
|
|
|
+ break;
|
|
|
+ case NUMERIC:
|
|
|
+ continue;
|
|
|
+ }
|
|
|
// 获取单元格的现有富文本字符串
|
|
|
RichTextString existingRichTextString = cell.getRichStringCellValue();
|
|
|
String s = null;
|