|
@ -46,7 +46,7 @@ public class AggregateQueriesUtil { |
|
|
field.setAccessible(true); |
|
|
field.setAccessible(true); |
|
|
String underlineCase = StrUtil.toUnderlineCase(field.getName()); |
|
|
String underlineCase = StrUtil.toUnderlineCase(field.getName()); |
|
|
try { |
|
|
try { |
|
|
if (field.get(obj) != null) { |
|
|
if (field.get(obj) != null && field.get(obj) != "") { |
|
|
queries.eq(underlineCase, field.get(obj)); |
|
|
queries.eq(underlineCase, field.get(obj)); |
|
|
} |
|
|
} |
|
|
} catch (IllegalAccessException e) { |
|
|
} catch (IllegalAccessException e) { |
|
@ -69,7 +69,7 @@ public class AggregateQueriesUtil { |
|
|
field.setAccessible(true); |
|
|
field.setAccessible(true); |
|
|
String underlineCase = StrUtil.toUnderlineCase(field.getName()); |
|
|
String underlineCase = StrUtil.toUnderlineCase(field.getName()); |
|
|
try { |
|
|
try { |
|
|
if (field.get(obj) != null) { |
|
|
if (field.get(obj) != null && field.get(obj) != "") { |
|
|
queries.like(underlineCase, field.get(obj)); |
|
|
queries.like(underlineCase, field.get(obj)); |
|
|
} |
|
|
} |
|
|
} catch (IllegalAccessException e) { |
|
|
} catch (IllegalAccessException e) { |
|
|