From a2e87799d3adbe750c626ce76243d69daf026bd0 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Sun, 24 Apr 2022 20:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2--=E6=96=87=E6=A1=A3=E5=BA=93?= =?UTF-8?q?=E5=88=97=E8=A1=A8(=E6=AD=A3=E6=96=87)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BussDocumentLibraryEOServiceImpl.java | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 256707f2c..38b209c8a 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -1203,6 +1203,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl> mapListTempCn = new ArrayList<>(); List> mapListTempEn = new ArrayList<>(); + StringBuilder fileTextAll = new StringBuilder(); try { String cutCn = CutEnum.CN.getValue(); String cutEn = CutEnum.EN.getValue(); @@ -1226,6 +1227,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl> mapListTempCn = new ArrayList<>(); List> mapListTempEn = new ArrayList<>(); + String fileTextAll = ""; try { String cutCn = CutEnum.CN.getValue(); String cutEn = CutEnum.EN.getValue(); if (fileInfos.size() != 0) { //编辑时,有修改文件的情况 - updateEsInfo(map, searchFieldList, sbCn, sbEn, fileInfos, mapListTempCn, mapListTempEn, cutCn, cutEn); + fileTextAll = updateEsInfo(map, searchFieldList, sbCn, sbEn, fileInfos, mapListTempCn, mapListTempEn, cutCn, cutEn); } else { //没有修改文件,获取之前上传过的文件 List fieldFileListTemp = fieldList.stream() @@ -1765,7 +1770,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl oSSFileListTemp = iOSSFileService.getFileInfosByConnectId(StringUtils.join(connectIdList, ",")); //处理文件排序(发布稿 增补件 报批稿 征求意见稿 测试程序) List files = fileSort(fieldFileList, oSSFileListTemp, map); - updateEsInfo(map, searchFieldList, sbCn, sbEn, files, mapListTempCn, mapListTempEn, cutCn, cutEn); + fileTextAll = updateEsInfo(map, searchFieldList, sbCn, sbEn, files, mapListTempCn, mapListTempEn, cutCn, cutEn); }else{ //之前没有上传过文件 @@ -1829,6 +1834,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl objectMapTemp = new HashMap<>(); for (Map.Entry entry : map.entrySet()) { Object value = entry.getValue(); @@ -1876,9 +1882,10 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl map, List searchFieldList, StringBuilder sbCn, StringBuilder sbEn, List fileInfos, List> mapListTempCn, List> mapListTempEn, String cutCn, String cutEn) { + private String updateEsInfo(Map map, List searchFieldList, StringBuilder sbCn, StringBuilder sbEn, List fileInfos, List> mapListTempCn, List> mapListTempEn, String cutCn, String cutEn) { Map mapBaseDateCn = new HashMap<>(); Map mapBaseDateEn = new HashMap<>(); + StringBuilder fileTextAll = new StringBuilder(); for (OSSFile ossFile : fileInfos) { Map stringMapCn = new HashMap<>(); Map stringMapEn = new HashMap<>(); @@ -1895,6 +1902,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl