From dc15084df5fb16df330224a6202079334d254632 Mon Sep 17 00:00:00 2001 From: DoodlesOnMyFood <57210973+DoodlesOnMyFood@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:02:45 +0900 Subject: [PATCH] =?UTF-8?q?[FO-1042]=20=EA=B5=AC=EC=9D=B8=EA=B5=AC?= =?UTF-8?q?=EC=A7=81=EC=97=90=20gender=20=EB=AA=85=EC=8B=9C=EB=90=98?= =?UTF-8?q?=EC=96=B4=20=EC=9E=88=EC=A7=80=20=EC=95=8A=EC=9C=BC=EB=A9=B4=20?= =?UTF-8?q?=EA=B0=92=EC=9D=B4=20=EC=95=88=20=EB=82=98=EC=98=A4=EB=8A=94=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=94=BD=EC=8A=A4=20(#435)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt b/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt index 036719e5..6c425a55 100644 --- a/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt +++ b/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt @@ -103,7 +103,7 @@ class JobOpeningRepositoryImpl( from(entity(JobOpening::class)) where( and( - col(JobOpening::type).equal(request.type), + if (request.genders.isNotEmpty()) col(JobOpening::type).equal(request.type) else null, col(JobOpening::gender).inValues(request.genders), col(JobOpening::ageMax).greaterThanOrEqualTo(request.ageMin), col(JobOpening::ageMin).lessThanOrEqualTo(request.ageMax),