diff --git a/通用条件查询/woniu-web-master/src/main/java/com/woniu/util/AggregateQueriesUtil.java b/通用条件查询/woniu-web-master/src/main/java/com/woniu/util/AggregateQueriesUtil.java index 40f68dc..f961bbe 100644 --- a/通用条件查询/woniu-web-master/src/main/java/com/woniu/util/AggregateQueriesUtil.java +++ b/通用条件查询/woniu-web-master/src/main/java/com/woniu/util/AggregateQueriesUtil.java @@ -46,7 +46,7 @@ public class AggregateQueriesUtil { field.setAccessible(true); String underlineCase = StrUtil.toUnderlineCase(field.getName()); try { - if (field.get(obj) != null) { + if (field.get(obj) != null && field.get(obj) != "") { queries.eq(underlineCase, field.get(obj)); } } catch (IllegalAccessException e) { @@ -69,7 +69,7 @@ public class AggregateQueriesUtil { field.setAccessible(true); String underlineCase = StrUtil.toUnderlineCase(field.getName()); try { - if (field.get(obj) != null) { + if (field.get(obj) != null && field.get(obj) != "") { queries.like(underlineCase, field.get(obj)); } } catch (IllegalAccessException e) {