|
@@ -2295,6 +2295,9 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
Row row = sheet.getRow(y1 - 1);
|
|
|
if (row != null) {
|
|
|
Cell cell = row.getCell(x1 - 1, Row.MissingCellPolicy.CREATE_NULL_AS_BLANK);
|
|
|
+ if (cell == null) {
|
|
|
+ cell = row.createCell(x1 - 1);
|
|
|
+ }
|
|
|
if (cell != null || ObjectUtils.isNotEmpty(cell)) {
|
|
|
// 获取单元格的现有值
|
|
|
String existingValue = cell.getStringCellValue();
|