From 5483aac86703460175bc9ff62c566ecb8cd3c834 Mon Sep 17 00:00:00 2001 From: loadingKKamo21 Date: Thu, 2 Apr 2026 02:02:04 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20SRID=20=EC=84=A4=EC=A0=95=20=EB=88=84?= =?UTF-8?q?=EB=9D=BD=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/history/service/VisitingHistoryTestService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/timespot/backend/domain/history/service/VisitingHistoryTestService.java b/src/main/java/com/timespot/backend/domain/history/service/VisitingHistoryTestService.java index 8f08c9d..d823d07 100644 --- a/src/main/java/com/timespot/backend/domain/history/service/VisitingHistoryTestService.java +++ b/src/main/java/com/timespot/backend/domain/history/service/VisitingHistoryTestService.java @@ -23,6 +23,7 @@ import lombok.extern.slf4j.Slf4j; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.GeometryFactory; +import org.locationtech.jts.geom.Point; import org.springframework.context.ApplicationEventPublisher; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -89,6 +90,9 @@ public TestNotificationResponse testJourneyNotification(final UUID userId, LocalDateTime now = LocalDateTime.now(); LocalDateTime trainDepartureTime = now.plusMinutes(remainingMinutes); + Point placeLocation = geometryFactory.createPoint(new Coordinate(randomStation.getLongitude(), randomStation.getLatitude())); + placeLocation.setSRID(4326); + VisitingHistory testHistory = VisitingHistory.of( user, randomStation, @@ -96,7 +100,7 @@ public TestNotificationResponse testJourneyNotification(final UUID userId, "알림 테스트 장소 이름", "알림 테스트 장소 카테고리", "알림 테스트 장소 주소", - geometryFactory.createPoint(new Coordinate(randomStation.getLongitude(), randomStation.getLatitude())), + placeLocation, now, trainDepartureTime );