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 73a5b28 commit a35b380
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Page<Stazioni> findAllByFilters(
+ " null or upper(s.idStazione) like concat('%', upper(:idStazione), '%')) and"
+ " (:codiceIntermediario is null or upper(i.codiceIntermediario) like 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 (cast(cast(:createDateBefore as text) as timestamp) IS NULL OR s.dataCreazione < cast(cast(:createDateBefore as text) as timestamp)) "
+ " AND (cast(cast(:createDateAfter as text) as timestamp) IS NULL OR s.dataCreazione > cast(cast(:createDateAfter as text) as timestamp)) "
+ " 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 All @@ -73,8 +73,8 @@ Page<Stazioni> findAllByFilters(
+ " (:idStazione is null or upper(s.idStazione) like concat('%', upper(:idStazione),"
+ " '%')) and (:codiceIntermediario is null or upper(i.codiceIntermediario) like "
+ " 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 (cast(cast(:createDateBefore as text) as timestamp) IS NULL OR s.dataCreazione < cast(cast(:createDateBefore as text) as timestamp)) "
+ " AND (cast(cast(:createDateAfter as text) as timestamp) IS NULL OR s.dataCreazione > cast(cast(:createDateAfter as text) as timestamp)) "
+ " 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 a35b380

Please sign in to comment.