From a5b87938045f37cabeeedf4165da0e14e5fd277a Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Wed, 6 Mar 2024 19:06:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=96=87=E6=A1=A3=E6=8B=86=E5=88=86):=20?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E4=B8=A2=E5=A4=B1=E6=9D=A1=E6=96=87=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DocumentSplitServiceImpl.java | 10 ++++++++++ 1 file changed, 10 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 71c0cc0f..557e49e7 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 @@ -876,6 +876,16 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService { // 字段名和值 manageData(resultMap, fieldsBuilder, valuesList); documentSplitMapper.insertLawsDocumentSplit(fieldsBuilder.toString(), valuesList); + // 复制条文详情 + List sarFileSplitItemsValEOList = + documentSplitMapper.queryItemsValByItemIds(Collections.singletonList(id)); + for (SarFileSplitItemsValEO sarFileSplitItemsValEO : sarFileSplitItemsValEOList) { + sarFileSplitItemsValEO.setId(UUIDUtils.randomUUID20()); + sarFileSplitItemsValEO.setItemId(newItemValId); + sarFileSplitItemsValEO.setImgName(null); + sarFileSplitItemsValEO.setIndexItem(null); + sarFileSplitItemsValEOService.insertSelective(sarFileSplitItemsValEO); + } } @Override