Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
f metode for å hente flere registreringer basert på id
Browse files Browse the repository at this point in the history
  • Loading branch information
Jørgen Tu Sveli committed Sep 1, 2021
1 parent 44186f4 commit 63e7eda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ class BrukerRegistreringRepositoryImpl(private val db: NamedParameterJdbcTemplat
return db.queryForObject(sql, mapOf("id" to brukerregistreringId), registreringMapper)!!
}

override fun hentBrukerregistreringerForIder(brukerregistreringIder: List<Long>): List<OrdinaerBrukerRegistrering> {
val sql = "SELECT * FROM $BRUKER_REGISTRERING WHERE $BRUKER_REGISTRERING_ID in :ider"

return db.query(sql, mapOf("ider" to brukerregistreringIder), registreringMapper)!!
}

override fun finnOrdinaerBrukerregistreringForAktorIdOgTilstand(
aktorId: AktorId,
tilstander: List<Status>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ interface BrukerRegistreringRepository {
fun hentBrukerregistreringForId(brukerregistreringId: Long): OrdinaerBrukerRegistrering
fun finnOrdinaerBrukerregistreringForAktorIdOgTilstand(aktorId: AktorId, tilstander: List<Status>): List<OrdinaerBrukerRegistrering>
fun hentBrukerTilknyttet(brukerRegistreringId: Long): Bruker
fun hentBrukerregistreringerForIder(brukerRegistreringIder: List<Long>): List<OrdinaerBrukerRegistrering>
}

0 comments on commit 63e7eda

Please sign in to comment.