From 3f3e39179d8b8ffb3c11df4f3b1acdd153eef4c6 Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Wed, 15 Nov 2023 09:10:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=96=87=E6=A1=A3=E6=8B=86=E5=88=86):=2078?= =?UTF-8?q?372?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DocumentSplitServiceImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 c6bbb197..415bc0f2 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 @@ -397,6 +397,8 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { @Override public void editDocumentSplitDetail(Map parameter) { + // 处理map参数null值转为“” + mapValueNullToString(parameter); // 查询全部字段列表 List fieldList = lawsCommonMapper.getFieldList(TableNameEnum.DOCUMENT_SPLIT.getTableName()); // 编辑页展示的字段 @@ -451,6 +453,16 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { } } + private void mapValueNullToString(Map parameter) { + if (parameter!= null){ + parameter.forEach((k, v) ->{ + if (Objects.isNull(v)){ + parameter.put(k, ""); + } + }); + } + } + private String articlesJoin(List articlesList, String itemId) { StringBuilder valContent = new StringBuilder(); int index = 0; @@ -524,6 +536,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { @Override public void editBatchDocumentSplitDetail(Map parameter) { + mapValueNullToString(parameter); // 查询全部字段列表 List fieldList = lawsCommonMapper.getFieldList(TableNameEnum.DOCUMENT_SPLIT.getTableName()); // 编辑页展示的字段