-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Laget egen mappe for oppfølgingsoppgave og flyttet tilhørende kode ti…
…l den. Refaktorert kode for lagring av oppgaver for ferdigstilling og oppgaver for opprettelse, bruker deleteByBehandlingId og insert.
- Loading branch information
1 parent
56b35a9
commit 4223935
Showing
26 changed files
with
75 additions
and
63 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
...o/nav/familie/ef/sak/behandling/oppgaveforopprettelse/OppgaverForOpprettelseRepository.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
...amilie/ef/sak/behandling/oppgaverforferdigstilling/OppgaverForFerdigstillingRepository.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ain/kotlin/no/nav/familie/ef/sak/behandlingsflyt/task/FerdigstillFremleggsoppgaverTask.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...gsoppgave/OppfølgingsoppgaveController.kt → ...gsoppgave/OppfølgingsoppgaveController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...rdigstilling/OppgaverForFerdigstilling.kt → ...pgave/domain/OppgaverForFerdigstilling.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...eforopprettelse/OppgaverForOpprettelse.kt → ...soppgave/domain/OppgaverForOpprettelse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ropprettelse/OppgaverForOpprettelseDto.kt → ...ropprettelse/OppgaverForOpprettelseDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...milie/ef/sak/oppfølgingsoppgave/oppgaveforopprettelse/OppgaverForOpprettelseRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package no.nav.familie.ef.sak.behandling.oppgaveforopprettelse | ||
|
||
import no.nav.familie.ef.sak.oppfølgingsoppgave.domain.OppgaverForOpprettelse | ||
import no.nav.familie.ef.sak.repository.InsertUpdateRepository | ||
import no.nav.familie.ef.sak.repository.RepositoryInterface | ||
import org.springframework.data.jdbc.repository.query.Modifying | ||
import org.springframework.data.jdbc.repository.query.Query | ||
import org.springframework.stereotype.Repository | ||
import java.util.UUID | ||
|
||
@Repository | ||
interface OppgaverForOpprettelseRepository : | ||
RepositoryInterface<OppgaverForOpprettelse, UUID>, | ||
InsertUpdateRepository<OppgaverForOpprettelse> { | ||
@Modifying | ||
@Query("DELETE from oppgaver_for_opprettelse where behandling_id = :behandlingId") | ||
fun deleteByBehandlingId(behandlingId: UUID) | ||
} |
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
...f/sak/oppfølgingsoppgave/oppgaverforferdigstilling/OppgaverForFerdigstillingRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package no.nav.familie.ef.sak.behandling.oppgaverforferdigstilling | ||
|
||
import no.nav.familie.ef.sak.oppfølgingsoppgave.domain.OppgaverForFerdigstilling | ||
import no.nav.familie.ef.sak.repository.InsertUpdateRepository | ||
import no.nav.familie.ef.sak.repository.RepositoryInterface | ||
import org.springframework.data.jdbc.repository.query.Modifying | ||
import org.springframework.data.jdbc.repository.query.Query | ||
import org.springframework.stereotype.Repository | ||
import java.util.UUID | ||
|
||
@Repository | ||
interface OppgaverForFerdigstillingRepository : | ||
InsertUpdateRepository<OppgaverForFerdigstilling>, | ||
RepositoryInterface<OppgaverForFerdigstilling, UUID> { | ||
@Modifying | ||
@Query("DELETE from oppgaver_for_ferdigstilling where behandling_id = :behandlingId") | ||
fun deleteByBehandlingId(behandlingId: UUID) | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/no/nav/familie/ef/sak/oppgave/OppgaveController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/kotlin/no/nav/familie/ef/sak/vedtak/NullstillVedtakService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.