diff --git a/src/main/java/com/xkrs/utils/Query.java b/src/main/java/com/xkrs/utils/Query.java index eab58f8..891c140 100644 --- a/src/main/java/com/xkrs/utils/Query.java +++ b/src/main/java/com/xkrs/utils/Query.java @@ -107,7 +107,7 @@ public class Query { list.add(criteriaBuilder.equal(root.get("businessCountry").as(String.class), businessCountry)); } if(businessName != null && !"".equals(businessName)){ - list.add(criteriaBuilder.equal(root.get("businessName").as(String.class), businessName)); + list.add(criteriaBuilder.like(root.get("businessName").as(String.class), "%" + businessName + "%")); } list.add(criteriaBuilder.equal(root.get("businessType").as(String.class), "1")); Predicate[] predicates = new Predicate[list.size()];