Skip to content

Commit

Permalink
Update InntektsmeldingMappingStrategy.java
Browse files Browse the repository at this point in the history
Fikset mapping av aarsakTilInnsending type
  • Loading branch information
krharum authored Aug 22, 2024
1 parent b62ee3a commit 4ec20f4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public void mapAtoB(RsInntektsmelding rsInntektsmelding,
public void mapAtoB(RsInntektsmelding.Inntektsmelding rsInntektsmelding,
RsInntektsmeldingRequest inntektsmelding, MappingContext context) {

inntektsmelding.setAarsakTilInnsending(
nullcheckSetDefaultValue(inntektsmelding.getAarsakTilInnsending(), AarsakInnsendingKodeListe.NY));
inntektsmelding.setAarsakTilInnsending(nonNull(rsInntektsmelding.getAarsakTilInnsending()) ?
mapperFacade.map(rsInntektsmelding.getAarsakTilInnsending(), AarsakInnsendingKodeListe.class) :
AarsakInnsendingKodeListe.NY);

if (nonNull(rsInntektsmelding.getArbeidsgiver())) {

Expand Down Expand Up @@ -254,4 +255,4 @@ private static LocalDateTime toLocalDateTime(LocalDate localDate) {

return nonNull(localDate) ? localDate.atStartOfDay() : null;
}
}
}

0 comments on commit 4ec20f4

Please sign in to comment.