From 1d6df565ba2a6083fe3755163db2a0d0a97d7c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=85=B8=ED=98=84=EC=A7=84?= Date: Sat, 21 Sep 2024 20:43:44 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=AA=A8=EC=9E=84=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=9E=90=20=EB=B3=B8=EB=AA=85=20=EB=8C=80=EC=8B=A0=20=EB=8B=89?= =?UTF-8?q?=EB=84=A4=EC=9E=84=20=EC=A0=84=EB=8B=AC=20(#185)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: zone_category에 "세종" 추가 * fix: 모임 작성자 본명이 아니라 닉네임 전달 --- .../gathering/dto/response/GatheringBriefResponse.java | 2 +- .../gathering/repository/GatheringRepositoryImpl.java | 4 ++-- src/main/resources/zone_category.sql | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/solitour_backend/solitour/gathering/dto/response/GatheringBriefResponse.java b/src/main/java/solitour_backend/solitour/gathering/dto/response/GatheringBriefResponse.java index 2d34c16..0451bbd 100644 --- a/src/main/java/solitour_backend/solitour/gathering/dto/response/GatheringBriefResponse.java +++ b/src/main/java/solitour_backend/solitour/gathering/dto/response/GatheringBriefResponse.java @@ -17,7 +17,7 @@ public class GatheringBriefResponse { private Integer likeCount; private String gatheringCategoryName; - private String userName; + private String nickname; private LocalDateTime scheduleStartDate; private LocalDateTime scheduleEndDate; diff --git a/src/main/java/solitour_backend/solitour/gathering/repository/GatheringRepositoryImpl.java b/src/main/java/solitour_backend/solitour/gathering/repository/GatheringRepositoryImpl.java index 340508c..8e2bc14 100644 --- a/src/main/java/solitour_backend/solitour/gathering/repository/GatheringRepositoryImpl.java +++ b/src/main/java/solitour_backend/solitour/gathering/repository/GatheringRepositoryImpl.java @@ -127,7 +127,7 @@ public Page getGatheringPageFilterAndOrder(Pageable page isGatheringBookmark(userId), countGreatGathering, gathering.gatheringCategory.name, - gathering.user.name, + gathering.user.nickname, gathering.scheduleStartDate, gathering.scheduleEndDate, gathering.deadline, @@ -249,7 +249,7 @@ public List getGatheringLikeCountFromCreatedIn3(Long use isGatheringBookmark(userId), likeCount, gathering.gatheringCategory.name, - gathering.user.name, + gathering.user.nickname, gathering.scheduleStartDate, gathering.scheduleEndDate, gathering.deadline, diff --git a/src/main/resources/zone_category.sql b/src/main/resources/zone_category.sql index a9eaa9a..ab22ac7 100644 --- a/src/main/resources/zone_category.sql +++ b/src/main/resources/zone_category.sql @@ -276,5 +276,6 @@ VALUES (16, '전주시'), (16, '무주군'), (16, '장수군'); -# INSERT INTO `zone_category` (`parent_zone_category_id`, `zone_category_name`) -# VALUES (17, '세종'); \ No newline at end of file +INSERT INTO `zone_category` (`parent_zone_category_id`, `zone_category_name`) VALUES (NULL, '세종'); +INSERT INTO `zone_category` (`parent_zone_category_id`, `zone_category_name`) VALUES (245, '세종'); +