From b8301966413f390e65ce43e6a773c22895dc42f5 Mon Sep 17 00:00:00 2001 From: CD <1103614279@qq.com> Date: Sat, 8 Oct 2022 17:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=AF=B9=E6=AF=94=E5=88=9B?= =?UTF-8?q?=E5=BB=BArow=E6=97=B6=E8=A6=86=E7=9B=96=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SarFileCompareItemCommentServiceImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java index c236f5d0b..071f02deb 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/compare/service/impl/SarFileCompareItemCommentServiceImpl.java @@ -280,7 +280,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 0) { - Row row2 = sheet.createRow(j + i); + Row row2 = sheet.getRow(j + i); + if (ObjectUtils.isEmpty(row2)) { + row2 = sheet.createRow(j + i); + } if (leftSplit[j].contains("/upFiles")) { row2.setHeight((short) 3000); //设置行高 //先将图片下载到本地 @@ -361,7 +364,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl 0) { - Row row2 = sheet.createRow(j + i); + Row row2 = sheet.getRow(j + i); + if (ObjectUtils.isEmpty(row2)) { + row2 = sheet.createRow(j + i); + } if (rightSplit[j].contains("/upFiles")) { row2.setHeight((short) 3000); //设置行高 //先将图片下载到本地