修改标题检索bug
This commit is contained in:
+3
-3
@@ -168,9 +168,9 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
|
|||||||
select.append("( ");
|
select.append("( ");
|
||||||
for (int i = 0; i < searchContent.length; i++) {
|
for (int i = 0; i < searchContent.length; i++) {
|
||||||
regexp.append(searchContent[i]);
|
regexp.append(searchContent[i]);
|
||||||
select.append(" LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '" + searchContent[i] + "'," +
|
select.append(" LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '").append(searchContent[i])
|
||||||
" '" + (searchContent[i].length() > 1 ?
|
.append("',").append(" '").append(searchContent[i].length() > 1 ?
|
||||||
searchContent[i].substring(0,searchContent[i].length()-1) : "") + "')) ");
|
searchContent[i].substring(0, searchContent[i].length() - 1) : "").append("')) ");
|
||||||
if(i != searchContent.length - 1){
|
if(i != searchContent.length - 1){
|
||||||
regexp.append("|");
|
regexp.append("|");
|
||||||
select.append("+");
|
select.append("+");
|
||||||
|
|||||||
Reference in New Issue
Block a user