From 13fce782e4089b33af32ede28cb4629a5b8e9bb7 Mon Sep 17 00:00:00 2001 From: "DESKTOP-0N7JBUG\\user" Date: Sat, 18 Jan 2025 17:15:45 +0900 Subject: [PATCH] =?UTF-8?q?InsightSpecification=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../insight/repository/InsightSpecification.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/insight-service/insight-persistence/src/main/java/com/project/imdang/insight/service/persistence/insight/repository/InsightSpecification.java b/insight-service/insight-persistence/src/main/java/com/project/imdang/insight/service/persistence/insight/repository/InsightSpecification.java index 32a75d9..eda5078 100644 --- a/insight-service/insight-persistence/src/main/java/com/project/imdang/insight/service/persistence/insight/repository/InsightSpecification.java +++ b/insight-service/insight-persistence/src/main/java/com/project/imdang/insight/service/persistence/insight/repository/InsightSpecification.java @@ -35,12 +35,12 @@ public static Specification equalsEupMyeonDong(String eupMyeonDon }; } - public static Specification equalsApartmentComplexName(String apartComplexName) { + public static Specification equalsApartmentComplexName(String apartmentComplexName) { return (Root root, CriteriaQuery query, CriteriaBuilder criteriaBuilder) -> { - if (apartComplexName == null || apartComplexName.isEmpty()) { + if (apartmentComplexName == null || apartmentComplexName.isEmpty()) { return criteriaBuilder.conjunction(); } - return criteriaBuilder.equal(root.get("apartComplexName"), apartComplexName); + return criteriaBuilder.equal(root.get("apartmentComplex").get("name"), apartmentComplexName); }; } }