Skip to content

Commit

Permalink
EP-4401
Browse files Browse the repository at this point in the history
  • Loading branch information
oplekal committed Oct 24, 2024
1 parent 0cff525 commit a6ed059
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface JulkaisuRepository extends JpaRepository<OpetussuunnitelmanJulk
" SELECT * " +
" FROM julkaistu_opetussuunnitelma_data_view data" +
" WHERE 1 = 1 " +
" AND (:nimi LIKE '' OR LOWER(nimi->>:kieli) LIKE LOWER(CONCAT('%',:nimi,'%'))) " +
" AND (:nimi LIKE '' OR LOWER(nimi->>:kieli) LIKE LOWER(CONCAT('%',:nimi,'%')) OR EXISTS (SELECT 1 FROM jsonb_array_elements(organisaatiot) elem WHERE LOWER(elem->'nimi'->>:kieli) LIKE LOWER(CONCAT('%',:nimi,'%')))) " +
" AND (:perusteenDiaarinumero = '' OR peruste->>'diaarinumero' = :perusteenDiaarinumero) " +
" AND (COALESCE(:koulutustyypit, NULL) = '' OR koulutustyyppi IN (:koulutustyypit)) " +
" order by nimi->>:kieli asc " +
Expand Down

0 comments on commit a6ed059

Please sign in to comment.