From 5b8d00a8e13bac471e1edc7b3155581ed08f2861 Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Wed, 27 Mar 2024 09:43:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(82596):=20=E6=96=87=E6=A1=A3=E6=8B=86?= =?UTF-8?q?=E5=88=86--=E6=8B=86=E5=88=86=E6=96=87=E6=A1=A3=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0--=E3=80=90<=E3=80=91=E5=90=8E=E6=96=B9=E7=9A=84?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=9C=AA=E6=8B=86=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DocumentSplitServiceImpl.java | 10 +++++++++- .../split/service/impl/FileSpiltService.java | 14 ++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java index eda2a6a5..6f0b81ed 100644 --- a/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/laws/documenttool/service/impl/DocumentSplitServiceImpl.java @@ -93,6 +93,7 @@ import org.springframework.transaction.TransactionDefinition; import org.springframework.transaction.TransactionStatus; import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.support.DefaultTransactionDefinition; +import org.springframework.web.util.HtmlUtils; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -384,7 +385,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { // 企标权限校验 enterpriseCheck(sarFileSplitInfoEO); // 唯一校验 - uniqueCheck(sarFileSplitInfoEO); +// uniqueCheck(sarFileSplitInfoEO); // 保存文本拆分数据 saveDocumentSplitInfo(sarFileSplitInfoEO); //拆分 @@ -632,6 +633,10 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { for (SarFileSplitItemsValEO sarFileSplitItemsValEO : valList) { // 条文内容拼接 if (DocumentSplitCommon.TEXT.equals(sarFileSplitItemsValEO.getType())) { + if (StringUtils.isNotBlank(sarFileSplitItemsValEO.getItemContent())){ + sarFileSplitItemsValEO.setItemContent(sarFileSplitItemsValEO.getItemContent() + .replace("<", "<").replace(">", ">")); + } valContent.append("
").append(sarFileSplitItemsValEO.getItemContent()).append("
"); } else if (DocumentSplitCommon.IMG.equals(sarFileSplitItemsValEO.getType())) { valContent.append("" + p + "
"); @@ -1124,6 +1127,9 @@ public class FileSpiltService { for (XWPFRun xwrun : paragraph.getRuns()) { VerticalAlign subscript = xwrun.getSubscript(); String smalltext = xwrun.getText(0); + if (StringUtils.isNotBlank(smalltext)){ + smalltext = smalltext.replace("<", "<").replace(">", ">"); + } if (smalltext==null){ continue; }