@@ -9,6 +9,7 @@ import no.nav.klage.search.api.view.AntallUtgaatteFristerResponse
9
9
import no.nav.klage.search.api.view.BehandlingerListResponse
10
10
import no.nav.klage.search.api.view.MineLedigeOppgaverCountQueryParams
11
11
import no.nav.klage.search.api.view.MineLedigeOppgaverQueryParams
12
+ import no.nav.klage.search.util.getLogger
12
13
import org.springframework.stereotype.Service
13
14
14
15
@Service
@@ -18,6 +19,12 @@ class OppgaverService(
18
19
private val elasticsearchService : ElasticsearchService ,
19
20
private val behandlingListMapper : BehandlingListMapper ,
20
21
) {
22
+
23
+ companion object {
24
+ @Suppress(" JAVA_CLASS_ON_COMPANION" )
25
+ private val logger = getLogger(javaClass.enclosingClass)
26
+ }
27
+
21
28
fun getLedigeOppgaverForInnloggetSaksbehandler (
22
29
queryParams : MineLedigeOppgaverQueryParams ,
23
30
): BehandlingerListResponse {
@@ -34,7 +41,7 @@ class OppgaverService(
34
41
)
35
42
36
43
val typer = queryParams.typer.ifEmpty {
37
- listOf ( Type . KLAGE .id, Type . ANKE .id, Type . BEHANDLING_ETTER_TRYGDERETTEN_OPPHEVET .id )
44
+ getDefaultSearchTypes( )
38
45
}
39
46
40
47
val searchCriteria = behandlingerSearchCriteriaMapper.toLedigeOppgaverSearchCriteria(
@@ -70,7 +77,7 @@ class OppgaverService(
70
77
)
71
78
72
79
val typer = queryParams.typer.ifEmpty {
73
- listOf ( Type . KLAGE .id, Type . ANKE .id, Type . BEHANDLING_ETTER_TRYGDERETTEN_OPPHEVET .id )
80
+ getDefaultSearchTypes( )
74
81
}
75
82
76
83
val searchCriteria = behandlingerSearchCriteriaMapper.toSearchCriteriaForLedigeMedUtgaattFrist(
@@ -90,6 +97,15 @@ class OppgaverService(
90
97
)
91
98
}
92
99
100
+ private fun getDefaultSearchTypes (): List <String > {
101
+ return listOf (
102
+ Type .KLAGE .id,
103
+ Type .ANKE .id,
104
+ Type .BEHANDLING_ETTER_TRYGDERETTEN_OPPHEVET .id,
105
+ Type .OMGJOERINGSKRAV .id,
106
+ )
107
+ }
108
+
93
109
private fun getYtelserQueryListForSaksbehandler (
94
110
queryYtelser : List <String >,
95
111
innstillingerYtelser : List <Ytelse >
0 commit comments