-
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 #4680 from navikt/formater-tilbakemelding-beslutter
Formater returnert besluttelse
- Loading branch information
Showing
7 changed files
with
76 additions
and
47 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
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
51 changes: 26 additions & 25 deletions
51
mulighetsrommet-api/src/main/resources/db/migration/R__tilsagn_admin_view.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 |
---|---|---|
@@ -1,32 +1,33 @@ | ||
drop view if exists tilsagn_admin_dto_view; | ||
|
||
create view tilsagn_admin_dto_view as | ||
select | ||
tilsagn.id, | ||
tilsagn.tiltaksgjennomforing_id, | ||
tilsagn.periode_start, | ||
tilsagn.periode_slutt, | ||
tilsagn.beregning, | ||
tilsagn.annullert_tidspunkt, | ||
tilsagn.lopenummer, | ||
tilsagn.kostnadssted, | ||
tilsagn.opprettet_av, | ||
tilsagn.besluttelse, | ||
tilsagn.besluttet_tidspunkt, | ||
tilsagn.besluttet_av, | ||
tilsagn.avvist_aarsaker, | ||
tilsagn.avvist_forklaring, | ||
nav_enhet.navn as kostnadssted_navn, | ||
nav_enhet.overordnet_enhet as kostnadssted_overordnet_enhet, | ||
nav_enhet.type as kostnadssted_type, | ||
nav_enhet.status as kostnadssted_status, | ||
arrangor.id as arrangor_id, | ||
arrangor.organisasjonsnummer as arrangor_organisasjonsnummer, | ||
arrangor.navn as arrangor_navn, | ||
arrangor.slettet_dato is not null as arrangor_slettet, | ||
t.antall_plasser as antall_plasser, | ||
t.tiltaksnummer as tiltaksnummer | ||
select tilsagn.id, | ||
tilsagn.tiltaksgjennomforing_id, | ||
tilsagn.periode_start, | ||
tilsagn.periode_slutt, | ||
tilsagn.beregning, | ||
tilsagn.annullert_tidspunkt, | ||
tilsagn.lopenummer, | ||
tilsagn.kostnadssted, | ||
tilsagn.opprettet_av, | ||
tilsagn.besluttelse, | ||
tilsagn.besluttet_tidspunkt, | ||
tilsagn.besluttet_av, | ||
concat(nav_ansatt.fornavn, ' ', nav_ansatt.etternavn) as beslutternavn, | ||
tilsagn.avvist_aarsaker, | ||
tilsagn.avvist_forklaring, | ||
nav_enhet.navn as kostnadssted_navn, | ||
nav_enhet.overordnet_enhet as kostnadssted_overordnet_enhet, | ||
nav_enhet.type as kostnadssted_type, | ||
nav_enhet.status as kostnadssted_status, | ||
arrangor.id as arrangor_id, | ||
arrangor.organisasjonsnummer as arrangor_organisasjonsnummer, | ||
arrangor.navn as arrangor_navn, | ||
arrangor.slettet_dato is not null as arrangor_slettet, | ||
t.antall_plasser as antall_plasser, | ||
t.tiltaksnummer as tiltaksnummer | ||
from tilsagn | ||
inner join nav_enhet on nav_enhet.enhetsnummer = tilsagn.kostnadssted | ||
inner join arrangor on arrangor.id = tilsagn.arrangor_id | ||
inner join tiltaksgjennomforing t on t.id = tilsagn.tiltaksgjennomforing_id | ||
left join nav_ansatt on nav_ansatt.nav_ident = tilsagn.besluttet_av |
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