fix(标准拆分): 80786

This commit is contained in:
yjz
2024-01-25 14:15:35 +08:00
parent f3d63caff2
commit 74ecc6e6f6
@@ -893,13 +893,14 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
Cell cell = headerRowTwo.createCell(0); Cell cell = headerRowTwo.createCell(0);
String explain = "模版说明:\n" + String explain = "模版说明:\n" +
"1.条文号不能为空\n" + "1.条文号不能为空\n" +
"2.仅支持zip格式文件夹"; "2.仅支持zip格式文件夹\n" +
"3.条文内容如果导入表格类型,表格的名称需要与sheet页名称保持一致";
CellStyle cellStyleTwo = workbook.createCellStyle(); CellStyle cellStyleTwo = workbook.createCellStyle();
cellStyleTwo.setWrapText(true); cellStyleTwo.setWrapText(true);
cell.setCellStyle(cellStyleTwo); cell.setCellStyle(cellStyleTwo);
// 行高 // 行高
headerRowTwo.setHeight((short) 800); headerRowTwo.setHeight((short) 1500);
cell.setCellValue(new XSSFRichTextString(explain)); cell.setCellValue(new XSSFRichTextString(explain));
// 合并单元格(参数说明:起始行,结束行,起始列,结束列) // 合并单元格(参数说明:起始行,结束行,起始列,结束列)
CellRangeAddress region = new CellRangeAddress(1, 1, 0, 2); CellRangeAddress region = new CellRangeAddress(1, 1, 0, 2);