修改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.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import javax.swing.*;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@@ -430,7 +431,9 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
} }
String selectValue = searchVO.getSelectValue(); String selectValue = searchVO.getSelectValue();
String selectValueTwo = searchVO.getSelectValueTwo(); String selectValueTwo = searchVO.getSelectValueTwo();
if(StringUtils.isNotEmpty(selectValueTwo)){
selectValueTwo = selectValueTwo.replaceAll("/", "\\\\/"); selectValueTwo = selectValueTwo.replaceAll("/", "\\\\/");
}
//1. 需要查询的字段 //1. 需要查询的字段
List<String> fieldList = new ArrayList<>(); List<String> fieldList = new ArrayList<>();
fieldList.add("serial_number");//权重6 fieldList.add("serial_number");//权重6