fix:87342

This commit is contained in:
梁琦涛
2024-07-24 13:33:57 +08:00
parent 4eee252ceb
commit aa7618e73f
@@ -222,7 +222,7 @@ public class LawsHomeSearchServiceImpl implements ILawsHomeSearchService {
select.append("( ");
for (int i = 0; i < searchContent.length; 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){
regexp.append("|");
select.append("+");