From cf033734e82344a3bd24bbbda713756766630825 Mon Sep 17 00:00:00 2001 From: DoodlesOnMyFood <57210973+DoodlesOnMyFood@users.noreply.github.com> Date: Sun, 28 Apr 2024 11:57:27 +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=EC=9D=98=20=ED=94=BD?= =?UTF-8?q?=EC=8A=A4=20(#436)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infrastructure/JobOpeningRepositoryImpl.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 6c425a55..0720f7af 100644 --- a/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt +++ b/server/src/main/kotlin/com/fone/jobOpening/infrastructure/JobOpeningRepositoryImpl.kt @@ -103,8 +103,14 @@ class JobOpeningRepositoryImpl( from(entity(JobOpening::class)) where( and( - if (request.genders.isNotEmpty()) col(JobOpening::type).equal(request.type) else null, - col(JobOpening::gender).inValues(request.genders), + col(JobOpening::type).equal(request.type), + if (request.genders.isNotEmpty()) { + col( + JobOpening::gender + ).inValues(request.genders) + } else { + null + }, col(JobOpening::ageMax).greaterThanOrEqualTo(request.ageMin), col(JobOpening::ageMin).lessThanOrEqualTo(request.ageMax), if (request.domains.isNotEmpty()) {