Răsfoiți Sursa

fix(运营平台接口-机构模糊查询): 运营平台接口-机构模糊查询

运营平台接口-机构模糊查询
mazq 3 ani în urmă
părinte
comite
5a9ffc55a7

+ 1 - 1
dcuc-auth-service/src/main/java/com/dragoninfo/dcuc/auth/sub/service/impl/AuthOrgInfoService.java

@@ -235,7 +235,7 @@ public class AuthOrgInfoService implements IAuthOrgInfoService {
 
     @Override
     public List<AuthOrgInfo> getByCodeLike(String orgCodeLike) {
-        Specification<AuthOrgInfo> specification = (root, query, cb) -> cb.like(root.get("code"), "%" + orgCodeLike + "%");
+        Specification<AuthOrgInfo> specification = (root, query, cb) -> cb.like(root.get("code"),orgCodeLike + "%");
         return orgInfoRepository.findAll(specification);
     }
 }