diff --git a/eladmin-common/src/main/java/me/zhengjie/utils/QueryHelp.java b/eladmin-common/src/main/java/me/zhengjie/utils/QueryHelp.java index c1ad8ab8d..8b0876c01 100644 --- a/eladmin-common/src/main/java/me/zhengjie/utils/QueryHelp.java +++ b/eladmin-common/src/main/java/me/zhengjie/utils/QueryHelp.java @@ -41,7 +41,7 @@ public static Predicate getPredicate(Root root, Q query, CriteriaBuild String attributeName = isBlank(propName) ? field.getName() : propName; Class fieldType = field.getType(); Object val = field.get(query); - if (ObjectUtil.isNull(val)) { + if (ObjectUtil.isNull(val) || "".equals(val)) { continue; } Join join = null;