diff --git a/src/main/java/com/umc/commonplant/domain/place/dto/PlaceDto.java b/src/main/java/com/umc/commonplant/domain/place/dto/PlaceDto.java index 2ab436e..376e770 100644 --- a/src/main/java/com/umc/commonplant/domain/place/dto/PlaceDto.java +++ b/src/main/java/com/umc/commonplant/domain/place/dto/PlaceDto.java @@ -123,7 +123,7 @@ public static class getMainPage{ @AllArgsConstructor @Data public static class getPlaceBelongUser { - private Long placeId; + private String code; private String name; private String imgUrl; } diff --git a/src/main/java/com/umc/commonplant/domain/place/service/PlaceService.java b/src/main/java/com/umc/commonplant/domain/place/service/PlaceService.java index acdf520..440b28b 100644 --- a/src/main/java/com/umc/commonplant/domain/place/service/PlaceService.java +++ b/src/main/java/com/umc/commonplant/domain/place/service/PlaceService.java @@ -140,7 +140,7 @@ public List getPlaceBelongUser(User user) { List belongList = new ArrayList<>(); for(Belong b : belongs){ PlaceDto.getPlaceBelongUser belongUser = new PlaceDto.getPlaceBelongUser( - b.getPlace().getPlaceIdx(), + b.getPlace().getCode(), b.getPlace().getName(), b.getPlace().getImgUrl()); belongList.add(belongUser);