新增[RANGE区间查询]

This commit is contained in:
2019-07-09 16:52:13 +08:00
parent 8454cdb3fb
commit 2d925e3fa7
3 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package net.tccn.base.dbq.fbean;
import net.tccn.base.Kv;
import net.tccn.base.X;
import java.util.ArrayList;
import java.util.List;
@@ -30,7 +31,7 @@ public enum FilterType {
//不同的条件构建过滤语句
public static String buildSql(Filter filter) {
if (filter.getValue() == null || filter.getValue().length() == 0) {
if (X.isEmpty(filter.getValue()) && X.isEmpty(filter.getValues())) {
return "";
}
FilterType filterType = getFilterType(filter.getType());