feat: There is no way the, #55761 8986的模糊查询,系统查询不到
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user