修改了各市区县代理商查看商家入驻信息的功能模块

This commit is contained in:
XinYi Song 2021-12-21 09:20:13 +08:00
parent a8e18cce82
commit 0062f8c9dd

View File

@ -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()];