fix:87342
This commit is contained in:
+1
-1
@@ -222,7 +222,7 @@ 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(" if(standard_name like '%").append(searchContent[i]).append("%',1,0) ");
|
select.append(" LENGTH(standard_name) - LENGTH(REPLACE(standard_name, '" + searchContent[i] + "', '')) ");
|
||||||
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