文档对比创建row时覆盖的问题
This commit is contained in:
+8
-2
@@ -280,7 +280,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
||||||
BufferedImage bufferImg = null;
|
BufferedImage bufferImg = null;
|
||||||
if (j > 0) {
|
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")) {
|
if (leftSplit[j].contains("/upFiles")) {
|
||||||
row2.setHeight((short) 3000); //设置行高
|
row2.setHeight((short) 3000); //设置行高
|
||||||
//先将图片下载到本地
|
//先将图片下载到本地
|
||||||
@@ -361,7 +364,10 @@ public class SarFileCompareItemCommentServiceImpl extends ServiceImpl<SarFileCom
|
|||||||
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream();
|
||||||
BufferedImage bufferImg = null;
|
BufferedImage bufferImg = null;
|
||||||
if (j > 0) {
|
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")) {
|
if (rightSplit[j].contains("/upFiles")) {
|
||||||
row2.setHeight((short) 3000); //设置行高
|
row2.setHeight((short) 3000); //设置行高
|
||||||
//先将图片下载到本地
|
//先将图片下载到本地
|
||||||
|
|||||||
Reference in New Issue
Block a user