feat: There is no way the, #55761 8986的模糊查询,系统查询不到

This commit is contained in:
396572590@qq.com
2022-06-27 16:07:00 +08:00
parent ae0bb036d4
commit fa2235a993
4 changed files with 146 additions and 33 deletions
@@ -14,4 +14,19 @@ public class ElasticsearchConstant {
public static final String SUCCESS_DELETED = "DELETED";
//删除过程中未找到对应数据返回结果
public static final String HAVE_NOT_FOUND= "NOT_FOUND";
//字符串转换为小写
public static String exChangeLower(String str){
//把一个字符串中的大写转为小写
String real = "";
for(int i=0;i<str.length();i++){
//如果是大写
if(!(str.substring(i, i+1).equals(str.substring(i, i+1).toLowerCase()))){
real += str.substring(i, i+1).toLowerCase();
}else{
real += str.substring(i, i+1);
}
}
return real;
}
}