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 authored Apr 8, 2023
1 parent 9a3f7ac commit a5bc011
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 a5bc011

Please sign in to comment.