Skip to content

Commit

Permalink
CCMSPUI-529 Fixed NotificationSearchRepository filter SQL method
Browse files Browse the repository at this point in the history
Signed-off-by: Jamie Briggs <jamie.briggs@digital.justice.gov.uk>
  • Loading branch information
Jamie Briggs committed Feb 3, 2025
1 parent df8b8c8 commit c0ce5c1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ private static String getFilterSql(Long providerId,
}
// Include closed (If true, include all)
if (Boolean.FALSE.equals(includeClosed)) {
sj.add("IS_OPEN = true");
sj.add("IS_OPEN = 'true'");
}
if (stringNotEmpty(notificationType)) {
sj.add("ACTION_NOTIFICATION_IND = '" + notificationType + "'");
}
if (Objects.nonNull(dateFrom)) {
sj.add("DATE_ASSIGNED >= '" + dateFrom + "'");
sj.add("DATE_ASSIGNED >= TO_DATE('" + dateFrom + "', 'YYYY-MM-DD')");
}
if (Objects.nonNull(dateTo)) {
sj.add("DATE_ASSIGNED <= '" + dateTo + "'");
sj.add("DATE_ASSIGNED <= TO_DATE('" + dateTo + "', 'YYYY-MM-DD')");
}
return sj + " ";
}
Expand Down

0 comments on commit c0ce5c1

Please sign in to comment.