Commit 8705a820 authored by 李欣峰's avatar 李欣峰

<dev>

1.修复获取我的api(getMyApi)接口,根据数据源模糊查询不准确的问题
parent e26be66a
......@@ -440,7 +440,7 @@ public class ApiServiceApplicationImpl implements ApiApplication {
predicates.add(keywordPredicate1);
}
if (StringUtils.isNotBlank(datasource)) {
String datasourceWord = StrUtil.builder("%", datasource, "%").toString();
String datasourceWord = StrUtil.builder("%", "\"name\""+":"+"\""+datasource, "%").toString();
Predicate keywordPredicate2 = criteriaBuilder.and(criteriaBuilder.like(root.get("datasource"), datasourceWord));
predicates.add(keywordPredicate2);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment