Skip to content

Commit

Permalink
Satt enhet TR til dvh ved feil, rett til TR0000 (#6823)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolarsen authored Oct 28, 2024
1 parent 3a96b99 commit 5932862
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,19 @@ public Response fikseAnkeBehandlingerEnhet3() {
return Response.ok(rader).build();
}

@POST
@Path("/fikseAnkeBehandlingerEnhet0000")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Operation(description = "Kopiering før unmapping", tags = "FORVALTNING-uttrekk")
@BeskyttetRessurs(actionType = ActionType.CREATE, resourceType = ResourceType.DRIFT)
public Response fikseAnkeBehandlingerEnhet0000() {
var rader = entityManager.createNativeQuery("""
update fpsak_hist.behandling_dvh bdvh
set BEHANDLENDE_ENHET = 'TR0000'
where BEHANDLENDE_ENHET = 'TR'
""").executeUpdate();
return Response.ok(rader).build();
}

}

0 comments on commit 5932862

Please sign in to comment.