Skip to content

Commit

Permalink
fix: paymentsReportingView query
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioT90 committed Feb 13, 2025
1 parent ce6391b commit 2dfad7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public interface PaymentsReportingViewRepository extends Repository<PaymentsRepo
+ "WHERE p.organizationId = :organizationId "
+ "AND (:iuf IS NULL OR p.iuf = :iuf) "
+ "AND (:regulationUniqueIdentifier IS NULL OR p.regulationUniqueIdentifier = :regulationUniqueIdentifier) "
+ "AND (cast(:regulationDateFrom AS DATE) IS NULL OR p.regulationDate >= cast(:regulationDateFrom AS DATE)) "
+ "AND (cast(:regulationDateTo AS DATE) IS NULL OR p.regulationDate <= cast(:regulationDateTo AS DATE))")
+ "AND (cast(:regulationDateFrom AS DATE) IS NULL OR p.regulationDate >= :regulationDateFrom) "
+ "AND (cast(:regulationDateTo AS DATE) IS NULL OR p.regulationDate <= :regulationDateTo)")
Page<PaymentsReportingView> findDistinctByIufAndRegulationUniqueIdentifier(
@Parameter(required = true) @Param("organizationId") Long organizationId,
@Param("iuf") String iuf,
Expand Down

0 comments on commit 2dfad7b

Please sign in to comment.