forked from github/dataease
feat: 文本搜索增加与或条件,精准、模糊匹配
This commit is contained in:
parent
7354ff7819
commit
464b2523f0
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user