From 6bfa4baf565d3d142f1c0797864c5a7e1f4be02a Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 29 May 2024 00:06:55 +0900 Subject: [PATCH] [Chore] getPlaceBelongUser --- .../java/com/umc/commonplant/domain/place/dto/PlaceDto.java | 2 +- .../com/umc/commonplant/domain/place/service/PlaceService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);