fix:79078
This commit is contained in:
@@ -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)){
|
||||
|
||||
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user