From 8ec4351429464158bb63b29c48fbb7bdf68f6cf9 Mon Sep 17 00:00:00 2001 From: blackchoice Date: Thu, 28 Mar 2024 08:54:17 +0000 Subject: [PATCH] =?UTF-8?q?update=20=E9=80=9A=E7=94=A8=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2/woniu-web-master/src/main/java/com/woniu/uti?= =?UTF-8?q?l/AggregateQueriesUtil.java.=20=E5=BD=93=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=B8=BA=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E6=8B=BC=E6=8E=A5=E8=BF=9B=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/woniu/util/AggregateQueriesUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {