修改UAT 搜索中心 对/符号的处理

This commit is contained in:
高嵩
2023-06-27 20:44:03 +08:00
parent 09f16fb35e
commit 301a0209c7
@@ -44,6 +44,7 @@ import org.jetbrains.annotations.NotNull;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.swing.*;
import java.util.*;
import java.util.stream.Collectors;
@@ -430,7 +431,9 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
}
String selectValue = searchVO.getSelectValue();
String selectValueTwo = searchVO.getSelectValueTwo();
selectValueTwo = selectValueTwo.replaceAll("/", "\\\\/");
if(StringUtils.isNotEmpty(selectValueTwo)){
selectValueTwo = selectValueTwo.replaceAll("/", "\\\\/");
}
//1. 需要查询的字段
List<String> fieldList = new ArrayList<>();
fieldList.add("serial_number");//权重6
@@ -535,7 +538,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
if(StringUtils.isEmpty(selectValue) || StringUtils.equals(selectValue,SEARCH_FLAG)){
Map<String,Object> createTime = new HashMap<>();
Map<String,Object> createTime1 = new HashMap<>();
createTime.put("order","desc");
createTime.put("order", "desc");
createTime1.put("create_time",createTime);
sort.putAll(createTime1);
}else {