From a15a294e664da42cdebf9a6856301b3b8a3a2d7b Mon Sep 17 00:00:00 2001 From: DoodlesOnMyFood Date: Fri, 26 Apr 2024 21:56:23 +0900 Subject: [PATCH] =?UTF-8?q?request=EC=97=90=20genders=EA=B0=80=20=EB=AA=85?= =?UTF-8?q?=EC=8B=9C=EB=90=98=EC=9D=B4=20=EC=9E=88=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EC=9D=80=20=EA=B2=BD=EC=9A=B0=20=ED=95=B4=EB=8B=B9=20predicate?= =?UTF-8?q?=20=EB=AC=B4=EC=8B=9C?= 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),