Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static NoticeFacilityListResponse from(Map<FacilityType, Integer> src) {

List<FacilityType> infraList = src.entrySet().stream()
.filter(e -> e.getValue() != null && e.getValue() >= 3)
.map(entry -> entry.getKey().displayType())
.map(Map.Entry::getKey)
.distinct()
.toList();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public List<FacilityType> getFacilities(String complexId) {
/// 3개 이상인 FacilityType
return response.entrySet().stream()
.filter(entry -> entry.getValue() != null && entry.getValue() >= 3)
.map(entry -> entry.getKey().displayType())
.map(Map.Entry::getKey)
.distinct()
.toList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ public enum FacilityType {
STORE("대형마트-백화점", Set.of("대형마트-백화점", "대형점포")),
HOSPITAL("병원-약국", Set.of("병원-약국", "병원")),
LAUNDRY("세탁소", Set.of("세탁소", "빨래방")),

ELDER("노인 시설", Set.of("노인 시설")),
CHILD("아동 시설", Set.of("아동 시설")),
BICYCLE("자전거길", Set.of("자전거길")),
DISABLED("장애인 시설", Set.of("장애인 시설")),
YOUTH("청소년 시설", Set.of("청소년 시설")),
POLICE("파출소", Set.of("파출소")),

CULTURE_CENTER("문화센터", Set.of("문화센터"));

private final String value;
Expand Down
Loading