Skip to content

Commit 2ec09a6

Browse files
committed
fix: ReservationServiceImpl 누락 부분 수정 (MIKKI-216)
1 parent 9686104 commit 2ec09a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

backend/src/main/java/com/backend/domain/reservation/service/ReservationServiceImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public class ReservationServiceImpl implements ReservationService {
4242
private final TossPaymentHttpClient tossPaymentHttpClient;
4343

4444
@Override
45+
@Transactional
4546
public ReservationResponse.Detail prepareReservation(
4647
final ReservationRequest.Reserve requestDto,
4748
final Long memberId) {
@@ -133,6 +134,7 @@ public ReservationResponse.DetailWithMember getReservation(final Long reservatio
133134
}
134135

135136
@Override
137+
@Transactional(readOnly = true)
136138
public Long getReservationCount(final Long memberId) {
137139

138140
return reservationRepository.getReservationCount(memberId);
@@ -147,6 +149,7 @@ public ScrollResponse<ReservationResponse.DetailWithName> getUserReservationList
147149
}
148150

149151
@Override
152+
@Transactional(readOnly = true)
150153
public ScrollResponse<ReservationResponse.DetailReservationList> getUserReservationListWithImage(
151154
final Long memberId,
152155
final Boolean afterToday,
@@ -168,6 +171,7 @@ public ScrollResponse<ReservationResponse.DetailWithName> getCaptainReservationL
168171
}
169172

170173
@Override
174+
@Transactional(readOnly = true)
171175
public ReservationResponse.DashBoard getDashBoard(final Long memberId, final Integer limitDays) {
172176

173177
return reservationRepository.findDashBoardByMemberId(memberId, limitDays);
@@ -231,7 +235,7 @@ private ReservationDate getReservationDate(final Long shipFishingPostId, final L
231235
*
232236
* @param reservationDate 예약 날짜
233237
*/
234-
void verifyTodayAfterDate(final LocalDate reservationDate) {
238+
private void verifyTodayAfterDate(final LocalDate reservationDate) {
235239

236240
if (!reservationDate.isAfter(LocalDate.now())) {
237241
throw new ReservationException(ReservationErrorCode.NOT_AVAILABLE_DATE_RESERVATION);

0 commit comments

Comments
 (0)