fix:79078

This commit is contained in:
梁琦涛
2023-12-07 18:42:11 +08:00
parent 450ae8bbf4
commit ed12ca7cfb
2 changed files with 3 additions and 2 deletions
@@ -23,7 +23,7 @@ public class ReadWordUtil {
// String path = "E:\\DeskTop\\1111.doc";
// path = "E:\\DeskTop\\22222.docx";
// String path = "E:\\DeskTop\\标准所ISO-用户手册.doc";
String str = "";
String str = "--";
try {
if (path.endsWith(".doc")) {
if(MinioUtil.doesObjectExist(path)){
@@ -48,6 +48,7 @@ import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.jetbrains.annotations.NotNull;
import org.jsoup.Jsoup;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@@ -56,7 +57,6 @@ import org.springframework.util.ReflectionUtils;
import javax.annotation.Resource;
import java.lang.reflect.Field;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.CompletableFuture;
@@ -1315,6 +1315,7 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
try {
String wordContent = s;
if (StringUtils.isNotBlank(wordContent)) {
wordContent = Jsoup.parse(wordContent).text();
fileTextAll.append(wordContent).append(",");
}
} catch (Exception e) {