Skip to content

Commit

Permalink
Merge pull request #42 from imdangg/feat/fix
Browse files Browse the repository at this point in the history
InsightSpecification 수정
  • Loading branch information
yeonkyungJoo authored Jan 18, 2025
2 parents bad6904 + 13fce78 commit 52f47a6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public static Specification<InsightEntity> equalsEupMyeonDong(String eupMyeonDon
};
}

public static Specification<InsightEntity> equalsApartmentComplexName(String apartComplexName) {
public static Specification<InsightEntity> equalsApartmentComplexName(String apartmentComplexName) {
return (Root<InsightEntity> 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);
};
}
}

0 comments on commit 52f47a6

Please sign in to comment.