Browse Source

保存时pdf电签类型为数值型

cr 6 days ago
parent
commit
9e3ce998af

+ 8 - 1
blade-service/blade-manager/src/main/java/org/springblade/manager/service/impl/ExcelTabServiceImpl.java

@@ -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;