文档对比创建row时覆盖的问题

This commit is contained in:
CD
2022-10-08 17:21:45 +08:00
parent cfed5d9e61
commit b830196641
@@ -280,7 +280,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
BufferedImage bufferImg = null;
if (j > 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<SarFileCom
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
BufferedImage bufferImg = null;
if (j > 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); //设置行高
//先将图片下载到本地