Skip to content

Commit

Permalink
Merge branch 'main' into vaas/skru-av-send-gamle-udelte-referater
Browse files Browse the repository at this point in the history
  • Loading branch information
johatr authored Dec 20, 2024
2 parents ad4df14 + c348291 commit 3b63669
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.veilarbaktivitet.oppfolging.periode

import no.nav.veilarbaktivitet.veilarbdbutil.VeilarbAktivitetSqlParameterSource
import no.nav.veilarbaktivitet.person.Person.AktorId
import no.nav.veilarbaktivitet.veilarbdbutil.VeilarbAktivitetSqlParameterSource
import org.slf4j.LoggerFactory
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate
Expand Down Expand Up @@ -40,7 +40,7 @@ open class OppfolgingsperiodeDAO(val jdbc: NamedParameterJdbcTemplate) {
val params = MapSqlParameterSource()
.addValue("aktorId", aktorId.get(), Types.VARCHAR)
val sql = """
SELECT * FROM oppfolgingsperiode WHERE aktorId = :aktorId ORDER BY coalesce(til, TO_DATE('9999-12-31', 'YYYY-MM-DD')) DESC
SELECT * FROM oppfolgingsperiode WHERE aktorId = :aktorId ORDER BY fra DESC
""".trimIndent()
return jdbc.query(sql, params) {row, _ ->
Oppfolgingsperiode(
Expand Down

0 comments on commit 3b63669

Please sign in to comment.