feat(文档拆分): 导出完善

This commit is contained in:
yjz
2023-10-23 18:03:40 +08:00
parent 7d393a8885
commit ef980bb9be
6 changed files with 50 additions and 24 deletions
@@ -3607,12 +3607,11 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
row1.getCell(cellNum).setCellStyle(cellStyleLink);
}
cell2.setCellValue(content); // IllegalArgumentException异常,excel单元格最大字符长度有限制
}
else if ("interpretation_articles".equals(fieldList.get(cellNum))) {
} else if ("interpretation_articles".equals(fieldList.get(cellNum))) {
// 条文解读特殊处理
HSSFCell cell2 = row1.createCell(cellNum);
row1.getCell(cellNum).setCellStyle(cellStyle);
String content = (String) allItemsList.get(0).get("interpretation_articles");
String content = (String) allItemsList.get(rowNum).get("interpretation_articles");
if (StringUtils.isNotEmpty(content)) {
content = content.replaceAll("<p>","");
content = content.replaceAll("</p>","\n");