feat: 文本搜索增加与或条件,精准、模糊匹配

This commit is contained in:
junjun 2024-04-10 15:26:07 +08:00
parent 7354ff7819
commit 464b2523f0

View File

@ -107,7 +107,7 @@ public class ExtWhere2Str {
String term1 = split[0];
String logic = split[1];
String term2 = split[2];
whereValue = term1 + " " + getValue(term1, value.get(0)) + " " + logic + " " + whereName + " " + term2 + " " + getValue(term2, value.get(1));
whereValue = Utils.transFilterTerm(term1) + getValue(term1, value.get(0)) + " " + logic + " " + whereName + Utils.transFilterTerm(term2) + getValue(term2, value.get(1));
} else if (StringUtils.containsIgnoreCase(request.getOperator(), "in")) {
// 过滤空数据
if (value.contains(SQLConstants.EMPTY_SIGN)) {