Skip to content

Commit

Permalink
修复模糊查询问题 (#333)
Browse files Browse the repository at this point in the history
修复broker模糊查询问题
  • Loading branch information
llIlll committed Dec 29, 2020
1 parent f4c3b84 commit 435a700
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ protected String getSearchSql(String prefix, BrokerQuery query, List<Object> par
} else {
if (query.getFuzzy() != null && query.getFuzzy()) {
sql.append(" AND `ip` LIKE ?");
params.add("%");
params.add(query.getKeyword());
params.add("%");
params.add("%" + query.getKeyword() + "%");
} else {
sql.append(" AND `ip` = ?");
params.add(query.getKeyword());
Expand Down

0 comments on commit 435a700

Please sign in to comment.