Skip to content

Commit

Permalink
[alerter]bugfix: fix the error according to the monitorid query. (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
aystzh committed Apr 8, 2023
1 parent a36c7af commit 4ca17ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ public ResponseEntity<Message<Page<Alert>>> getAlerts(
}
andList.add(inPredicate);
}
if (monitorId != null) {
Predicate predicate = criteriaBuilder.like(root.get("tags").as(String.class), "%" + monitorId + "%");
andList.add(predicate);
}
if (priority != null) {
Predicate predicate = criteriaBuilder.equal(root.get("priority"), priority);
andList.add(predicate);
Expand Down

0 comments on commit 4ca17ae

Please sign in to comment.