-
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.
Merge pull request #2767 from navikt/lagre-resultat-av-inntektskontro…
…ll-selvstendig-næringsdrivende Lagre resultat av inntektskontroll selvstendig næringsdrivende
- Loading branch information
Showing
18 changed files
with
96 additions
and
15 deletions.
There are no files selected for viewing
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
...æringsinntektBrukernotifikasjonService.kt → ...æringsinntektBrukernotifikasjonService.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
...stendig/NæringsinntektDataForBeregning.kt → ...ontroll/NæringsinntektDataForBeregning.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
.../NæringsinntektDataForBeregningService.kt → .../NæringsinntektDataForBeregningService.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
...g/NæringsinntektIngenEndringPdfRequest.kt → ...l/NæringsinntektIngenEndringPdfRequest.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
...selvstendig/NæringsinntektKontrollBrev.kt → ...ktskontroll/NæringsinntektKontrollBrev.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
25 changes: 25 additions & 0 deletions
25
...main/kotlin/no/nav/familie/ef/sak/næringsinntektskontroll/NæringsinntektKontrollDomain.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,25 @@ | ||
package no.nav.familie.ef.sak.næringsinntektskontroll | ||
|
||
import org.springframework.data.annotation.Id | ||
import org.springframework.data.relational.core.mapping.Column | ||
import org.springframework.data.relational.core.mapping.Table | ||
import java.time.LocalDateTime | ||
import java.util.UUID | ||
|
||
@Table("naeringsinntekt_kontroll") | ||
data class NæringsinntektKontrollDomain( | ||
@Id | ||
val id: UUID = UUID.randomUUID(), | ||
val oppgaveId: Long, | ||
val fagsakId: UUID, | ||
@Column("kjoretidspunkt") | ||
val kjøretidspunkt: LocalDateTime = LocalDateTime.now(), | ||
val utfall: NæringsinntektKontrollUtfall, | ||
) | ||
|
||
enum class NæringsinntektKontrollUtfall { | ||
KONTROLLERES_IKKE, | ||
OPPFYLLER_IKKE_AKTIVITETSPLIKT, | ||
MINIMUM_TI_PROSENT_ENDRING_I_INNTEKT, | ||
UENDRET_INNTEKT, | ||
} |
2 changes: 1 addition & 1 deletion
2
...g/NæringsinntektKontrollForOppgaveTask.kt → ...l/NæringsinntektKontrollForOppgaveTask.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
11 changes: 11 additions & 0 deletions
11
.../kotlin/no/nav/familie/ef/sak/næringsinntektskontroll/NæringsinntektKontrollRepository.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,11 @@ | ||
package no.nav.familie.ef.sak.næringsinntektskontroll | ||
|
||
import no.nav.familie.ef.sak.repository.InsertUpdateRepository | ||
import no.nav.familie.ef.sak.repository.RepositoryInterface | ||
import org.springframework.stereotype.Repository | ||
import java.util.UUID | ||
|
||
@Repository | ||
interface NæringsinntektKontrollRepository : | ||
RepositoryInterface<NæringsinntektKontrollDomain, UUID>, | ||
InsertUpdateRepository<NæringsinntektKontrollDomain> |
2 changes: 1 addition & 1 deletion
2
...tendig/NæringsinntektKontrollScheduler.kt → ...ntroll/NæringsinntektKontrollScheduler.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
...selvstendig/NæringsinntektNotatService.kt → ...ktskontroll/NæringsinntektNotatService.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
7 changes: 7 additions & 0 deletions
7
src/main/resources/db/migration/V151__inntektskontroll_for_selvstendig_naeringsdrivende.sql
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,7 @@ | ||
CREATE TABLE naeringsinntekt_kontroll( | ||
id UUID PRIMARY KEY, | ||
oppgave_id INT, | ||
fagsak_id UUID, | ||
kjoretidspunkt TIMESTAMP(3), | ||
utfall VARCHAR | ||
); |
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
...stendig/NæringsinntektKontrollBrevTest.kt → ...ontroll/NæringsinntektKontrollBrevTest.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
20 changes: 20 additions & 0 deletions
20
...lin/no/nav/familie/ef/sak/næringsinntektskontroll/NæringsinntektKontrollRepositoryTest.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,20 @@ | ||
package no.nav.familie.ef.sak.no.nav.familie.ef.sak.næringsinntektskontroll | ||
|
||
import no.nav.familie.ef.sak.OppslagSpringRunnerTest | ||
import no.nav.familie.ef.sak.næringsinntektskontroll.NæringsinntektKontrollDomain | ||
import no.nav.familie.ef.sak.næringsinntektskontroll.NæringsinntektKontrollRepository | ||
import no.nav.familie.ef.sak.næringsinntektskontroll.NæringsinntektKontrollUtfall | ||
import org.junit.jupiter.api.Test | ||
import org.springframework.beans.factory.annotation.Autowired | ||
import java.time.LocalDateTime | ||
import java.util.UUID | ||
|
||
class NæringsinntektKontrollRepositoryTest : OppslagSpringRunnerTest() { | ||
@Autowired | ||
private lateinit var næringsinntektKontrollRepository: NæringsinntektKontrollRepository | ||
|
||
@Test | ||
fun testInsert() { | ||
næringsinntektKontrollRepository.insert(NæringsinntektKontrollDomain(oppgaveId = 1, fagsakId = UUID.randomUUID(), kjøretidspunkt = LocalDateTime.now(), utfall = NæringsinntektKontrollUtfall.UENDRET_INNTEKT)) | ||
} | ||
} |
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