feat: There is no way the, 搜索中心 一般搜索 新增权重判断标准号查询逻辑

This commit is contained in:
super_liu
2022-04-13 10:01:46 +08:00
parent bbaab05b58
commit 666480ff86
2 changed files with 91 additions and 20 deletions
@@ -86,7 +86,11 @@ public class SearchCenterController extends BaseController<Map<String, Object>>
if("fulltextserch".equals(searchInfoEO.getSelectIndex()) || "fulltextserch"== searchInfoEO.getSelectIndex()){
Pattern pattern = Pattern.compile("^[0-9a-zA-Z\\.\\(\\\\\\)\\s\\/\\-]+$");
if (null != searchInfoEO.getSelectValue() && StringUtils.isNotBlank(searchInfoEO.getSelectValue())) {
result = searchCenterService.searchSarBykeyAndHighLight(searchInfoEO);
if (pattern.matcher(searchInfoEO.getSelectValue()).matches()) {
result = searchCenterService.searchSarBykeyAndHighLightNumber(searchInfoEO);
}else {
result = searchCenterService.searchSarBykeyAndHighLight(searchInfoEO);
}
} else {
result = searchCenterService.searchSarBykeyAndHighLight(searchInfoEO);
}