Skip to content

Commit

Permalink
[PPANTT-106] feat: updated Stazioni with new filter in stazioni repos…
Browse files Browse the repository at this point in the history
…itory
  • Loading branch information
alessio-cialini committed Sep 5, 2024
1 parent 803d016 commit 73a5b28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Page<Stazioni> findAllByFilters(
+ " upper(:codiceIntermediario), '%')) "
+ " AND (cast(cast(:createDateBefore as text) as timestamp) IS NULL OR s.createDate < cast(cast(:createDateBefore as text) as timestamp)) "
+ " AND (cast(cast(:createDateAfter as text) as timestamp) IS NULL OR s.createDate > cast(cast(:createDateAfter as text) as timestamp)) "
+ " AND ((:connectionType IS NULL OR :connectionType = 'NONE) "
+ " AND ((:connectionType IS NULL OR :connectionType = 'NONE') "
+ " OR (:connectionType = 'SYNC' AND servizio LIKE '%gpd%')"
+ " OR (:connectionType = 'ASYNC' AND (servizio IS NULL or servizio NOT LIKE '%gpd%')))")
Page<Stazioni> findAllByFilters(
Expand All @@ -75,7 +75,7 @@ Page<Stazioni> findAllByFilters(
+ " concat('%', upper(:codiceIntermediario), '%')) "
+ " AND (cast(cast(:createDateBefore as text) as timestamp) IS NULL OR s.createDate < cast(cast(:createDateBefore as text) as timestamp)) "
+ " AND (cast(cast(:createDateAfter as text) as timestamp) IS NULL OR s.createDate > cast(cast(:createDateAfter as text) as timestamp)) "
+ " AND ((:connectionType IS NULL OR :connectionType = 'NONE) "
+ " AND ((:connectionType IS NULL OR :connectionType = 'NONE') "
+ " OR (:connectionType = 'SYNC' AND servizio LIKE '%gpd%')"
+ " OR (:connectionType = 'ASYNC' AND (servizio IS NULL or servizio NOT LIKE '%gpd%')))"
)
Expand Down

0 comments on commit 73a5b28

Please sign in to comment.